Skip to content

Cleanup instrumentation key on update

What does this MR do and why?

When updating product analytics settings, we keep product_analytics_instrumentation_key. This causes problems because the app_id in the db would belong to previous analytics stack.

With this change we clear the product_analytics_instrumentation_key so that initialize product analytics worker can set the correct key.

Screenshots or screen recordings

Before After
Screenshot_2023-09-19_at_17.15.57 Screenshot_2023-09-19_at_17.20.49

How to set up and validate locally

  1. Set up instance level product analytics following the docs.
  2. In the same project, visit Settings -> Analyze and set up a different analytics stack
  3. Go to Analyze -> Dashboards and click Setup
  4. Send some events. You should see the events in the dashboard.

MR acceptance checklist

Related to #421609 (closed)

Edited by Halil Coban

Merge request reports