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
62fd4897
Commit
62fd4897
authored
Mar 09, 2021
by
Marcel Amirault
Committed by
James Fargher
Mar 09, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updating usage dictionary generator
Update avoids lines that end in whitespace
parent
48e6b011
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
296 additions
and
291 deletions
+296
-291
changelogs/unreleased/usage-ping-dictionary-whitespace.yml
changelogs/unreleased/usage-ping-dictionary-whitespace.yml
+5
-0
doc/development/usage_ping/dictionary.md
doc/development/usage_ping/dictionary.md
+287
-287
lib/gitlab/usage/docs/helper.rb
lib/gitlab/usage/docs/helper.rb
+1
-1
lib/gitlab/usage/docs/value_formatter.rb
lib/gitlab/usage/docs/value_formatter.rb
+1
-1
spec/lib/gitlab/usage/docs/value_formatter_spec.rb
spec/lib/gitlab/usage/docs/value_formatter_spec.rb
+2
-2
No files found.
changelogs/unreleased/usage-ping-dictionary-whitespace.yml
0 → 100644
View file @
62fd4897
---
title
:
Updating usage dictionary generator
merge_request
:
55956
author
:
type
:
other
doc/development/usage_ping/dictionary.md
View file @
62fd4897
This diff is collapsed.
Click to expand it.
lib/gitlab/usage/docs/helper.rb
View file @
62fd4897
...
@@ -46,7 +46,7 @@ module Gitlab
...
@@ -46,7 +46,7 @@ module Gitlab
end
end
def
render_tiers
(
object
)
def
render_tiers
(
object
)
"Tiers:
#{
format
(
:tier
,
object
[
:tier
])
}
"
"Tiers:
#{
format
(
:tier
,
object
[
:tier
])
}
"
end
end
def
format
(
key
,
value
)
def
format
(
key
,
value
)
...
...
lib/gitlab/usage/docs/value_formatter.rb
View file @
62fd4897
...
@@ -17,7 +17,7 @@ module Gitlab
...
@@ -17,7 +17,7 @@ module Gitlab
when
:introduced_by_url
when
:introduced_by_url
"[Introduced by](
#{
value
}
)"
"[Introduced by](
#{
value
}
)"
when
:distribution
,
:tier
when
:distribution
,
:tier
Array
(
value
).
map
{
|
tier
|
"
`
#{
tier
}
`"
}.
join
(
',
'
)
Array
(
value
).
map
{
|
tier
|
"
`
#{
tier
}
`"
}.
join
(
',
'
)
else
else
value
value
end
end
...
...
spec/lib/gitlab/usage/docs/value_formatter_spec.rb
View file @
62fd4897
...
@@ -10,8 +10,8 @@ RSpec.describe Gitlab::Usage::Docs::ValueFormatter do
...
@@ -10,8 +10,8 @@ RSpec.describe Gitlab::Usage::Docs::ValueFormatter do
:data_source
|
'redis'
|
'Redis'
:data_source
|
'redis'
|
'Redis'
:data_source
|
'ruby'
|
'Ruby'
:data_source
|
'ruby'
|
'Ruby'
:introduced_by_url
|
'http://test.com'
|
'[Introduced by](http://test.com)'
:introduced_by_url
|
'http://test.com'
|
'[Introduced by](http://test.com)'
:tier
|
%w(gold premium)
|
'`gold`, `premium`'
:tier
|
%w(gold premium)
|
'
`gold`, `premium`'
:distribution
|
%w(ce ee)
|
'`ce`, `ee`'
:distribution
|
%w(ce ee)
|
'
`ce`, `ee`'
:key_path
|
'key.path'
|
'**`key.path`**'
:key_path
|
'key.path'
|
'**`key.path`**'
:milestone
|
'13.4'
|
'13.4'
:milestone
|
'13.4'
|
'13.4'
:status
|
'data_available'
|
'`data_available`'
:status
|
'data_available'
|
'`data_available`'
...
...
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