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
c93163c7
Commit
c93163c7
authored
Feb 24, 2021
by
Jonathan Schafer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify the descriptions
parent
8311377c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
11 deletions
+13
-11
app/graphql/types/access_level_enum.rb
app/graphql/types/access_level_enum.rb
+6
-5
doc/api/graphql/reference/index.md
doc/api/graphql/reference/index.md
+6
-5
spec/graphql/types/access_level_enum_spec.rb
spec/graphql/types/access_level_enum_spec.rb
+1
-1
No files found.
app/graphql/types/access_level_enum.rb
View file @
c93163c7
...
...
@@ -5,11 +5,12 @@ module Types
graphql_name
'AccessLevelEnum'
description
'Access level to a resource'
value
'NO_ACCESS'
,
description:
'No access (usually indicates sign-in is necessary)'
,
value:
Gitlab
::
Access
::
NO_ACCESS
value
'GUEST'
,
description:
'Guest access to public environments'
,
value:
Gitlab
::
Access
::
GUEST
value
'REPORTER'
,
description:
'Reporter access to public environments'
,
value:
Gitlab
::
Access
::
REPORTER
value
'DEVELOPER'
,
description:
'Developer access (includes maintainers)'
,
value:
Gitlab
::
Access
::
DEVELOPER
value
'NO_ACCESS'
,
description:
'No access'
,
value:
Gitlab
::
Access
::
NO_ACCESS
value
'MINIMAL_ACCESS'
,
description:
'Minimal access'
,
value:
Gitlab
::
Access
::
MINIMAL_ACCESS
value
'GUEST'
,
description:
'Guest access'
,
value:
Gitlab
::
Access
::
GUEST
value
'REPORTER'
,
description:
'Reporter access'
,
value:
Gitlab
::
Access
::
REPORTER
value
'DEVELOPER'
,
description:
'Developer access'
,
value:
Gitlab
::
Access
::
DEVELOPER
value
'MAINTAINER'
,
description:
'Maintainer access'
,
value:
Gitlab
::
Access
::
MAINTAINER
value
'OWNER'
,
description:
'
Code owner access (administrator access)
'
,
value:
Gitlab
::
Access
::
OWNER
value
'OWNER'
,
description:
'
Owner access
'
,
value:
Gitlab
::
Access
::
OWNER
end
end
doc/api/graphql/reference/index.md
View file @
c93163c7
...
...
@@ -4889,12 +4889,13 @@ Access level to a resource.
| Value | Description |
| ----- | ----------- |
|
`DEVELOPER`
| Developer access
(includes maintainers)
|
|
`GUEST`
| Guest access
to public environments
|
|
`DEVELOPER`
| Developer access |
|
`GUEST`
| Guest access |
|
`MAINTAINER`
| Maintainer access |
|
`NO_ACCESS`
| No access (usually indicates sign-in is necessary) |
|
`OWNER`
| Code owner access (administrator access) |
|
`REPORTER`
| Reporter access to public environments |
|
`MINIMAL_ACCESS`
| Minimal access |
|
`NO_ACCESS`
| No access |
|
`OWNER`
| Owner access |
|
`REPORTER`
| Reporter access |
### AlertManagementAlertSort
...
...
spec/graphql/types/access_level_enum_spec.rb
View file @
c93163c7
...
...
@@ -6,6 +6,6 @@ RSpec.describe GitlabSchema.types['AccessLevelEnum'] do
specify
{
expect
(
described_class
.
graphql_name
).
to
eq
(
'AccessLevelEnum'
)
}
it
'exposes all the existing access levels'
do
expect
(
described_class
.
values
.
keys
).
to
match_array
(
%w[NO_ACCESS GUEST REPORTER DEVELOPER MAINTAINER OWNER]
)
expect
(
described_class
.
values
.
keys
).
to
match_array
(
%w[NO_ACCESS
MINIMAL_ACCESS
GUEST REPORTER DEVELOPER MAINTAINER OWNER]
)
end
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