Loading
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 to730. It's passed to the shared date range filter asdateRangeHistoryLimit, 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
minDateprop onvalue_stream_filters.vue, passed only by the EEbase.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
- DORA retention policy: #634241 (closed)
- Data retention planning for value_stream_management tables: https://gitlab.com/gitlab-org/gitlab/-/work_items/629750
Screenshots or screen recordings
![]() |
![]() |
How to set up and validate locally
- Open a group's DORA metrics dashboard, for example
http://gdk.test:3000/groups/flightjs/-/analytics/dashboards/dora_metrics. - Select Custom in the date range dropdown and open the From date picker.
- Check that you can't select a date more than 730 days before today (UTC).
- 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. - 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.
Edited by Serhii Yarynovskyi

