Skip to content

Add a cube analytics table visualization to product analytics

Jiaan Louw requested to merge 382910-add-cube-table-visualization into master

What does this MR do and why?

This MR adds a cube analytics table visualization to be used by the Product Analytics dashboards as described in #382910 (closed).

Note: This change is hidden behind a default off feature flag. See the setup instructions for more details.

Screenshots or screen recordings

image

How to set up and validate locally

  1. You need to setup the product analytics devkit if you haven't already done so. https://gitlab.com/gitlab-org/analytics-section/product-analytics/devkit
  2. Enable the feature flag: echo "Feature.enable(:product_analytics_internal_preview)" | rails c.
  3. Visit the dashboard page of any project and validate that it renders: http://localhost:3000/gitlab-org/gitlab-shell/-/product_analytics/dashboards/

This will show an empty dashboard if you have no events in clickhouse. To generate events:

  1. You can use a browser extension like tapermonkey + this userscript to generate events.
    • Using the userscript above you need to change the host to your devkit's Jitsu URL and use your Jitsu's client key.

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 #382910 (closed)

Edited by Jiaan Louw

Merge request reports