Skip to content

Conversation

@Houwie7000
Copy link
Collaborator

@Houwie7000 Houwie7000 commented Dec 4, 2025

I have a JIRA ticket

  • branch and/or PR name(s) include(s) JIRA ID
  • issue has "Fix version" assigned
  • issue "Status" is set to "In review"
  • PR labels are selected

Notable changes for users:

  • LHCfills page now has a total run duration filter.

Notable changes for developers:

  • GetAllLhcFillsUseCase.js will now execute a JOIN on statistics (fill_statistics) when runDuration and runDurationOperator are defined in the filter.

Changes made to the database:
-None.

@Houwie7000 Houwie7000 requested a review from isaachilly December 4, 2025 13:18
@Houwie7000 Houwie7000 self-assigned this Dec 4, 2025
@Houwie7000 Houwie7000 added frontend backend javascript Pull requests that update Javascript code labels Dec 4, 2025
@codecov
Copy link

codecov bot commented Dec 4, 2025

Codecov Report

❌ Patch coverage is 85.00000% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 45.67%. Comparing base (5fd8dba) to head (afd725d).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...omponents/Filters/LhcFillsFilter/durationFilter.js 0.00% 4 Missing ⚠️
...ws/LhcFills/ActiveColumns/lhcFillsActiveColumns.js 0.00% 2 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Houwie7000 Houwie7000 force-pushed the feature/O2B-1505/lhcfills-beam-duration-filter branch from 23dbb7b to 11c1f9d Compare December 8, 2025 14:15
@Houwie7000 Houwie7000 force-pushed the feature/O2B-1506/lhcfills-run-duration-filter branch 2 times, most recently from fd1be9f to 2c6fee8 Compare December 8, 2025 15:21
@Houwie7000 Houwie7000 marked this pull request as ready for review December 9, 2025 14:54
@Houwie7000 Houwie7000 requested a review from graduta as a code owner December 9, 2025 14:54
@Houwie7000 Houwie7000 force-pushed the feature/O2B-1505/lhcfills-beam-duration-filter branch from 5c9fecd to 950022d Compare December 11, 2025 11:20
Base automatically changed from feature/O2B-1505/lhcfills-beam-duration-filter to main January 21, 2026 14:41
Copy link
Collaborator

@isaachilly isaachilly left a 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.
isaachilly
isaachilly previously approved these changes Jan 25, 2026
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.
@graduta graduta merged commit 7f6dbfd into main Jan 27, 2026
39 of 41 checks passed
@graduta graduta deleted the feature/O2B-1506/lhcfills-run-duration-filter branch January 27, 2026 14:33
@graduta graduta removed the javascript Pull requests that update Javascript code label Jan 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

4 participants