Added dropdown with predefined date ranges to Value Stream Analytics
What does this MR do and why?
Adds a dropdown with predefined date ranges to Value Stream Analytics' filters.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
View | Before | After | After (custom option selected) |
---|---|---|---|
Group level | |||
Project level | |||
FOSS (project level only) |
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Please make sure that you're on the GitLab Ultimate plan.
Feature.enable(:vsa_predefined_date_ranges)
- Visit any group/project that has VSA data or follow these steps:
- run
SEED_CYCLE_ANALYTICS=true SEED_VSA=true FILTER=cycle_analytics rake db:seed_fu
- Visit the group value stream. The group URL is present in the output of the command above.
- Open rails console and run
Analytics::CycleAnalytics::ReaggregationWorker.new.perform
- Refresh the group value stream and you should see data
- run
- Verify that the dropdown works correctly.
- Predefined dates ranges return correct start and end dates, as well as number of days selected
- Selecting a predefined date range hides date range picker
- Selecting
Custom
option displays date range picker
- Repeat Step 4 for CE as well (project level only)
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #408656 (closed)
Edited by Rudy Crespo