Skip to content

Hide Analytics features based on project settings

What does this MR do and why?

This MR updates the analytics menu items/permissions to respect the project-level settings. Rules:

  • If MR disabled: disallow/hide merge request analytics
  • If Issue disabled: disallow/hide issue analytics
  • If both MR and Issue are disabled: disallow/hide value stream analytics

How to set up and validate locally

  1. Ensure that you're on ultimate plan.
  2. Go to a Project > General > Visibility setting
  3. Disable Issues and MRs
  4. On the Analytics sidebar menu, the Issues, MergeRequest and Value Stream analytics items should disappear.

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

Merge request reports

Loading