-
Notifications
You must be signed in to change notification settings - Fork 355
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
fix: only restrict set of checks when executing them [DHIS2-16256] #15840
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #15840 +/- ##
=========================================
Coverage 66.36% 66.37%
- Complexity 31428 31435 +7
=========================================
Files 3487 3487
Lines 130028 130029 +1
Branches 15183 15183
=========================================
+ Hits 86294 86302 +8
+ Misses 36648 36645 -3
+ Partials 7086 7082 -4
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 1 file with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
...t/java/org/hisp/dhis/webapi/controller/dataintegrity/DataIntegritySummaryControllerTest.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Thanks for fixing
Kudos, SonarCloud Quality Gate passed! |
…his2#15840) * fix: only restrict set of checks when executing them [DHIS2-16256] * test: show that slow tests are included in summary [DHIS2-16256]
…his2#15840) * fix: only restrict set of checks when executing them [DHIS2-16256] * test: show that slow tests are included in summary [DHIS2-16256]
Summary
When executing data integrity checks the default (no set of checks was explicitly specified) is to only run checks that are not marked as "slow". This filter wrongly was also used when expanding checks to read the results from the cache. This meant that slow checks would not be included unless explicitly named.
Automatic Testing
Modified existing tests with additional checks that verify that reading check descriptions and check summaries after execution does include the slow checks which means they are not filtered.
Manual Testing
/api/dataIntegrity/summary
(nochecks
parameter to run all defaults)/api/dataIntegrity/summary?checks=data_elements_aggregate_abandoned
/api/dataIntegrity/summary
should include the slow checkdata_elements_aggregate_abandoned