stable
Clone or download
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 the given PI $id does not exist, you will get a 404 error - if the given PI $id is not a Program Increment (e.g. a User Story), you will get a 404 error - if the current user does not have permission to prioritize features, you will get a 403 error - if all conditions are satisfied, you will get a 501 error (Not implemented). This is temporary and is meant to ease the review to not produce huge patches. There is no check on the "add" for now, they will be added later. Note: I also moved some classes: - move Planned Program Increment to Program Increment namespace, not Feature Content - move PI Not Found exception to Domain namespace - move Retrieve PI interface to PI namespace, not content Change-Id: Id3612c4ef72c1f6c0d195b1d47208eb12886de3c
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/program_management/include/Adapter/Program/Feature/Content/ContentDao.php | +1 | −1 | Go to diff View file |
M | plugins/program_management/include/Adapter/Program/Feature/Content/FeatureContentRetriever.php | +2 | −1 | Go to diff View file |
M | plugins/program_management/include/Adapter/Program/Feature/Content/ProgramIncrementRetriever.php | +4 | −3 | Go to diff View file |
M | plugins/program_management/include/Adapter/Program/Feature/FeatureInProgramIncrementPlanner.php | +1 | −1 | Go to diff View file |
M | plugins/program_management/include/Adapter/Program/Plan/PrioritizeFeaturesPermissionVerifier.php | +2 | −1 | Go to diff View file |
M | plugins/program_management/include/Adapter/Program/ProgramDao.php | +17 | −1 | Go to diff View file |
M | plugins/program_management/include/Program/Backlog/Feature/Content/ContentStore.php | +2 | −0 | Go to diff View file |
A | plugins/program_management/include/Program/Backlog/NotAllowedToPrioritizeException.php | +37 | −0 | Go to diff View file |
A | plugins/program_management/include/Program/Backlog/ProgramIncrement/Content/ContentChange.php | +42 | −0 | Go to diff View file |
A | plugins/program_management/include/Program/Backlog/ProgramIncrement/Content/ContentModifier.php | +64 | −0 | Go to diff View file |
A | plugins/program_management/include/Program/Backlog/ProgramIncrement/Content/ModifyContent.php | +42 | −0 | Go to diff View file |
R | plugins/program_management/include/Program/Backlog/Feature/Content/PlannedProgramIncrement.php | Go to diff View file | ||
R | plugins/program_management/include/Adapter/Program/Feature/Content/ProgramIncrementNotFoundException.php | Go to diff View file | ||
R | plugins/program_management/include/Program/Backlog/Feature/Content/RetrieveProgramIncrement.php | Go to diff View file | ||
A | plugins/program_management/include/Program/Plan/VerifyPrioritizeFeaturesPermission.php | +28 | −0 | Go to diff View file |
A | plugins/program_management/include/Program/ProgramNotFoundException.php | +27 | −0 | Go to diff View file |
A | plugins/program_management/include/Program/ProgramSearcher.php | +50 | −0 | Go to diff View file |
A | plugins/program_management/include/Program/SearchProgram.php | +28 | −0 | Go to diff View file |
A | plugins/program_management/include/REST/v1/FeatureInvolvedInChangeRepresentation.php | +34 | −0 | Go to diff View file |
A | plugins/program_management/include/REST/v1/ProgramIncrementContentPatchRepresentation.php | +35 | −0 | Go to diff View file |
M | plugins/program_management/include/REST/v1/ProgramIncrementResource.php | +69 | −2 | Go to diff View file |
M | plugins/program_management/tests/rest/v1/ProjectResourceTest.php | +30 | −2 | Go to diff View file |
M | plugins/program_management/tests/unit/Adapter/Program/Feature/Content/ProgramIncrementContentRetrieverTest.php | +2 | −2 | Go to diff View file |
M | plugins/program_management/tests/unit/Adapter/Program/Feature/Content/ProgramIncrementRetrieverTest.php | +2 | −1 | Go to diff View file |
M | plugins/program_management/tests/unit/Adapter/Program/Feature/FeatureInProgramIncrementPlannerTest.php | +1 | −1 | Go to diff View file |
A | plugins/program_management/tests/unit/Program/Backlog/ProgramIncrement/Content/ContentModifierTest.php | +104 | −0 | Go to diff View file |
A | plugins/program_management/tests/unit/Program/ProgramSearcherTest.php | +62 | −0 | Go to diff View file |