Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change events management #240

Merged
merged 9 commits into from
Jan 12, 2022
Merged

Conversation

Windvis
Copy link
Contributor

@Windvis Windvis commented Jan 12, 2022

This PR includes all the work that has been done for the change events pages.

  • change events overview page
  • change events details page
  • change events edit page
  • change events creation page

It's not perfect yet, but it's in a testable state, so we can hand it over to the testing team while we iron out the remaining issues.

Windvis and others added 9 commits December 21, 2021 09:27
This ensures the Ember Data model matches the updated change event model in the backend.
Co-authored-by: Sam Van Campenhout <sam.van.campenhout@gmail.com>
Implement the change event overview page
The previous naming was confusing since it implied that it was a 1 to 1 relationship.
* Add a `validateUrl` validator

* `AdministrativeUnitSelect` component improvements

These changes make the component more generic so that it can be used on other pages.

* Implement the change event creation page

* Hide the change event description label if it's empty

The description isn't required when creating a change event so it's possible that it doesn't contain any data.
* Only load the decision record when needed

Some change event types don't require decisions so we don't need to try to load that data either.

* Only validate and save a decision when needed

Some change event types don't require decision information so those cases we don't need to validate and save it either.

* Delete unsaved change event records

When the user leaves the page before saving the in-memory records need to be removed again.
This ensures the organization status is in sync with the most recent change event result status.
@nbittich nbittich merged commit 10c6d30 into development Jan 12, 2022
@nbittich nbittich deleted the feature/change-events-management branch January 12, 2022 12:16
@Windvis Windvis added the enhancement New feature or request label Jan 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants