Skip to content

Add new panel title interpolation options to analytics dashboards

Alex Pennells requested to merge 452382-more-panel-title-options into master

What does this MR do and why?

Add new panel title interpolation options to analytics dashboards.

Adds support for these new options:

  • %{namespaceName}
  • %{namespaceType}
  • %{namespaceFullPath}
  • %{rootNamespaceName}
  • %{rootNamespaceFullPath}

We technically already supported namespaceName, but it was returning the rootNamespaceName. We're just improving and extending that behaviour.

The new options are also applied to the built-in Value stream dashboard and AI impact analytics dashboard.

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

Subgroup VSD

Before After
Screenshot_2024-04-12_at_1.01.35_PM Screenshot_2024-04-12_at_1.00.05_PM

Project VSD

Before After
Screenshot_2024-04-12_at_12.52.19_PM Screenshot_2024-04-12_at_12.56.31_PM

Subgroup AID

Before After
Screenshot_2024-04-12_at_1.01.03_PM Screenshot_2024-04-12_at_1.00.29_PM

Project AID

Before After
Screenshot_2024-04-12_at_12.53.21_PM Screenshot_2024-04-12_at_12.57.07_PM

How to set up and validate locally

Enable features

Feature.enable(:group_analytics_dashboard_dynamic_vsd)
Feature.enable(:project_analytics_dashboard_dynamic_vsd)
Feature.enable(:ai_impact_analytics_dashboard)

Validate dashboards

  1. Navigate to any subgroup
  2. Navigate to the Analytics dashboards page (Analyze > Analytics dashboards in the sidebar)
  3. Verify the panel titles for both the Value Streams Dashboard, and the AI impact analytics dashboard
  4. Navigate to any project
  5. Repeat steps 2 & 3

Related to #452382 (closed)

Edited by Alex Pennells

Merge request reports