Put product analytics toggle behind a FF
What does this MR do and why?
The product analytics features are currently behind feature flags such as product_analytics_dashboards
, product_analytics_admin_settings
, etc. In addition, users need to enable a checkbox in the group setting page titled Enable product analytics
.
In order to prevent this optin in case something goes wrong during beta release, the toggle should be behind it's own feature flag. This MR introduces this.
Feature flag name: product_analytics_beta_optin
Rollout issue: #433344 (closed)
Screenshots or screen recordings
How to set up and validate locally
- In rails console enable the experiment fully
Feature.enable(:product_analytics_beta_optin)
- Visit a root group settings page
- You should be able to see and enable product analytics checkbox
- You should be able to set up and view product analytics dashboards in a project belonging to this group
- In rails console enable the experiment fully
Feature.disable(:product_analytics_beta_optin)
- You should not be able to see and enable product analytics checkbox
- You should not be able to set up and view product analytics dashboards in a project belonging to this group
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.
Related to #433300 (closed)
Edited by Halil Coban