Set a limit on the date range selection for Value Stream Analytics
Description
There is currently no limit applied to the date range which could be selected as filters in the analytics space. This could result in performance issues if the selected range is too large.
Solution
- Migrate cycle analytics from using
GlDaterangePicker
to using the sharedDateRange
component - Add a date range limit of 6 months to the range selection on the frontend
- If a user selects a start date which exceeds 180 days, clear the end date and only allow the selectable dates to include the following 180 days.
- While at it, ensure that the end date can't be before the start date by applying the same logic as above
- Include a date range limit indicator next to the date range component
- Ensure that the range limit is not being violated on the backend
Originating discussion
Edited by Brandon Labuschagne