stable

Clone or download

Read-only

fix: do not duplicate iterations when synchronizing a new new

This commit also add more logs to parts that were required to pin point the issue and centralize the program management log object creation. How to test =========== * Given a Program `P` with one team `T1` * Create a Program Increment `P1` in `P` * Create one Iteration `IT1` in `P` (PI & iteration are mirrored in `T1`) * Then create a new Team `T2` * And attach `T2` to `P1` * And synchronize `T2` Result: * `T2` has: * one mirror of `P1` (**expected**) * one mirror of `IT1` (**expected**) * `T1` has: * one mirror of `P1` (**expected**) * **two** mirrors of `IT1` (**error**, only one is expected). Closes request #31161 Synchronizing a new team duplicates iterations in existing teams Change-Id: I148bc315127355af3c4c4ec9e990ab42a23d6d6f

Modified Files

Name
M plugins/program_management/include/Adapter/Program/Backlog/AsynchronousCreation/IterationCreationProcessorBuilder.php +2 −1 Go to diff View file
M plugins/program_management/include/Adapter/Program/Backlog/AsynchronousCreation/IterationUpdateProcessorBuilder.php +1 −1 Go to diff View file
M plugins/program_management/include/Adapter/Program/Backlog/AsynchronousCreation/IterationsCreator.php +3 −0 Go to diff View file
M plugins/program_management/include/Adapter/Program/Backlog/AsynchronousCreation/ProgramIncrementCreationProcessorBuilder.php +2 −1 Go to diff View file
M plugins/program_management/include/Adapter/Program/Backlog/AsynchronousCreation/ProgramIncrementUpdateProcessorBuilder.php +1 −1 Go to diff View file
M plugins/program_management/include/Domain/Program/Backlog/ArtifactUpdatedHandler.php +3 −0 Go to diff View file
M plugins/program_management/include/Domain/Program/Backlog/AsynchronousCreation/IterationCreationProcessor.php +41 −7 Go to diff View file
M plugins/program_management/include/Domain/Program/Backlog/AsynchronousCreation/ProcessIterationCreation.php +4 −0 Go to diff View file
M plugins/program_management/include/Domain/Program/Backlog/Feature/ProgramIncrementsPlanner.php +4 −1 Go to diff View file
M plugins/program_management/include/Domain/Program/Backlog/TeamSynchronization/MissingProgramIncrementCreator.php +1 −1 Go to diff View file
M plugins/program_management/include/Domain/Team/TeamIdentifierCollection.php +9 −1 Go to diff View file
A plugins/program_management/include/ProgramManagementLogger.php +35 −0 Go to diff View file
M plugins/program_management/include/REST/v1/ProgramIncrementResource.php +1 −2 Go to diff View file
M plugins/program_management/include/REST/v1/ProjectResource.php +1 −2 Go to diff View file
M plugins/program_management/include/program_managementPlugin.php +5 −8 Go to diff View file
M plugins/program_management/tests/unit/Adapter/Program/Backlog/AsynchronousCreation/IterationsCreatorTest.php +2 −0 Go to diff View file
M plugins/program_management/tests/unit/Adapter/Program/Backlog/TeamSynchronization/MissingProgramIncrementCreatorTest.php +1 −1 Go to diff View file
M plugins/program_management/tests/unit/Domain/Program/Backlog/ArtifactUpdatedHandlerTest.php +1 −0 Go to diff View file
M plugins/program_management/tests/unit/Domain/Program/Backlog/AsynchronousCreation/IterationCreationProcessorTest.php +88 −33 Go to diff View file
M plugins/program_management/tests/unit/Domain/Program/Backlog/Feature/ProgramIncrementsPlannerTest.php +3 −0 Go to diff View file
M plugins/program_management/tests/unit/Domain/Team/TeamIdentifierCollectionTest.php +3 −9 Go to diff View file
M plugins/program_management/tests/unit/Stub/ProcessIterationCreationStub.php +5 −0 Go to diff View file