Hide product analytics visualizations until the feature is onboarded
requested to merge 424631-users-can-add-product-analytics-visualizations-to-custom-dashboards-before-the-feature-is into master
What does this MR do and why?
This MR removes all product analytics specific visualizations from the GraphQL response if the product analytics feature hasn't been onboarded yet.
At the project-level, this will now render an empty visualizations list. There is a follow-up frontend issue to implement an empty state to give the user a path forward: When product analytics is not enabled custom da... (#437877) • Unassigned • Backlog
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Without product analytics
Before | After |
---|---|
![]() |
![]() |
With product analytics
Before | After |
---|---|
![]() |
![]() |
How to set up and validate locally
- Follow these instructions to set up Product Analytics in GDK.
- Create a new project.
- Visit analytics dashboards at Project > Analytics > Analytics dashboards.
- Configure a custom dashboard project from the alert on the dashboards page.
- Select New dashboard on the dashboards page.
- Select Add visualization on the new dashboard page.
- Verify that you see the list of product analytics visualizations.
- Disable product analytics:
echo "Feature.disable(:product_analytics_dashboards)" | gdk rails c
- Refresh the new dashboard page.
- Select Add visualization on the new dashboard page.
- Verify that the product analytics visualizations are no longer available within the visualizations list.
Related to #424631 (closed)
Edited by Robert Hunt