Skip to content

Update Usage Overview panel to support subgroups

Rudy Crespo requested to merge 457908-vsd-usage-overview-support-subgroups into master

What does this MR do and why?

Reinstates !150052 (merged) after it was reverted due to gitlab-org/quality/engineering-productivity/master-broken-incidents#6041 (comment 1886021225). To fix the broken spec, we updated it in !151426 (65374bcc) to expect - instead of 0 when there is no usage overview data to align with the changes made in !149676 (merged).

Previously, the Usage Overview panel on the Value Streams Dashboard only displayed metrics for the top-level namespace. It now displays metrics for both groups and subgroups.

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
Screenshot 2024-04-19 at 11.07.05 AM.png Screenshot 2024-04-19 at 11.07.40 AM.png

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Please make sure you have a GitLab Ultimate license.
  2. Feature.enable(:group_analytics_dashboard_dynamic_vsd)
  3. Create a new (or choose an existing) subgroup and invoke the seed script: GROUP_ID=<group-id> FILTER=vsd_overview_counts SEED_VSD_COUNTS=1 bundle exec rake db:seed_fu
  4. Navigate to the group above and, from the left sidebar, click the Analyze > Analytics dashboards link
  5. The group dashboard list should appear, select Value Stream Dashboard
  6. Verify that the Usage overview panel displays the subgroup's data.

Related to #454448 (closed) and #457908 (closed)

Edited by Rudy Crespo

Merge request reports