Skip to content

Allow re-onboarding after BYOC

What does this MR do and why?

Cleans up instrumentation key when clearing project configurator connection string to allow re-onboarding.

This MR fixes a bug when

  • a BYOC is onboarded
  • user removes the BYOB product analytics settings

because instrumentation key from BYOC is not cleaned up causing the user to cannot onboard to GitLab managed instance.

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.

How to set up and validate locally

  1. Onboard a BYOC product analytics
  2. Visit project settings -> analytics
  3. Remove all the values under Data Sources
  4. Go to analytics dashboards: http://gdk.test:3000/namespace/project/-/analytics/dashboards
  5. Onboard to GitLab managed instance
  6. You should be able to successfully onboard

Related to #448675 (closed)

Edited by Halil Coban

Merge request reports