Add the Value Streams Dashboard to Explore behind a flag

What does this MR do and why?

Adds a Value Streams Dashboard system dashboard to Explore > Analytics dashboards, behind the new gi_migration_value_streams_dashboard wip feature flag. It's the starting point for moving the legacy group and project dashboards into the new space, following the DORA (!262584 (merged)) and merge request analytics (!268973 (merged)) dashboards.

  • Every panel keeps the legacy data source and layout (namespace_metadata, usage_count, value_stream, dora_metrics_by_project), so the dashboard matches the legacy group dashboard apart from the known gaps below, and each panel can move to GLQL in its own MR. The first two, Merge requests and Pipelines, move in !269122 (merged).
  • The flag takes users and root groups as actors, like dap_impact_v1.
  • The dashboard declares the group_level_analytics_dashboard licence, like the legacy group dashboard.

Known gaps, tracked separately:

  • Groups only. The dashboard matches the legacy group dashboard. Selecting a project shows errors on the five group-only panels. Project support, and what blocks the group-only panels for projects, is tracked in #639015.
  • No licence gate on GitLab.com. The license constraint checks the instance licence, which passes for everyone on GitLab.com, so the flag is the only gate there. Tracked in #639016.
  • No date range filter. None of the legacy panels read it, so the picker is hidden. The panels need to support it as they move to GLQL: https://gitlab.com/gitlab-org/gitlab/-/work_items/639511.
  • Aggregation warning on the usage counts. Explore doesn't provide the group's background aggregation setting, so the six count panels always warn and show - for zero. Tracked in https://gitlab.com/gitlab-org/gitlab/-/work_items/639512.
  • Remaining panels on GLQL. Most are blocked on GLQL data gaps: https://gitlab.com/groups/gitlab-org/-/work_items/24216.

References

Screenshots or screen recordings

Flag off, then on, in Explore > Analytics dashboards, with gitlab-org selected in GDK.

Before After
before_list after_list
Not listed after_dashboard

For comparison, the legacy group dashboard for the same group:

Legacy group Value Streams Dashboard

legacy_dashboard

How to set up and validate locally

  1. In the Rails console, enable the flag:

    Feature.enable(:gi_migration_value_streams_dashboard)
  2. Open Explore > Analytics dashboards. Value Streams Dashboard is listed.

  3. Open it and select a group. Only the scope filter shows, and the panels match the group's legacy Value Streams Dashboard, apart from the aggregation warning on the six count panels.

  4. Disable the flag. The dashboard is no longer listed, and opening it by URL fails.

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Ezekiel Kigbo

Merge request reports

Loading
Loading