Skip to content

Handle load error when listing of internal event definitions

Sarah Yasonik requested to merge syasonik-master-patch-73906 into master

What does this MR do and why?

When creating metric definition files for Internal Events, scripts/internal_events/cli.rb loads all of the files found in config/events. If you create an empty file in the directory, the script fails. This MR handles that error.

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. Create an empty file like config/events/misconfigured_sample_event.yml
  2. Run ruby scripts/internal_events/cli.rb
  3. Select New Metric
  4. Select Single Event
  5. The list of events should load without an error
Edited by Sarah Yasonik

Merge request reports