stable
Clone or download
Part of story #13626 Drag and drop cards How to test: Use the API explorer to reorder cards in a swimlane. You must provide: - the ID of an artifact which is a swimlane (for example a User story) - the ID of a column (see the route GET /taskboard/:id/columns) - the IDs of multiple children Cards you would like to reorder. They must be children of the given Swimlane (for example Tasks) - The ID of a child Card to compare to. - The direction of the reordering "before" or "after". For example, the following order representation will sort task #123 and task #789 before task #456 { "ids": [123, 789], "direction": "before", "compared_to": 456 } Notes to reviewer: The acceptance criteria don't require reordering multiple items, but I would prefer reusing existing "Reordering" code from AgileDashboard. This way, we have a more consistent API. Please note that Kanban has a similar API even though Kanban's frontend does not allow multiple selection when drag and dropping. Change-Id: I1c1cdbcd4426e95a7f49acc6f38f4057e10b6142
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/taskboard/include/REST/ResourcesInjector.php | +1 | −0 | Go to diff View file |
A | plugins/taskboard/include/REST/v1/CellPatcher.php | +122 | −0 | Go to diff View file |
A | plugins/taskboard/include/REST/v1/TaskboardCellResource.php | +83 | −0 | Go to diff View file |
A | plugins/taskboard/include/Swimlane/SwimlaneChildrenRetriever.php | +40 | −0 | Go to diff View file |
A | plugins/taskboard/phpunit/REST/v1/CellPatcherTest.php | +207 | −0 | Go to diff View file |
A | plugins/taskboard/phpunit/Swimlane/SwimlaneChildrenRetrieverTest.php | +58 | −0 | Go to diff View file |
A | plugins/taskboard/tests/rest/TaskboardCellTest.php | +143 | −0 | Go to diff View file |
M | plugins/taskboard/tests/rest/TaskboardTest.php | +1 | −1 | Go to diff View file |
M | plugins/taskboard/tests/rest/_fixtures/taskboard/project.xml | +92 | −0 | Go to diff View file |
M | src/common/REST/v1/OrderRepresentationBase.class.php | +1 | −1 | Go to diff View file |