Skip to content

Implement admin toggle for sending events to GitLab

What does this MR do and why?

This MR adds a section under metrics and profiling admin page for opt in control of product usage data.

This is necessary control for SM and Dedicated customers where they can opt-out of the product usage data.

This feature is behind the feature flag. roll out issue - #515960

References

Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.

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

Screenshot_2025-02-05_at_12.16.58_PM

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Enable feature flag product_usage data
bundle exec rails console
Feature.enable(:product_usage_data)
  1. Visit http://localhost:3000/admin/application_settings/metrics_and_profiling#js-product-usage-data-settings
  2. You should be able to see product usage data section.

Related to #510333 (closed)

Edited by Ankit Panchal

Merge request reports

Loading