Fix getting single custom role through graphQL
What does this MR do and why?
It fixes retrieving a single custom role through graphQL endpoint.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
How to set up and validate locally
- Make sure you are not on SaaS
- Create a new instance custom role, eg. using graphQL
mutation {
memberRoleCreate(input: {
name: "Instance role",
description: "This is a new test role",
readCode: true,
readVulnerability: true,
baseAccessLevel: GUEST
}) {
errors
memberRole {
id
name
}
}
}
- Verify you can retrieve this custom role using graphQL:
{
memberRole(id: "gid://gitlab/MemberRole/3") {
id
name
readVulnerability
readCode
adminGroupMember
}
}
Related to #437119 (closed)
Edited by Jarka Košanová