Hide product analytics settings when disabled
What does this MR do and why?
When the Product Analytics
toggle in off, product analytics settings form should be hidden. This MR implements this.
This is the last part of #414865 (closed)
The commit doesn't have a changelog entry as it's behind the feature flag product_analytics_dashboards
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After (product analytics enabled) | After (product analytics disabled) |
---|---|---|
How to set up and validate locally
- Make sure to have a project with product analytics dashboards
- In the project page sidebar, click Settings -> Analytics
- You should be able to see the project analytics settings form under "Data sources"
- Visit group settings page in the root namespace
- Under "Permissions and group features" -> Uncheck "Use product analytics" checkbox
- Go back to project page
- In the project page sidebar, click Settings -> Analytics
- You should not anymore see the project analytics settings form under "Data sources"
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.
Edited by Halil Coban