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
aa087785
Commit
aa087785
authored
Oct 06, 2020
by
ggelatti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add dict to package name in docs
Improve package GraphQL descriptions by translating the package names.
parent
4d33351b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
7 deletions
+13
-7
app/graphql/types/package_type_enum.rb
app/graphql/types/package_type_enum.rb
+7
-1
doc/api/graphql/reference/gitlab_schema.graphql
doc/api/graphql/reference/gitlab_schema.graphql
+2
-2
doc/api/graphql/reference/gitlab_schema.json
doc/api/graphql/reference/gitlab_schema.json
+2
-2
doc/api/graphql/reference/index.md
doc/api/graphql/reference/index.md
+2
-2
No files found.
app/graphql/types/package_type_enum.rb
View file @
aa087785
...
...
@@ -2,8 +2,14 @@
module
Types
class
PackageTypeEnum
<
BaseEnum
PACKAGE_TYPE_NAMES
=
{
pypi:
'PyPI'
,
npm:
'NPM'
}.
freeze
::
Packages
::
Package
.
package_types
.
keys
.
each
do
|
package_type
|
value
package_type
.
to_s
.
upcase
,
"Packages from the
#{
package_type
.
capitalize
}
package manager"
,
value:
package_type
.
to_s
type_name
=
PACKAGE_TYPE_NAMES
.
fetch
(
package_type
.
to_sym
,
package_type
.
capitalize
)
value
package_type
.
to_s
.
upcase
,
"Packages from the
#{
type_name
}
package manager"
,
value:
package_type
.
to_s
end
end
end
doc/api/graphql/reference/gitlab_schema.graphql
View file @
aa087785
...
...
@@ -12459,7 +12459,7 @@ enum PackageTypeEnum {
MAVEN
"""
Packages
from
the
N
pm
package
manager
Packages
from
the
N
PM
package
manager
"""
NPM
...
...
@@ -12469,7 +12469,7 @@ enum PackageTypeEnum {
NUGET
"""
Packages
from
the
Py
pi
package
manager
Packages
from
the
Py
PI
package
manager
"""
PYPI
}
...
...
doc/api/graphql/reference/gitlab_schema.json
View file @
aa087785
...
...
@@ -36737,7 +36737,7 @@
},
{
"name": "NPM",
"description": "Packages from the N
pm
package manager",
"description": "Packages from the N
PM
package manager",
"isDeprecated": false,
"deprecationReason": null
},
...
...
@@ -36755,7 +36755,7 @@
},
{
"name": "PYPI",
"description": "Packages from the Py
pi
package manager",
"description": "Packages from the Py
PI
package manager",
"isDeprecated": false,
"deprecationReason": null
},
doc/api/graphql/reference/index.md
View file @
aa087785
...
...
@@ -3447,9 +3447,9 @@ Values for sorting projects.
|
`GENERIC`
| Packages from the Generic package manager |
|
`GOLANG`
| Packages from the Golang package manager |
|
`MAVEN`
| Packages from the Maven package manager |
|
`NPM`
| Packages from the N
pm
package manager |
|
`NPM`
| Packages from the N
PM
package manager |
|
`NUGET`
| Packages from the Nuget package manager |
|
`PYPI`
| Packages from the Py
pi
package manager |
|
`PYPI`
| Packages from the Py
PI
package manager |
### PipelineConfigSourceEnum
...
...
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