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
af84456b
Commit
af84456b
authored
May 19, 2021
by
Jonathan Schafer
Committed by
Matthias Käppler
May 19, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add descriptions to Snippets::VisibilityScopesEnum
parent
6467ddd2
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
8 deletions
+7
-8
.rubocop_manual_todo.yml
.rubocop_manual_todo.yml
+0
-1
app/graphql/types/snippets/visibility_scopes_enum.rb
app/graphql/types/snippets/visibility_scopes_enum.rb
+3
-3
doc/api/graphql/reference/index.md
doc/api/graphql/reference/index.md
+3
-3
doc/api/project_snippets.md
doc/api/project_snippets.md
+1
-1
No files found.
.rubocop_manual_todo.yml
View file @
af84456b
...
...
@@ -14,7 +14,6 @@
Graphql/Descriptions
:
Exclude
:
-
'
app/graphql/types/snippets/blob_action_enum.rb'
-
'
app/graphql/types/snippets/visibility_scopes_enum.rb'
-
'
ee/app/graphql/ee/types/list_limit_metric_enum.rb'
-
'
ee/app/graphql/types/epic_state_enum.rb'
-
'
ee/app/graphql/types/health_status_enum.rb'
...
...
app/graphql/types/snippets/visibility_scopes_enum.rb
View file @
af84456b
...
...
@@ -3,9 +3,9 @@
module
Types
module
Snippets
class
VisibilityScopesEnum
<
BaseEnum
value
'private'
,
value:
'are_private'
value
'internal'
,
value:
'are_internal'
value
'public'
,
value:
'are_public'
value
'private'
,
description:
'The snippet is visible only to the snippet creator.'
,
value:
'are_private'
value
'internal'
,
description:
'The snippet is visible for any logged in user except external users.'
,
value:
'are_internal'
value
'public'
,
description:
'The snippet can be accessed without any authentication.'
,
value:
'are_public'
end
end
end
doc/api/graphql/reference/index.md
View file @
af84456b
...
...
@@ -14668,9 +14668,9 @@ Possible states of a user.
| Value | Description |
| ----- | ----------- |
|
<a
id=
"visibilityscopesenuminternal"
></a>
`internal`
| |
|
<a
id=
"visibilityscopesenumprivate"
></a>
`private`
| |
|
<a
id=
"visibilityscopesenumpublic"
></a>
`public`
| |
|
<a
id=
"visibilityscopesenuminternal"
></a>
`internal`
|
The snippet is visible for any logged in user except external users.
|
|
<a
id=
"visibilityscopesenumprivate"
></a>
`private`
|
The snippet is visible only to the snippet creator.
|
|
<a
id=
"visibilityscopesenumpublic"
></a>
`public`
|
The snippet can be accessed without any authentication.
|
### `VulnerabilityDismissalReason`
...
...
doc/api/project_snippets.md
View file @
af84456b
...
...
@@ -16,7 +16,7 @@ Constants for snippet visibility levels are:
| visibility | Description |
| ---------- | ----------- |
|
`private`
| The snippet is visible only the snippet creator |
|
`private`
| The snippet is visible only t
o t
he snippet creator |
|
`internal`
| The snippet is visible for any logged in user except
[
external users
](
../user/permissions.md#external-users
)
|
|
`public`
| The snippet can be accessed without any authentication |
...
...
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