Skip to content

Hide product analytics checkbox unless root

Halil Coban requested to merge show-pa-toggle-root into master

What does this MR do and why?

We've recently added a product analytics checkbox. This checkbox should be allowed only on root namespaces. This MR intends to fixes this bug.

This checkbox can be only enabled if the experiment settings are enabled. This means we can safely use experiments_settings_allowed to show/hide this field and allow the parameter.

Screenshots or screen recordings

Group settings page for a non-root group

Before After
Screenshot_2023-12-01_at_12.44.25 Screenshot_2023-12-01_at_12.45.39

How to set up and validate locally

  1. Visit a subgroup page -> Edit
  2. Settings -> General -> Permissions and group features
  3. You should not see Product analytics checkbox

MR acceptance checklist

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

Relates to #414865 (closed)

Edited by Halil Coban

Merge request reports