Skip to content

Hides analytics option for personal namespace projects

What does this MR do and why?

This hides product analytics dashboard and settings option for personal namespace projects.

Hides analytics option in menu (Settings -> Analytics & Analyze -> Analytics dashboards) for personal namespace projects as analytics dashboards should only be available on group namespaces and projects in groups. Additionally it returns a 404 if the dashboard or analytics settings urls are accessed directly.

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. -[ ] I have evaluated the MR acceptance checklist for this MR.

Screenshots or screen recordings

------------------------ Before ------------------------

Analytics settings and dashboards menu option is available for personal namespace projects. Clicking on those links redirects to an empty settings page.

a) Analyze > Analytics dashboards > Configure Dashboard project

b) Settings > Analyze

  • Analytics settings option
  • Screenshot_2024-01-29_at_2.10.08_PM
  • Screenshot_2024-01-29_at_2.09.50_PM

------------------------ After ------------------------

Analytics settings and dashboard menu option is hidden for personal namespace projects. Accessing the dashboard and settings url directly takes to a 404 page

  • Analyze menu option
  • Setting menu option
  • Dashboards page
  • Analytics settings page

How to set up and validate locally

  1. View a project in your own personal namespace (Requires an ultimate license).
  2. On the sidebar, click on Analyze > Analytics dashboards or Settings /> Analyze
  3. Click on Configure Dashboard Project.

Related to #436470 (closed)

Edited by Surabhi Suman

Merge request reports