Skip to content

Add one-line dev rake task to setup Product Analytics

Jiaan Louw requested to merge jlouw-product-analytics-rake-setup into master

What does this MR do and why?

This MR adds a one-line dev rake task to setup Product Analytics on a local GDK instance.

Usage example:

bundle exec rake gitlab:product_analytics:setup\['gitlab-org'\]

GDK docs will be updated in a follow-up MR: Add one-line setup to product analytics dev docs (gitlab-development-kit!3507 - merged).

This was heavily inspired by Introduce one-line rake task to setup GitLab Du... (!136647 - merged).

Screenshots or screen recordings

gitlab$ bundle exec rake gitlab:product_analytics:setup\['gitlab-org'\]

Validating settings....
Checking the specified group exists....
Enabling feature flags....
- combined_analytics_dashboards
- product_analytics_admin_settings
- product_analytics_beta_optin
- product_analytics_dashboards
- product_analytics_usage_quota_annual_data
Enabling application settings....
Activating an Ultimate license to the group....
Enabling the group settings....
----------------------------------------
Setup Complete!
----------------------------------------
Product Analytics is now enabled and configured.

You can access Product Analytics on any project in "Gitlab Org" by selecting Analyze > Analytics dashboards in the left sidebar.

How to set up and validate locally

  1. Have GDK set up.
  2. In your gitlab dir, run bundle exec rake gitlab:product_analytics:setup\['gitlab-org'\]

MR acceptance checklist

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

Edited by Jiaan Louw

Merge request reports