Add filter_labels option to the VSD configuration file
What does this MR do and why?
Add filter_labels option to the VSD configuration file, which restricts the metrics shown in the comparison chart based on the label queries provided. If multiple labels are provided, only a single label needs to match for the data to be included in the results.
Not all existing VSD metrics are compatible. Incompatible metrics will be excluded from the rendered table by default. List of compatible metrics:
- lead_time
- cycle_time
- issues
- issues_completed
- merge_request_throughput
filter_labels
is dependant on the vsd_graphql_dora_and_flow_metrics
feature being enabled. This feature flag is scheduled to be removed in %16.3 (link)
Screenshots or screen recordings
<3 Labels |
---|
3+ Labels |
---|
No matches (or error thrown) |
---|
How to set up and validate locally
Feature.enable(:combined_analytics_dashboards)
Feature.enable(:vsd_graphql_dora_and_flow_metrics)
- Setup YAML configuration
- Seed analytics data (and optionally DORA metrics data)
- Visit the value streams dashboard:
http://gdk.test:3000/groups/${YOUR_GROUP}/-/analytics/dashboards
- Apply some label filters to your YAML config file
- Validate that the VSD is showing the expected labels on page load
- Create and close an issue with a test label
- Validate that a VSD with the test label filter applied updates based on the created/closed issue
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 #388890 (closed)
Edited by Alex Pennells