Expose user permissions on the WorkItem GraphQL type
What does this MR do and why?
Use expose_permissions
in WorkItem
Type. Necessary for
#346132 (closed)
Related to #346132 (closed)
How to set up and validate locally
- Run
bundle exec rails console
- Run
Feature.enable(:work_items)
- Execute a GraphQL query like
{ workItem(id: "gid://gitlab/WorkItem/260") { id userPermissions { deleteWorkItem readWorkItem updateWorkItem } } }
- You should get a response like:
{ "data": { "workItem": { "id": "gid://gitlab/WorkItem/260", "userPermissions": { "deleteWorkItem": true, "readWorkItem": true, "updateWorkItem": true } } } }
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 Mario Celi