Skip to content

Add details to Event validation message

Michał Wielich requested to merge michold-error-details-msg into master

What does this MR do and why?

Related to #462600 (closed)

Add better error messages to metric validation errors.

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

  1. Modify an existing metric (eg. remove product_group line from this metric)
  2. Validate all metrics: rspec spec/lib/gitlab/usage/metric_definition_validate_all_spec.rb
  3. The error message should include the details section.

Merge request reports