Skip to content

[O2B-1533] Adjust detector type ordering in DetectorsProvider#2084

Open
isaachilly wants to merge 7 commits intomainfrom
improv/O2B-1533/Move-AOT-MUON-columns
Open

[O2B-1533] Adjust detector type ordering in DetectorsProvider#2084
isaachilly wants to merge 7 commits intomainfrom
improv/O2B-1533/Move-AOT-MUON-columns

Conversation

@isaachilly
Copy link
Collaborator

@isaachilly isaachilly commented Feb 23, 2026

Move the MUON-GLO, AOT-EVENT, AOT-GLO detectors to appear towards the end of RCT table's.

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:

  • MUON-GLO, AOT-EVENT, AOT-GLO detectors shown towards the end of tables.

Notable changes for developers:

  • N/A

Changes made to the database:

  • N/A

Move the MUON-GLO, AOT-EVENT, AOT-GLO detectors to appear at the end of the runs-per-data-pass table on request.
@isaachilly isaachilly self-assigned this Feb 23, 2026
@isaachilly isaachilly added frontend javascript Pull requests that update Javascript code labels Feb 23, 2026
@codecov
Copy link

codecov bot commented Feb 23, 2026

Codecov Report

❌ Patch coverage is 0% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 45.56%. Comparing base (dd61ecd) to head (4dd2e15).

Files with missing lines Patch % Lines
lib/public/services/detectors/detectorsProvider.js 0.00% 4 Missing ⚠️
lib/public/domain/enums/DetectorOrders.js 0.00% 1 Missing ⚠️
...Runs/RunPerPeriod/RunsPerLhcPeriodOverviewModel.js 0.00% 1 Missing ⚠️
...mulationPass/RunsPerSimulationPassOverviewModel.js 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2084      +/-   ##
==========================================
- Coverage   45.57%   45.56%   -0.01%     
==========================================
  Files        1042     1043       +1     
  Lines       17322    17325       +3     
  Branches     3136     3137       +1     
==========================================
  Hits         7894     7894              
- Misses       9428     9431       +3     

☔ 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.

Accept a detectorOrder ENUM in the DetectorsProvider constructor and sort by it.
Export a new rctDetectorsProvider (DetectorsProvider configured with DetectorOrders.RCT) and update RCT tables.
Add a test to verify detector columns are rendered in RCT order.

Update the CSV export expectations to reflect the new column ordering (CPV/VTX swapped).
Add tests to verify detector columns are rendered in RCT order on runs-per-lhc-period and runs-per-simulation-pass pages.
Centralise detector ordering maps by moving DEFAULT and RCT switchCase inputs into the ENUM.

This consolidates ordering configuration and avoids duplicate definitions in the provider.
@isaachilly isaachilly marked this pull request as ready for review March 6, 2026 17:59
@isaachilly isaachilly requested a review from graduta as a code owner March 6, 2026 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend javascript Pull requests that update Javascript code

Development

Successfully merging this pull request may close these issues.

1 participant