Replace DORA_METRIC_QUERY_RANGES with DATE_RANGE_OPTIONS constants
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Summary
Remove duplicate date range constants and consolidate to use DATE_RANGE_OPTIONS instead of DORA_METRIC_QUERY_RANGES throughout the codebase.
Problem
The codebase has two sets of date range constants:
-
DORA_METRIC_QUERY_RANGES- older constants used for DORA metrics -
DATE_RANGE_OPTIONS- newer constants that align with the date range filter values
This duplication creates confusion and inconsistency. The DATE_RANGE_OPTIONS constants are the preferred approach as they align with the values accepted by the date range filter.
Solution
Replace all references to DORA_METRIC_QUERY_RANGES with DATE_RANGE_OPTIONS throughout the codebase. This will:
- Eliminate duplicate constant definitions
- Ensure consistency across all analytics dashboards
- Align with the date range filter implementation
Related
- Discussion: !215960 (comment 2948281145)
- Related MR: !215960 (merged)
Edited by 🤖 GitLab Bot 🤖