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

Remove distribution from metric and event schema

上级 48838dfb
No related branches found
No related tags found
无相关合并请求
...@@ -10,12 +10,6 @@ ...@@ -10,12 +10,6 @@
], ],
"additionalProperties": false, "additionalProperties": false,
"properties": { "properties": {
"distributions": {
"type": [
"array",
"null"
]
},
"description": { "description": {
"type": "string" "type": "string"
}, },
......
...@@ -109,19 +109,6 @@ ...@@ -109,19 +109,6 @@
"type": "string", "type": "string",
"pattern": "^(([A-Z][a-z]+)+::)*(([A-Z]+[a-z]+)+)$" "pattern": "^(([A-Z][a-z]+)+::)*(([A-Z]+[a-z]+)+)$"
}, },
"distribution": {
"type": [
"array",
"null"
],
"items": {
"type": "string",
"enum": [
"ee",
"ce"
]
}
},
"performance_indicator_type": { "performance_indicator_type": {
"type": "array", "type": "array",
"items": { "items": {
......
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
value_description: 'ID of the issue', value_description: 'ID of the issue',
extra_properties: { confidential: false }, extra_properties: { confidential: false },
product_group: 'group::product analytics', product_group: 'group::product analytics',
distributions: %w[ee ce],
tiers: %w[free premium ultimate], tiers: %w[free premium ultimate],
introduced_by_url: "https://gitlab.com/example/-/merge_requests/123", introduced_by_url: "https://gitlab.com/example/-/merge_requests/123",
milestone: '1.6' milestone: '1.6'
...@@ -35,7 +34,6 @@ ...@@ -35,7 +34,6 @@
:value_description | 1 :value_description | 1
:extra_properties | 'smth' :extra_properties | 'smth'
:product_group | nil :product_group | nil
:distributions | %(be eb)
:tiers | %(pro) :tiers | %(pro)
:product_categories | 'bad_category' :product_categories | 'bad_category'
:product_categories | ['bad_category'] :product_categories | ['bad_category']
...@@ -60,7 +58,6 @@ ...@@ -60,7 +58,6 @@
internal_events: true, internal_events: true,
product_group: 'activation', product_group: 'activation',
introduced_by_url: "https://gitlab.com/example/-/merge_requests/123", introduced_by_url: "https://gitlab.com/example/-/merge_requests/123",
distributions: %w[ce],
milestone: "1.0", milestone: "1.0",
tiers: %w[free], tiers: %w[free],
additional_properties: {} additional_properties: {}
......
...@@ -198,7 +198,6 @@ def write_metric(metric, path, content) ...@@ -198,7 +198,6 @@ def write_metric(metric, path, content)
:time_frame | '29d' :time_frame | '29d'
:data_source | 'other' :data_source | 'other'
:data_source | nil :data_source | nil
:distribution | 'test'
:tiers | %w[test ee] :tiers | %w[test ee]
:repair_issue_url | nil :repair_issue_url | nil
:removed_by_url | 1 :removed_by_url | 1
...@@ -375,17 +374,6 @@ def write_metric(metric, path, content) ...@@ -375,17 +374,6 @@ def write_metric(metric, path, content)
end end
end end
end end
# ToDo: Remove once https://gitlab.com/gitlab-org/gitlab/-/issues/469514 is closed
context 'when metric has no distribution' do
before do
attributes[:distribution] = nil
end
it 'has no validation errors' do
expect_no_validation_errors
end
end
end end
end end
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册