-
Notifications
You must be signed in to change notification settings - Fork 21
[O2B-1506] LHCfills run duration filter #2038
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
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2038 +/- ##
==========================================
+ Coverage 45.58% 45.67% +0.09%
==========================================
Files 1031 1031
Lines 17172 17206 +34
Branches 3123 3134 +11
==========================================
+ Hits 7827 7859 +32
- Misses 9345 9347 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
23dbb7b to
11c1f9d
Compare
fd1be9f to
2c6fee8
Compare
This reverts commit 695622b.
…ith the query/reset logic. Just set the value afterwards
5c9fecd to
950022d
Compare
…ature/O2B-1506/lhcfills-run-duration-filter update from upstream
…ature/O2B-1506/lhcfills-run-duration-filter update from upstream
…ature/O2B-1506/lhcfills-run-duration-filter update from upstream
…fills DTO. QueryBuilder WhereAssociationQueryBuilder has been changed to handle associations with an OR operator. Added tests
lib/public/components/Filters/LhcFillsFilter/runDurationFilter.js
Outdated
Show resolved
Hide resolved
isaachilly
left a comment
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 but will add my changes next commit
Introduced greaterThanOrNull and lowerThanOrNull methods in QueryBuilder to handle cases where 0 is stored as null in the database. Used these methods instead of editing _or and applyOperation methods. Added tests to check <= and >= in the usecase work correctly.
Fix 'statistics' association so it performs as intended; only being included in the query if associatedStatisticsRequired is true.
Corrected the logic in QueryBuilder's greaterThanOrNull and lowerThanOrNull methods when the notFlag is set.
Added unit tests for QueryBuilder's greaterThanOrNull and lowerThanOrNull methods using RunRepository. Tests cover inclusive and exclusive comparisons, as well as negated conditions.
I have a JIRA ticket
Notable changes for users:
Notable changes for developers:
Changes made to the database:
-None.