Commit c93163c7 authored by Jonathan Schafer's avatar Jonathan Schafer

Simplify the descriptions

parent 8311377c
......@@ -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
......@@ -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
......
......@@ -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
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