stable

Clone or download

Read-only

Update PATCH taskboard cell to change card status

Part of story #13626 Drag and drop cards How to test: - Using the API explorer, change a solo card status (see route documentation) - change a child card status - When you don't have permission to update the mapped field (or status semantic), you should have a REST error - When the workflow forbids the transition, you should have a REST error - When the field dependencies are invalid, you should have a REST error - When there is no mapped value for this column, you should have a REST error - When there is no mapped field for this tracker, you should have a REST error Change-Id: I15efbff000886824d429a6f36d146caab3315373

Modified Files

Name
M plugins/taskboard/include/Column/FieldValuesToColumnMapping/EmptyMappedValues.php +10 −0 Go to diff View file
M plugins/taskboard/include/Column/FieldValuesToColumnMapping/Freestyle/FreestyleMappingFactory.php +1 −1 Go to diff View file
M plugins/taskboard/include/Column/FieldValuesToColumnMapping/MappedValues.php +10 −0 Go to diff View file
M plugins/taskboard/include/Column/FieldValuesToColumnMapping/MappedValuesInterface.php +4 −0 Go to diff View file
M plugins/taskboard/include/Column/FieldValuesToColumnMapping/MappedValuesRetriever.php +1 −1 Go to diff View file
A plugins/taskboard/include/Column/InvalidColumnException.php +27 −0 Go to diff View file
A plugins/taskboard/include/Column/MilestoneTrackerRetriever.php +55 −0 Go to diff View file
A plugins/taskboard/include/REST/v1/Cell/AddValidator.php +67 −0 Go to diff View file
A plugins/taskboard/include/REST/v1/Cell/CardMappedFieldUpdater.php +225 −0 Go to diff View file
M plugins/taskboard/include/REST/v1/Cell/CellPatchRepresentation.php +6 −2 Go to diff View file
M plugins/taskboard/include/REST/v1/Cell/CellPatcher.php +48 −13 Go to diff View file
M plugins/taskboard/include/REST/v1/Cell/CellResource.php +23 −9 Go to diff View file
A plugins/taskboard/phpunit/Column/FieldValuesToColumnMapping/EmptyMappedValuesTest.php +55 −0 Go to diff View file
A plugins/taskboard/phpunit/Column/FieldValuesToColumnMapping/MappedValuesTest.php +54 −0 Go to diff View file
A plugins/taskboard/phpunit/Column/MilestoneTrackerRetrieverTest.php +80 −0 Go to diff View file
A plugins/taskboard/phpunit/REST/v1/Cell/AddValidatorTest.php +113 −0 Go to diff View file
A plugins/taskboard/phpunit/REST/v1/Cell/CardMappedFieldUpdaterTest.php +299 −0 Go to diff View file
M plugins/taskboard/phpunit/REST/v1/Cell/CellPatcherTest.php +87 −50 Go to diff View file
M plugins/taskboard/site-content/fr_FR/LC_MESSAGES/tuleap-taskboard.po +32 −5 Go to diff View file
M plugins/taskboard/tests/rest/TaskboardCellTest.php +65 −0 Go to diff View file
M plugins/taskboard/tests/rest/_fixtures/taskboard/project.xml +38 −0 Go to diff View file
M plugins/tracker/include/REST/Artifact/ArtifactUpdater.class.php +7 −1 Go to diff View file