Skip to content

Add dashboards item to the projects analytics submenu

What does this MR do and why?

This MR adds Dashboards to the Analytics submenu. The dashboards item links to the Product Analytics dashboard as per Left sidebar organization for Product Analytics (&9701 - closed).

The next step after this MR will be to migrate the dashboards listing from Product Analytics to a more generic listing. There is an additional issue discussing the options for the migration. It is complicated by the fact that /analytics/dashboards is already in use at the Group level. The final URI is still to be decided.

This work is behind the combined_analytics_dashboards feature flag and only available on GitLab Ultimate.

Screenshots or screen recordings

Before After
image image

How to set up and validate locally

(You may need to also need to set up Product Analytics feature flags using the instructions at https://gitlab.com/gitlab-org/gitlab/-/snippets/2474959)

  1. Visit a project and confirm that the menu item is not shown.
  2. Enable the new feature flag: echo "Feature.enable(:combined_analytics_dashboards)" | rails c.
  3. Refresh the project and check that the menu item is shown and selectable.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #388551 (closed)

Edited by Robert Hunt

Merge request reports