Ensure query overrides apply to dora data source
What does this MR do and why?
This MR fixes namespace overriding for the dora metrics over time visualizations.
Passes through the rest of the queryOverride
parameters to ensure we can customize the panel. By default the panel inherits the current namespace, but when customizing a dashboard via YAML we should be able to override this to view data for other namespaces.
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.
The after shot shows the comparison between a project and group, displaying different values.
Before | After |
---|---|
![]() |
![]() |
How to set up and validate locally
NOTE: You will need an GitLab Ultimate license
- Create a group with 2 projects (one will be used for config, one for data)
- Create a custom VSD following the customization instructions
- Update the custom YAML configuration to include the DORA single stats, to compare the group and project values
panels: # deployment frequency + lead time for our target group - visualization: deployment_frequency_over_time title: DF - group queryOverrides: namespace: <group-namespace> gridAttributes: yPos: 0 xPos: 0 width: 3 height: 1 options: {} - visualization: lead_time_for_changes_over_time title: LT - group queryOverrides: namespace: <group-namespace> gridAttributes: yPos: 1 xPos: 3 width: 3 height: 1 # deployment frequency + lead time for our target project - visualization: deployment_frequency_over_time title: DF - testdata queryOverrides: namespace: <project-namespace> gridAttributes: yPos: 2 xPos: 6 width: 3 height: 1 options: {} - visualization: lead_time_for_changes_over_time title: LT - testdata queryOverrides: namespace: <project-namespace> gridAttributes: yPos: 2 xPos: 9 width: 3 height: 1
- Seed VSD data for the group using the Value Streams Dashboard seed file
- Seed VSD data for the project created for data using the Value Streams Dashboard seed file (Specify
VSA_SEED_PROJECT_ID
to set the project to seed data into) - Navigate to
Analyze > Analytics dashboards
in the left menu - Click on
Value streams dashboard
to view
Related to #442335 (closed)