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