Commit c93163c7 authored by Jonathan Schafer's avatar Jonathan Schafer

Simplify the descriptions

parent 8311377c
...@@ -5,11 +5,12 @@ module Types ...@@ -5,11 +5,12 @@ module Types
graphql_name 'AccessLevelEnum' graphql_name 'AccessLevelEnum'
description 'Access level to a resource' description 'Access level to a resource'
value 'NO_ACCESS', description: 'No access (usually indicates sign-in is necessary)', value: Gitlab::Access::NO_ACCESS value 'NO_ACCESS', description: 'No access', value: Gitlab::Access::NO_ACCESS
value 'GUEST', description: 'Guest access to public environments', value: Gitlab::Access::GUEST value 'MINIMAL_ACCESS', description: 'Minimal access', value: Gitlab::Access::MINIMAL_ACCESS
value 'REPORTER', description: 'Reporter access to public environments', value: Gitlab::Access::REPORTER value 'GUEST', description: 'Guest access', value: Gitlab::Access::GUEST
value 'DEVELOPER', description: 'Developer access (includes maintainers)', value: Gitlab::Access::DEVELOPER 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 '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
end end
...@@ -4889,12 +4889,13 @@ Access level to a resource. ...@@ -4889,12 +4889,13 @@ Access level to a resource.
| Value | Description | | Value | Description |
| ----- | ----------- | | ----- | ----------- |
| `DEVELOPER` | Developer access (includes maintainers) | | `DEVELOPER` | Developer access |
| `GUEST` | Guest access to public environments | | `GUEST` | Guest access |
| `MAINTAINER` | Maintainer access | | `MAINTAINER` | Maintainer access |
| `NO_ACCESS` | No access (usually indicates sign-in is necessary) | | `MINIMAL_ACCESS` | Minimal access |
| `OWNER` | Code owner access (administrator access) | | `NO_ACCESS` | No access |
| `REPORTER` | Reporter access to public environments | | `OWNER` | Owner access |
| `REPORTER` | Reporter access |
### AlertManagementAlertSort ### AlertManagementAlertSort
......
...@@ -6,6 +6,6 @@ RSpec.describe GitlabSchema.types['AccessLevelEnum'] do ...@@ -6,6 +6,6 @@ RSpec.describe GitlabSchema.types['AccessLevelEnum'] do
specify { expect(described_class.graphql_name).to eq('AccessLevelEnum') } specify { expect(described_class.graphql_name).to eq('AccessLevelEnum') }
it 'exposes all the existing access levels' do 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
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment