stable

Clone or download

Read-only

Use TeamIdentifier in Iteration creation

part of request #23383 Bad request error when planning a feature No functional change expected in creation of Iteration mirrors. To test, create two Iteration artifacts and link them to a Program Increment with '_is_child'. Mirror iterations should be created in all the Teams, unless your user cannot see all teams. Notes: ProjectReference was being used most of the time. It was not needed (we only need project id) and was being imprecise, since it can hold any project. TeamIdentifier is stricter. There are still usages of TeamProjectCollection that should be replaced by TeamIdentifierCollection. They will come on later commits. Change-Id: Id552976b4d0ffad10892c82735d4bd3bf1d531cf

Modified Files

Name
M plugins/program_management/include/Adapter/Program/Backlog/AsynchronousCreation/IterationCreationProcessorBuilder.php +10 −12 Go to diff View file
M plugins/program_management/include/Adapter/Program/Backlog/AsynchronousCreation/IterationsCreator.php +9 −6 Go to diff View file
M plugins/program_management/include/Adapter/Team/MirroredTimeboxes/MirroredTimeboxesDao.php +2 −2 Go to diff View file
A plugins/program_management/include/Adapter/Team/VisibleTeamSearcher.php +62 −0 Go to diff View file
M plugins/program_management/include/Domain/Program/Backlog/AsynchronousCreation/CreateIterations.php +4 −2 Go to diff View file
M plugins/program_management/include/Domain/Program/Backlog/AsynchronousCreation/IterationCreationProcessor.php +14 −14 Go to diff View file
M plugins/program_management/include/Domain/Program/Backlog/AsynchronousCreation/MirroredProgramIncrementNotFoundException.php +2 −2 Go to diff View file
M plugins/program_management/include/Domain/Team/MirroredTimebox/MirroredIterationTrackerIdentifier.php +5 −2 Go to diff View file
M plugins/program_management/include/Domain/Team/MirroredTimebox/MirroredProgramIncrementIdentifier.php +2 −2 Go to diff View file
M plugins/program_management/include/Domain/Team/MirroredTimebox/RetrieveMirroredProgramIncrementFromTeam.php +2 −2 Go to diff View file
M plugins/program_management/include/Domain/Team/MirroredTimebox/TeamHasNoMirroredIterationTrackerException.php +2 −2 Go to diff View file
A plugins/program_management/include/Domain/Team/ProgramHasNoTeamException.php +33 −0 Go to diff View file
A plugins/program_management/include/Domain/Team/SearchVisibleTeamsOfProgram.php +38 −0 Go to diff View file
A plugins/program_management/include/Domain/Team/TeamIdentifier.php +57 −0 Go to diff View file
A plugins/program_management/include/Domain/Team/TeamIdentifierCollection.php +60 −0 Go to diff View file
A plugins/program_management/include/Domain/Team/TeamIsNotVisibleException.php +36 −0 Go to diff View file
M plugins/program_management/tests/unit/Adapter/Admin/Configuration/ConfigurationErrorPresenterBuilderTest.php +1 −1 Go to diff View file
M plugins/program_management/tests/unit/Adapter/Events/CollectLinkedProjectsProxyTest.php +2 −2 Go to diff View file
M plugins/program_management/tests/unit/Adapter/Program/Backlog/AsynchronousCreation/IterationsCreatorTest.php +12 −8 Go to diff View file
M plugins/program_management/tests/unit/Adapter/Program/Backlog/AsynchronousCreation/ProgramIncrementCreationProcessorTest.php +1 −1 Go to diff View file
A plugins/program_management/tests/unit/Adapter/Team/VisibleTeamSearcherTest.php +105 −0 Go to diff View file
M plugins/program_management/tests/unit/Adapter/Workspace/TeamsSearcherTest.php +1 −1 Go to diff View file
M plugins/program_management/tests/unit/Builder/MirroredProgramIncrementIdentifierBuilder.php +2 −7 Go to diff View file
A plugins/program_management/tests/unit/Builder/TeamIdentifierBuilder.php +40 −0 Go to diff View file
A plugins/program_management/tests/unit/Builder/TeamIdentifierCollectionBuilder.php +42 −0 Go to diff View file
M plugins/program_management/tests/unit/Builder/TeamProjectsCollectionBuilder.php +8 −4 Go to diff View file
M plugins/program_management/tests/unit/DisplayAdminProgramManagementControllerTest.php +17 −16 Go to diff View file
M plugins/program_management/tests/unit/Domain/Program/Admin/PotentialTeam/PotentialTeamsCollectionTest.php +2 −3 Go to diff View file
M plugins/program_management/tests/unit/Domain/Program/Backlog/AsynchronousCreation/IterationCreationProcessorTest.php +32 −7 Go to diff View file
M plugins/program_management/tests/unit/Domain/Program/Backlog/CreationCheck/CanSubmitNewArtifactHandlerTest.php +1 −1 Go to diff View file
M plugins/program_management/tests/unit/Domain/Program/Backlog/CreationCheck/ConfigurationErrorsGathererTest.php +1 −1 Go to diff View file
M plugins/program_management/tests/unit/Domain/Program/Backlog/CreationCheck/TrackerErrorPresenterTest.php +1 −1 Go to diff View file
M plugins/program_management/tests/unit/Domain/Program/Backlog/ProgramIncrement/Team/TeamProjectsCollectionTest.php +2 −2 Go to diff View file
M plugins/program_management/tests/unit/Domain/Team/MirroredTimebox/MirroredIterationTrackerIdentifierTest.php +16 −23 Go to diff View file
M plugins/program_management/tests/unit/Domain/Team/MirroredTimebox/MirroredProgramIncrementIdentifierTest.php +15 −25 Go to diff View file
A plugins/program_management/tests/unit/Domain/Team/TeamIdentifierCollectionTest.php +60 −0 Go to diff View file
A plugins/program_management/tests/unit/Domain/Team/TeamIdentifierTest.php +53 −0 Go to diff View file
M plugins/program_management/tests/unit/Domain/Workspace/CollectLinkedProjectsHandlerTest.php +1 −1 Go to diff View file
M plugins/program_management/tests/unit/Stub/RetrieveMirroredProgramIncrementFromTeamStub.php +2 −2 Go to diff View file
M plugins/program_management/tests/unit/Stub/RetrieveProjectReferenceStub.php +5 −2 Go to diff View file
M plugins/program_management/tests/unit/Stub/SearchTeamsOfProgramStub.php +6 −9 Go to diff View file
A plugins/program_management/tests/unit/Stub/SearchVisibleTeamsOfProgramStub.php +68 −0 Go to diff View file