stable

Clone or download

Read-only

Add a feature in a Program Increment

Part of story #20111 change features priority How to test: - call PATCH /api/v1/program_increment/$id/content with a payload like this: { "add": [{"id": <feature_id>}] } If all conditions are met, it should succeed with code 200. Conditions are: - feature_id is an existing artifact - it belongs to a Tracker that can be planned (check Plan DB) - program_increment's $id is an existing artifact - it belongs to the Program Increment tracker (check Plan DB) - feature_id and program increment's $id belong to the same Program project - feature_id is not linked to any User Story that is already planned in an Iteration. Change-Id: I7778cf66e333a74865702f85ba3f78764819779f

Modified Files

Name
A plugins/program_management/include/Adapter/Program/Backlog/ProgramIncrement/Content/FeatureAdditionProcessor.php +73 −0 Go to diff View file
M plugins/program_management/include/Adapter/Program/Backlog/ProgramIncrement/Content/FeatureRemovalProcessor.php +14 −12 Go to diff View file
M plugins/program_management/include/Adapter/Program/Backlog/TopBacklog/ProcessTopBacklogChange.php +2 −8 Go to diff View file
M plugins/program_management/include/Program/Backlog/Feature/FeatureIdentifier.php +1 −0 Go to diff View file
A plugins/program_management/include/Program/Backlog/Feature/FeatureNotFoundException.php +31 −0 Go to diff View file
A plugins/program_management/include/Program/Backlog/ProgramIncrement/Content/AddFeature.php +34 −0 Go to diff View file
A plugins/program_management/include/Program/Backlog/ProgramIncrement/Content/AddFeatureException.php +35 −0 Go to diff View file
M plugins/program_management/include/Program/Backlog/ProgramIncrement/Content/ContentModifier.php +36 −11 Go to diff View file
A plugins/program_management/include/Program/Backlog/ProgramIncrement/Content/FeatureAddition.php +76 −0 Go to diff View file
A plugins/program_management/include/Program/Backlog/ProgramIncrement/Content/FeaturePlanner.php +89 −0 Go to diff View file
M plugins/program_management/include/Program/Backlog/ProgramIncrement/Content/ModifyContent.php +6 −0 Go to diff View file
A plugins/program_management/include/Program/Backlog/ProgramIncrement/Content/RemoveFeature.php +31 −0 Go to diff View file
A plugins/program_management/include/Program/Backlog/ProgramIncrement/Content/RemoveFeatureException.php +35 −0 Go to diff View file
M plugins/program_management/include/Program/Backlog/TopBacklog/TopBacklogChangeProcessor.php +2 −2 Go to diff View file
M plugins/program_management/include/Program/Backlog/TopBacklog/TopBacklogUpdater.php +2 −2 Go to diff View file
M plugins/program_management/include/REST/v1/ProgramIncrementResource.php +38 −10 Go to diff View file
M plugins/program_management/include/REST/v1/ProjectResource.php +2 −2 Go to diff View file
M plugins/program_management/tests/rest/v1/ProjectResourceTest.php +5 −3 Go to diff View file
A plugins/program_management/tests/unit/Adapter/Program/Backlog/ProgramIncrement/Content/FeatureAdditionProcessorTest.php +132 −0 Go to diff View file
M plugins/program_management/tests/unit/Adapter/Program/Backlog/ProgramIncrement/Content/FeatureRemovalProcessorTest.php +38 −4 Go to diff View file
M plugins/program_management/tests/unit/Program/Backlog/ProgramIncrement/Content/ContentModifierTest.php +103 −25 Go to diff View file
A plugins/program_management/tests/unit/Program/Backlog/ProgramIncrement/Content/FeatureAdditionTest.php +69 −0 Go to diff View file
A plugins/program_management/tests/unit/Stub/VerifyCanBePlannedInProgramIncrementStub.php +41 −0 Go to diff View file