Commit 905c88d7 authored by Alper Akgun's avatar Alper Akgun

Merge branch 'am-make-milestone-required-n-metric-defintion' into 'master'

Make milestone required in metric definition

See merge request gitlab-org/gitlab!69638
parents 0270ed05 a161459c
{ {
"type": "object", "type": "object",
"required": ["key_path", "description", "value_type", "status", "product_group", "time_frame", "data_source", "distribution", "tier", "data_category"], "required": ["key_path", "description", "value_type", "status", "product_group", "time_frame", "data_source", "distribution", "tier", "data_category", "milestone"],
"properties": { "properties": {
"key_path": { "key_path": {
"type": "string" "type": "string"
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
"enum": ["active", "data_available", "implemented", "deprecated", "removed", "broken"] "enum": ["active", "data_available", "implemented", "deprecated", "removed", "broken"]
}, },
"milestone": { "milestone": {
"type": ["string", "null"], "type": ["string"],
"pattern": "^<?[0-9]+\\.[0-9]+$" "pattern": "^<?[0-9]+\\.[0-9]+$"
}, },
"milestone_removed": { "milestone_removed": {
......
...@@ -7,6 +7,8 @@ product_group: group::container security ...@@ -7,6 +7,8 @@ product_group: group::container security
product_category: container_scanning product_category: container_scanning
value_type: number value_type: number
status: implemented status: implemented
milestone: "14.1"
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/64877
time_frame: 28d time_frame: 28d
data_source: database data_source: database
data_category: optional data_category: optional
......
...@@ -7,6 +7,8 @@ product_group: group::container security ...@@ -7,6 +7,8 @@ product_group: group::container security
product_category: container_scanning product_category: container_scanning
value_type: number value_type: number
status: implemented status: implemented
milestone: "14.1"
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/64877
time_frame: 28d time_frame: 28d
data_source: database data_source: database
data_category: optional data_category: optional
......
...@@ -7,6 +7,7 @@ product_group: group::static analysis ...@@ -7,6 +7,7 @@ product_group: group::static analysis
product_category: static_application_security_testing product_category: static_application_security_testing
value_type: number value_type: number
status: data_available status: data_available
milestone: "<13.9"
time_frame: 28d time_frame: 28d
data_source: database data_source: database
data_category: operational data_category: operational
......
...@@ -7,6 +7,7 @@ product_group: group::container security ...@@ -7,6 +7,7 @@ product_group: group::container security
product_category: container_scanning product_category: container_scanning
value_type: number value_type: number
status: data_available status: data_available
milestone: "13.9"
time_frame: 28d time_frame: 28d
data_source: database data_source: database
data_category: operational data_category: operational
......
...@@ -7,6 +7,7 @@ product_group: group::static analysis ...@@ -7,6 +7,7 @@ product_group: group::static analysis
product_category: secret_detection product_category: secret_detection
value_type: number value_type: number
status: data_available status: data_available
milestone: "<13.9"
time_frame: 28d time_frame: 28d
data_source: database data_source: database
data_category: operational data_category: operational
......
...@@ -7,6 +7,8 @@ product_group: group::container security ...@@ -7,6 +7,8 @@ product_group: group::container security
product_category: container_scanning product_category: container_scanning
value_type: number value_type: number
status: implemented status: implemented
milestone: "14.1"
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/64877
time_frame: all time_frame: all
data_source: database data_source: database
data_category: optional data_category: optional
......
...@@ -10,6 +10,7 @@ RSpec.describe Gitlab::Usage::MetricDefinition do ...@@ -10,6 +10,7 @@ RSpec.describe Gitlab::Usage::MetricDefinition do
product_category: 'collection', product_category: 'collection',
product_stage: 'growth', product_stage: 'growth',
status: 'active', status: 'active',
milestone: '14.1',
default_generation: 'generation_1', default_generation: 'generation_1',
key_path: 'uuid', key_path: 'uuid',
product_group: 'group::product analytics', product_group: 'group::product analytics',
...@@ -64,6 +65,7 @@ RSpec.describe Gitlab::Usage::MetricDefinition do ...@@ -64,6 +65,7 @@ RSpec.describe Gitlab::Usage::MetricDefinition do
:value_type | nil :value_type | nil
:value_type | 'test' :value_type | 'test'
:status | nil :status | nil
:milestone | nil
:data_category | nil :data_category | nil
:key_path | nil :key_path | nil
:product_group | nil :product_group | nil
...@@ -190,6 +192,7 @@ RSpec.describe Gitlab::Usage::MetricDefinition do ...@@ -190,6 +192,7 @@ RSpec.describe Gitlab::Usage::MetricDefinition do
product_category: 'collection', product_category: 'collection',
product_stage: 'growth', product_stage: 'growth',
status: 'active', status: 'active',
milestone: '14.1',
default_generation: 'generation_1', default_generation: 'generation_1',
key_path: 'counter.category.event', key_path: 'counter.category.event',
product_group: 'group::product analytics', product_group: 'group::product analytics',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment