stable

Clone or download

Read-only

Update PATCH /projects/:id/backlog to add a "remove" action

This is part of story #10143 add/remove backlog items in planning view PATCH projects/:id/backlog now allows a new optionnal parameter named "remove": { "remove" : [ {"id": 143}, ... ] } An error is thrown if this option is used in classic backlog management. An error is thrown if at least one of the provided artifact id to remove from the project top backlog is not in the explicit top backlog. Change-Id: Iab7acb20e1e01ee7527fe2c75802cb89381f6b74

Modified Files

Name
M plugins/agiledashboard/include/AgileDashboard/ExplicitBacklog/ArtifactsInExplicitBacklogDao.php +14 −2 Go to diff View file
A plugins/agiledashboard/include/AgileDashboard/REST/v1/Milestone/MilestoneElementRemover.php +111 −0 Go to diff View file
A plugins/agiledashboard/include/AgileDashboard/REST/v1/Milestone/ProvidedRemoveIdIsNotInExplicitBacklogException.php +34 −0 Go to diff View file
A plugins/agiledashboard/include/AgileDashboard/REST/v1/Milestone/RemoveNotAvailableInClassicBacklogModeException.php +34 −0 Go to diff View file
M plugins/agiledashboard/include/AgileDashboard/REST/v1/ProjectBacklogResource.class.php +24 −2 Go to diff View file
M plugins/agiledashboard/include/agiledashboardPlugin.php +2 −1 Go to diff View file
A plugins/agiledashboard/phpunit/REST/v1/Milestone/MilestoneElementRemoverTests.php +168 −0 Go to diff View file
M plugins/agiledashboard/tests/rest/ExplicitBacklog/ExplicitBacklogTest.php +33 −0 Go to diff View file
M src/common/Project/REST/v1/ProjectResource.class.php +14 −1 Go to diff View file