Skip to content

Change `track_usage_event` method to accept any value

What does this MR do?

  • Adjust track_usage_event(:"your event name", author) method to allow to track on any type of values, not only on objects which respond to id.

  • Add track_usage_event from Gitlab::Utils::UsageData to docs

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Closes #247862 (closed)

Edited by Alina Mihaila

Merge request reports