Skip to content

Hide product analytics visualizations until the feature is onboarded

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
image image

With product analytics

Before After
image image

How to set up and validate locally

  1. Follow these instructions to set up Product Analytics in GDK.
  2. Create a new project.
  3. Visit analytics dashboards at Project > Analytics > Analytics dashboards.
  4. Configure a custom dashboard project from the alert on the dashboards page.
  5. Select New dashboard on the dashboards page.
  6. Select Add visualization on the new dashboard page.
  7. Verify that you see the list of product analytics visualizations.
  8. Disable product analytics: echo "Feature.disable(:product_analytics_dashboards)" | gdk rails c
  9. Refresh the new dashboard page.
  10. Select Add visualization on the new dashboard page.
  11. Verify that the product analytics visualizations are no longer available within the visualizations list.

Related to #424631 (closed)

Edited by Robert Hunt

Merge request reports