Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
a7e782e8
Commit
a7e782e8
authored
Jul 16, 2021
by
alinamihaila
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make data_category required
parent
51062952
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
config/metrics/schema.json
config/metrics/schema.json
+1
-1
spec/lib/gitlab/usage/metric_definition_spec.rb
spec/lib/gitlab/usage/metric_definition_spec.rb
+5
-2
No files found.
config/metrics/schema.json
View file @
a7e782e8
{
"type"
:
"object"
,
"required"
:
[
"key_path"
,
"description"
,
"value_type"
,
"status"
,
"product_group"
,
"time_frame"
,
"data_source"
,
"distribution"
,
"tier"
],
"required"
:
[
"key_path"
,
"description"
,
"value_type"
,
"status"
,
"product_group"
,
"time_frame"
,
"data_source"
,
"distribution"
,
"tier"
,
"data_category"
],
"properties"
:
{
"key_path"
:
{
"type"
:
"string"
...
...
spec/lib/gitlab/usage/metric_definition_spec.rb
View file @
a7e782e8
...
...
@@ -17,7 +17,8 @@ RSpec.describe Gitlab::Usage::MetricDefinition do
data_source:
'database'
,
distribution:
%w(ee ce)
,
tier:
%w(free starter premium ultimate bronze silver gold)
,
name:
'count_boards'
name:
'uuid'
,
data_category:
'Standard'
}
end
...
...
@@ -63,6 +64,7 @@ RSpec.describe Gitlab::Usage::MetricDefinition do
:value_type
|
nil
:value_type
|
'test'
:status
|
nil
:data_category
|
nil
:key_path
|
nil
:product_group
|
nil
:time_frame
|
nil
...
...
@@ -196,7 +198,8 @@ RSpec.describe Gitlab::Usage::MetricDefinition do
time_frame:
'none'
,
data_source:
'database'
,
distribution:
%w(ee ce)
,
tier:
%w(free starter premium ultimate bronze silver gold)
tier:
%w(free starter premium ultimate bronze silver gold)
,
data_category:
'Optional'
}
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment