[go: up one dir, main page]

Add default category for shared example

What does this MR do and why?

When using the Gitlab::InternalEventsTracking module as recommended for instrumenting internal events, the default category value is the class name.

When using the 'internal event tracking' shared example, the default value for category is 'InternalEventTracking' (for maintaining legacy support). But we should recommend using the expected category for new usages of the shared example. This MR updates the internal events cli to include that in the generated output.

References

Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.

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. Run scripts/internal_events/cli.rb
  2. Select View Usage
  3. Select any event
  4. Select rspec
  5. See the new output!
before after
Screenshot_2025-01-31_at_2.47.39_PM Screenshot_2025-01-31_at_2.47.34_PM
Edited by Sarah Yasonik

Merge request reports

Loading