Skip to content

Create script to rename product group in metric and event definitions

What does this MR do and why?

Introduces a script to automate the procedure updating a group name in the metric and event definitions.

The steps handled by the script are:

  1. Modify config/metrics/schema/product_groups.json to include the new group name and remove the old one.
  2. Modify all metric and event definitions with the product_group: [OLD_NAME] to use NEW_NAME.

If you want to rename the group global_search to intergalactic_search you run the script like this:

ruby scripts/internal_events/product_group_renamer.rb global_search intergalactic_search

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

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.

Related to #454275 (closed)

Edited by Jonas Larsen

Merge request reports