stable

Clone or download

Read-only

Be able to close a campaign in REST

This is part of request #20088 Improve the management of closed campaigns You are now able to close a campaign using the REST route PATCH testmanagement_campaigns/id with the following body: { "change_status": "closed" } This uses the same behaviour defined for Kanban. We find the first not open value defined in the campaign tracker and we apply it to the campaign. Automated REST tests will be added in the next patch with the ability to open a campaign. Change-Id: I19b0b4259557204fec2d3a0b67ad4d80aedf5ffd

Modified Files

Name
A plugins/testmanagement/include/TestManagement/REST/v1/CampaignArtifactUpdateFieldValuesBuilder.php +143 −0 Go to diff View file
A plugins/testmanagement/include/TestManagement/REST/v1/CampaignStatusChangeUnknownValueException.php +29 −0 Go to diff View file
R plugins/testmanagement/include/TestManagement/REST/v1/CampaignUpdater.class.php Go to diff View file
M plugins/testmanagement/include/TestManagement/REST/v1/CampaignsResource.class.php +25 −4 Go to diff View file
A plugins/testmanagement/tests/unit/TestManagement/REST/v1/CampaignArtifactUpdateFieldValuesBuilderTest.php +236 −0 Go to diff View file
M plugins/tracker/include/Tracker/Semantic/Status/SemanticStatusNotDefinedException.php +6 −0 Go to diff View file
M plugins/tracker/include/Tracker/Semantic/Status/SemanticStatusNotOpenValueNotFoundException.php +6 −0 Go to diff View file
M plugins/tracker/include/Tracker/Semantic/Status/StatusValueRetriever.php +3 −3 Go to diff View file