Limit DORA and licensed VSA date ranges to the last 2 years

What does this MR do and why?

DORA metrics will be kept for 2 years. This MR stops users from picking periods that start before that, so they don't get empty data. The endpoints aren't changed: requests for older periods return empty results once that data is removed.

  • DORA metrics dashboard (group and project): a new dashboard filter option, numberOfDaysHistoryLimit, sets how many days back a custom range can start. The DORA dashboard sets it to 730. It's passed to the shared date range filter as dateRangeHistoryLimit, which sets the picker's minimum date. Other dashboards don't set it, so they're unchanged.
  • Licensed Value Stream Analytics (group VSA, and project VSA with a license): the custom date range picker gets the same 2-year minimum date. Licensed VSA reads the stage events tables and DORA data. The minimum date is a new optional minDate prop on value_stream_filters.vue, passed only by the EE base.vue.
  • Unlicensed project VSA keeps no limit. It reads issues, merge requests and deployments directly.

The 7, 30, 90 and 180 day presets are all within 2 years, so they don't change.

Out of scope: dates that come from the URL aren't checked in the UI.

References

Screenshots or screen recordings

Screenshot_2026-11-05_at_14.39.17 Screenshot_2026-11-05_at_14.39.36

How to set up and validate locally

  1. Open a group's DORA metrics dashboard, for example http://gdk.test:3000/groups/flightjs/-/analytics/dashboards/dora_metrics.
  2. Select Custom in the date range dropdown and open the From date picker.
  3. Check that you can't select a date more than 730 days before today (UTC).
  4. Open a licensed group's Value Stream Analytics page, for example http://gdk.test:3000/groups/flightjs/-/analytics/value_stream_analytics. The filters only show once the group has a value stream and its first aggregation has run.
  5. Select Custom in the date range dropdown and check the same limit on the From date picker.

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

🤖 Generated with Claude Code

Edited by Serhii Yarynovskyi

Merge request reports

Loading
Loading