Show user validation errors after generating event/metric definitions
What does this MR do and why?
- Changes: Validates generated event & metric definitions when generated with
scripts/internal_events/cli.rb
, displaying any errors to the user - Motivation: By displaying the errors instead of blocking generation completely, we make sure users aren't blocked or stuck during generation, but we still offer more transparent information
Related issue: #441143 (closed)
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
- Run
scripts/internal_events/cli.rb
- Select
New Event
- Enter a description
- Enter an event name
- Select project+namespace+user
- Leave MR blank
- Select a group
- Select free+premium+ultimate
- Create the file
- See the error message
- Select
Create Metric
- Select the first metric option
- Enter two descriptions
- Select
Copy & continue
- Create the files
- See the error message
Edited by Sarah Yasonik