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 ...@@ -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', value: Gitlab::Access::NO_ACCESS value 'NO_ACCESS', value: Gitlab::Access::NO_ACCESS, description: 'No access'
value 'GUEST', value: Gitlab::Access::GUEST value 'MINIMAL_ACCESS', value: Gitlab::Access::MINIMAL_ACCESS, description: 'Minimal access'
value 'REPORTER', value: Gitlab::Access::REPORTER value 'GUEST', value: Gitlab::Access::GUEST, description: 'Guest access'
value 'DEVELOPER', value: Gitlab::Access::DEVELOPER value 'REPORTER', value: Gitlab::Access::REPORTER, description: 'Reporter access'
value 'MAINTAINER', value: Gitlab::Access::MAINTAINER value 'DEVELOPER', value: Gitlab::Access::DEVELOPER, description: 'Developer access'
value 'OWNER', value: Gitlab::Access::OWNER value 'MAINTAINER', value: Gitlab::Access::MAINTAINER, description: 'Maintainer access'
value 'OWNER', value: Gitlab::Access::OWNER, description: 'Owner access'
end end
end end
...@@ -4964,12 +4964,13 @@ Access level to a resource. ...@@ -4964,12 +4964,13 @@ Access level to a resource.
| Value | Description | | Value | Description |
| ----- | ----------- | | ----- | ----------- |
| `DEVELOPER` | | | `DEVELOPER` | Developer access |
| `GUEST` | | | `GUEST` | Guest access |
| `MAINTAINER` | | | `MAINTAINER` | Maintainer access |
| `NO_ACCESS` | | | `MINIMAL_ACCESS` | Minimal access |
| `OWNER` | | | `NO_ACCESS` | No access |
| `REPORTER` | | | `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