feat(data-integrity): load data integrity checks from API [DHIS2-12287] #732
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes https://jira.dhis2.org/browse/DHIS2-12287
TODOs (updated by @HendrikThePendric on 10-01-2023):
isSlow: true
property. So when toggling the section checkbox to selected, it should select only the options withisSlow: false
and skip the others. When toggling the section checkbox to unselected, all options in that section may be deselected. The checkbox itself should be deselected when no items are selected, selected when all items are selected, and indeterminate when a subset of items are selected. Clicking on the checkbox in its indeterminate or selected state should deselect all items, and clicking on the checkbox when unselected should select all "fast" checks./dataIntegrity/summary?checks=<CHECKS>
checks
parameter can be populated by comma separated check names (i.e. thename
field of the fetched option). Also see here for more info.checks=categories*
. When using the wildcard notation slow checks are also skipped. Probably for the app using the wildcard syntax might actually make things more complicated, it's probably best to just be fully explicit.checks
query parameter values) you POSTed to (I find it slightly odd that we are not using an ID to poll the progress, but 🤷 )jobStatus
field gets a value ofCOMPLETED
you can stop polling/dataIntegrity/details?checks=<CHECKS>
, where<CHECKS>
should be equal to what you POSTed initially.