Skip to content

Draft: Hide product analytics settings when experimental toggle is disabled

What does this MR do and why?

Hides the Project -> Settings -> Analytics menu item when experimental features are disabled for the group.

The settings page itself renders blank in this situation (due to checks inside the nested partial views), so we can hide the menu item completely.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
image image

How to set up and validate locally

  1. Requires GitLab Ultimate.
  2. Follow these instructions to set up Product Analytics in your GDK.
  3. With experimental features disabled, verify the menu item is not visible
  4. Enable experimental features and verify menu item shows up

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 #426616 (closed)

Edited by Elwyn Benson

Merge request reports