Return permission values in upcase
What does this MR do and why?
It changes the endpoint to return permission as upper cases.
This was discussed in another MR and is desired by frontend.
How to set up and validate locally
Graphql query
query memberRoleAbilitiesList {
memberRolePermissions {
nodes {
availableFor
description
name
requirement
value
}
}
}
Response
{
"data": {
"memberRolePermissions": {
"nodes": [
{
"availableFor": [],
"description": "Allows admin access to group members.",
"name": "Admin group member",
"requirement": null,
"value": "ADMIN_GROUP_MEMBER"
},
{
"availableFor": [],
"description": "Allows admin access to the merge requests.",
"name": "Admin merge request",
"requirement": null,
"value": "ADMIN_MERGE_REQUEST"
},
{
"availableFor": [],
"description": "Allows admin access to the vulnerability reports.",
"name": "Admin vulnerability",
"requirement": "READ_VULNERABILITY",
"value": "ADMIN_VULNERABILITY"
},
{
"availableFor": [],
"description": "Allows read-only access to the source code.",
"name": "Read code",
"requirement": null,
"value": "READ_CODE"
},
{
"availableFor": [],
"description": "Allows read-only access to the dependencies.",
"name": "Read dependency",
"requirement": null,
"value": "READ_DEPENDENCY"
},
{
"availableFor": [],
"description": "Allows read-only access to the vulnerability reports.",
"name": "Read vulnerability",
"requirement": null,
"value": "READ_VULNERABILITY"
},
{
"availableFor": [],
"description": "Allows manage access to the project access tokens",
"name": "Manage project access tokens",
"requirement": null,
"value": "MANAGE_PROJECT_ACCESS_TOKENS"
},
{
"availableFor": [],
"description": "Allows to archive projects",
"name": "Archive project",
"requirement": null,
"value": "ARCHIVE_PROJECT"
}
]
}
}
}
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Jarka Košanová