Commit 7a5c1f0d authored by Thong Kuah's avatar Thong Kuah

Merge branch '299489-over-10-of-graphql-descriptions-are-missing-access-level-enum' into 'master'

Add descriptions to AccessLevelEnum

See merge request gitlab-org/gitlab!54988
parents a2e08396 5d63bc39
......@@ -5,11 +5,12 @@ module Types
graphql_name 'AccessLevelEnum'
description 'Access level to a resource'
value 'NO_ACCESS', value: Gitlab::Access::NO_ACCESS
value 'GUEST', value: Gitlab::Access::GUEST
value 'REPORTER', value: Gitlab::Access::REPORTER
value 'DEVELOPER', value: Gitlab::Access::DEVELOPER
value 'MAINTAINER', value: Gitlab::Access::MAINTAINER
value 'OWNER', value: Gitlab::Access::OWNER
value 'NO_ACCESS', value: Gitlab::Access::NO_ACCESS, description: 'No access'
value 'MINIMAL_ACCESS', value: Gitlab::Access::MINIMAL_ACCESS, description: 'Minimal access'
value 'GUEST', value: Gitlab::Access::GUEST, description: 'Guest access'
value 'REPORTER', value: Gitlab::Access::REPORTER, description: 'Reporter access'
value 'DEVELOPER', value: Gitlab::Access::DEVELOPER, description: 'Developer access'
value 'MAINTAINER', value: Gitlab::Access::MAINTAINER, description: 'Maintainer access'
value 'OWNER', value: Gitlab::Access::OWNER, description: 'Owner access'
end
end
......@@ -4964,12 +4964,13 @@ Access level to a resource.
| Value | Description |
| ----- | ----------- |
| `DEVELOPER` | |
| `GUEST` | |
| `MAINTAINER` | |
| `NO_ACCESS` | |
| `OWNER` | |
| `REPORTER` | |
| `DEVELOPER` | Developer access |
| `GUEST` | Guest access |
| `MAINTAINER` | Maintainer access |
| `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