stable

Clone or download

Read-only

Split VerifyUserCanPlanInProgramIncrement interface

part of request #23383 Bad request error when planning a feature No functional change expected in the REST routes retrieving program increments. VerifyUserCanPlanInProgramIncrement is split in smaller interfaces.Its implementation is moved to the Domain since it depends only on Domain interfaces. In later patches, it will also need to verify Team permissions and Mirrored Program Increment permissions to stop the "Bad request" errors. Change-Id: I407c13e5874f2da035babda2879c89d0d2453e40

Modified Files

Name
M plugins/program_management/include/Adapter/Program/Backlog/ProgramIncrement/ProgramIncrementRetriever.php +3 −3 Go to diff View file
A plugins/program_management/include/Adapter/Program/Backlog/ProgramIncrement/UserCanLinkToProgramIncrementVerifier.php +50 −0 Go to diff View file
D plugins/program_management/include/Adapter/Program/Backlog/ProgramIncrement/UserCanPlanInProgramIncrementVerifier.php +0 −77 Go to diff View file
M plugins/program_management/include/Domain/Program/Backlog/ProgramIncrement/Content/ContentModifier.php +3 −3 Go to diff View file
M plugins/program_management/include/Domain/Program/Backlog/ProgramIncrement/ProgramIncrement.php +12 −16 Go to diff View file
A plugins/program_management/include/Domain/Program/Backlog/ProgramIncrement/UserCanPlanInProgramIncrementVerifier.php +66 −0 Go to diff View file
A plugins/program_management/include/Domain/Program/Backlog/ProgramIncrement/VerifyUserCanLinkToProgramIncrement.php +34 −0 Go to diff View file
D plugins/program_management/include/Domain/Workspace/VerifyUserCanPlanInProgramIncrement.php +0 −48 Go to diff View file
M plugins/program_management/include/REST/v1/ProgramIncrementResource.php +4 −4 Go to diff View file
M plugins/program_management/include/REST/v1/ProjectResource.php +11 −8 Go to diff View file
M plugins/program_management/include/program_managementPlugin.php +18 −18 Go to diff View file
M plugins/program_management/tests/unit/Adapter/Program/Backlog/ProgramIncrement/ProgramIncrementRetrieverTest.php +3 −3 Go to diff View file
A plugins/program_management/tests/unit/Adapter/Program/Backlog/ProgramIncrement/UserCanLinkToProgramIncrementVerifierTest.php +80 −0 Go to diff View file
M plugins/program_management/tests/unit/Builder/ProgramIncrementBuilder.php +2 −3 Go to diff View file
A plugins/program_management/tests/unit/Builder/UserCanPlanInProgramIncrementVerifierBuilder.php +40 −0 Go to diff View file
M plugins/program_management/tests/unit/Domain/Program/Backlog/Iteration/IterationTest.php +1 −1 Go to diff View file
M plugins/program_management/tests/unit/Domain/Program/Backlog/Iteration/IterationsRetrieverTest.php +1 −1 Go to diff View file
M plugins/program_management/tests/unit/Domain/Program/Backlog/ProgramIncrement/Content/ContentModifierTest.php +2 −2 Go to diff View file
R plugins/program_management/tests/unit/Adapter/Program/Backlog/ProgramIncrement/UserCanPlanInProgramIncrementVerifierTest.php Go to diff View file
M plugins/program_management/tests/unit/REST/v1/IterationRepresentationTest.php +1 −1 Go to diff View file
R plugins/program_management/tests/unit/Stub/VerifyUserCanPlanInProgramIncrementStub.php Go to diff View file
M plugins/program_management/tests/unit/Stub/VerifyUserCanUpdateTimeboxStub.php +6 −1 Go to diff View file