Skip to content
代码片段 群组 项目
未验证 提交 609f0edd 编辑于 作者: Jonas Larsen's avatar Jonas Larsen 提交者: GitLab
浏览文件

Remove private additional properties

上级 53604d8f
No related branches found
No related tags found
无相关合并请求
......@@ -2,6 +2,9 @@
description: When a CI/CD Catalog component is included in a pipeline.
internal_events: true
action: ci_catalog_component_included
additional_properties:
label:
description: Id of the component being included
identifiers:
- project
- namespace
......@@ -16,3 +19,4 @@ tiers:
- free
- premium
- ultimate
......@@ -31,12 +31,7 @@ def execute
def track!
track_internal_event(
EVENT_NAME,
project: project,
namespace: project.namespace,
additional_properties: {
label: 'full_path',
property: merge_request.to_reference(full: true)
}
project: project
)
end
......
......@@ -8,9 +8,6 @@ action: bypass_approvals_for_mr_approval_policy_when_policy_is_evaluated
identifiers:
- project
- namespace
additional_properties:
value:
description: "Merge request Id"
product_group: security_policies
milestone: '17.3'
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/155718
......
......@@ -84,12 +84,8 @@
if expected
expect(Gitlab::InternalEvents).to receive(:track_event).with(
described_class::EVENT_NAME,
hash_including(project: project,
namespace: project.namespace,
additional_properties: {
label: 'full_path',
property: merge_request.to_reference(full: true)
})).and_call_original
hash_including(project: project)
).and_call_original
else
expect(Gitlab::InternalEvents).not_to receive(:track_event)
end
......
......@@ -24,8 +24,7 @@ def track_event(component)
project: project,
user: current_user,
additional_properties: {
label: component.project.full_path,
property: "#{component.name}@#{component.version.name}",
label: component.id.to_s,
value: component.resource_type_before_type_cast
}
)
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册