Skip to content

Apply all filters to flowMetricsQuery

Ezekiel Kigbo requested to merge 498179-apply-all-flow-metrics-filters into master

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 ⚠️

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.

  1. Please make sure that you're on the GitLab Ultimate plan.
  2. Visit project that has VSA data or follow these steps:
    1. run FILTER=customizable_cycle_analytics SEED_CUSTOMIZABLE_CYCLE_ANALYTICS=1 bundle exec rake db:seed_fu
    2. Visit the project value stream. The project URL is present in the output of the command above.
    3. Add some project labels if you havent already and apply to some MRs / issues
    4. Apply an author to some MRs / Issues
  3. Navigate to Analyze > Value Stream Analytics in the menu (either group or project)
  4. Overview metrics should load, observe the values
  5. Select a date range a few months earlier and observe the updated values
  6. Add additional filters (label + author), observe the updated values

Related to #498179

Edited by Ezekiel Kigbo

Merge request reports

Loading