Apply all filters to flowMetricsQuery
What does this MR do and why?
Apply all filters to the flowMetricsQuery
graphql query
Extends the flow metrics graphql query to apply all available filters. Originally the query was only used for a VSD
which only allowed the addition of label
filtering, now that the query is used from the VSA page, we need to be able
to also support the additional filtering options.
⚠️
Note - The deploymentCount (deploys) field does not support any filtering other than from/to date
- The DORA metrics query does not accept the same filters, so thats excluded
References
Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
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.
- Visit project that has VSA data or follow these steps:
- run
FILTER=customizable_cycle_analytics SEED_CUSTOMIZABLE_CYCLE_ANALYTICS=1 bundle exec rake db:seed_fu
- Visit the project value stream. The project URL is present in the output of the command above.
- Add some project labels if you havent already and apply to some MRs / issues
- Apply an author to some MRs / Issues
- run
- Navigate to
Analyze > Value Stream Analytics
in the menu (either group or project) - Overview metrics should load, observe the values
- Select a date range a few months earlier and observe the updated values
- Add additional filters (label + author), observe the updated values
Related to #498179