Hide product analytics checkbox unless root
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 |
---|---|
How to set up and validate locally
- Visit a subgroup page -> Edit
- Settings -> General -> Permissions and group features
- 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.
-
I have evaluated the MR acceptance checklist for this MR.
Relates to #414865 (closed)
Edited by Halil Coban