Make dictionary work with event definitions without category
Problem
We want to change event definitions to look like this for internal event. Notice the missing category
property.
This will break the metric dictionary.
---
description: User created a new issue from an epic
internal_events: true
action: g_project_management_users_epic_issue_added_from_epic
label_description:
property_description:
value_description:
extra_properties:
identifiers:
- project
- user
- namespace
product_section: dev
product_stage: plan
product_group: product_planning
milestone: "16.4"
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/131495
distributions:
- ee
tiers:
- premium
Desired Outcome
An event definition that has the property internal_events: true
should be treated as if it had category: InternalEventTracking
.
We don't need to show the new property (internal_events
) in the UI.
It should still work with definitions that doesn't have the internal_events
property like this:
---
description: User created a new issue from an epic
category: InternalEventTracking
action: g_project_management_users_epic_issue_added_from_epic
label_description:
property_description:
value_description:
extra_properties:
identifiers:
- project
- user
- namespace
product_section: dev
product_stage: plan
product_group: product_planning
milestone: "16.4"
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/131495
distributions:
- ee
tiers:
- premium
Edited by Jonas Larsen