PoC: reordering work items in hierarchy widget
What does this MR do and why?
PoC for the suggested approach for implementing work items reordering in the hierarchy widget.
To test locally
- Visit a project and create an objective with child objectives following this hierarchy structure:
- Child 1 (id: 1)
- Subchild A (id: 4)
- Subchild B (id: 5)
- Subchild C (id: 6)
- Child 2 (id: 2)
- Child 3 (id: 3)
- Visit
http://gdk.test:3000/-/graphql-explorer
and test the following queries:
mutation updateWorkItemPosition {
workItemUpdate(input: {id: "gid://gitlab/WorkItem/3", hierarchyWidget: {relativePosition: BEFORE, adjacentWorkItemId: "gid://gitlab/WorkItem/1"}}) {
errors
}
}
mutation updateWorkItemParentPostition {
workItemUpdate(input: {id: "gid://gitlab/WorkItem/3", hierarchyWidget: {parentId: "gid://gitlab/WorkItem/1", relativePosition: BEFORE, adjacentWorkItemId: "gid://gitlab/WorkItem/5"}}) {
errors
}
}
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
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.