Skip to content

Make AnalyticsDashboardsHelper compatible with groups

Alex Pennells requested to merge 390542-generic-analytics-dashboards-helper into master

What does this MR do and why?

AnalyticsDashboardsHelper.analytics_dashboards_list_app_data now supports groups, in addition to projects. To that end, I've renamed projectId/projectFullPath to namespaceId/namespaceFullPath throughout the frontend.

tracking_key and features are currently not supported when building the data for a group, and will return blank responses for both.

How to set up and validate locally

There is no group UI that makes use of this helper yet.

To test the project analytics dashboards:

  1. Feature.enable(:product_analytics_dashboards)
  2. Feature.enable(:combined_analytics_dashboards)
  3. Visit the project analytics dashboard page: http://gdk.test:3000/{GROUP}/{PROJECT}/-/analytics/dashboards/
  4. Using the Vue console, verify that the correct values are being injected into the app

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #390542 (closed)

Edited by Alex Pennells

Merge request reports