Add workItemUpdateWidgets mutation to GraphQL API
What does this MR do and why?
The MR implements a new GraphQL mutation for updating the widget attributes of a work item.
How to set up and validate locally
-
Enable
:work_items
FFFeature.enable(:work_items)
-
Grab an issue and note its id and description.
If the issue's id is 460
, its work item GID is gid://gitlab/WorkItem/449
(gid://gitlab/Issue/460
equally works.)
- Run the sample GraphQL query
mutation {
workItemUpdate(input: {id: "gid://gitlab/WorkItem/460", weightWidget: { weight: 2 } }) {
workItem {
id
title
widgets {
... on WorkItemWidgetWeight {
weight
}
}
}
errors
}
}
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 euko