Skip to content

Track linked epics removed on usage data

What does this MR do and why?

Record related epic links removed event on usage ping.

There is also a small refactoring to make it easier to add the remaining events that need to be recorded. I added a helper Epics::RelatedEpicLinks::UsageDataHelper to avoid having a lot of ifs on services to call the right event tracking method. To do that I did switch methods names to follow a pattern as "track_linked_epic_with_type_#{link_type}_#{event_type}".

No existing metrics were changed

Follow-up for !83323 (merged)
Related to #355471 (closed)

How to set up and validate locally

  1. Turn on track_epics_activity feature flag
  2. Add a related epic into any epic and then remove it
  3. Follow https://docs.gitlab.com/ee/development/service_ping/implement.html#test-local-setup and check if g_project_management_epic_related_removed_[weekly|monthly] events got recorded.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Felipe Artur

Merge request reports