stable
Clone or download
part of story #21368 create mirrored iteration How to test: - Make sure your redis worker is running - Run `tuleap config-set feature_flag_program_management_display_iteration 1` to enable iterations. 1. If you have already made tests for this story, you can trigger a redis event for an existing PI with Iterations linked to it: - Enter the redis-cli in your redis container: $ docker exec -it tuleap_redis_1 redis-cli - Push a message to the events queue manually: > LPUSH 'app_user_events' '{"event_name":"tuleap.program_management.program_increment.update","payload":{"program_increment_id":6269,"user_id":110,"changeset_id":13408,"iterations":[{"id":6317,"changeset_id":13403},{"id":6318,"changeset_id":13404}]}}' Change the ids above according to your setup. You can get changeset_id in the Artifact View, there is a data-changeset-id attribute. 2. Otherwise, if you don't have pre-wired artifacts: - Edit a Program Increment artifact and add one or more artifact links with _is_child type to Iteration artifacts. 3. With either method 1. or 2., for each Team, new mirrored iteration artifacts will be created and linked to the source iteration with a "_mirrored_milestone" type. For each new mirrored iteration, there will be a log message like: [debug] Creating link of type _is_child from mirrored PI #6344 to iteration #6348 The log message is temporary and will be removed in later commits. Notes: I also hardened RetrieveTrackerOfArtifact so that it takes an ArtifactIdentifier instead of any int. Change-Id: I0ec47df6830773bccd678326ef8b7b7323c1a3ae
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/program_management/include/Adapter/Program/Backlog/AsynchronousCreation/ChangesetAdder.php | +1 | −1 | Go to diff View file |
M | plugins/program_management/include/Adapter/Program/Backlog/AsynchronousCreation/IterationCreationProcessorBuilder.php | +2 | −0 | Go to diff View file |
M | plugins/program_management/include/Adapter/Program/Backlog/AsynchronousCreation/IterationsCreator.php | +22 | −2 | Go to diff View file |
M | plugins/program_management/include/Adapter/Program/Backlog/ProgramIncrement/Source/Changeset/ChangesetRetriever.php | +1 | −1 | Go to diff View file |
M | plugins/program_management/include/Adapter/Program/Backlog/ProgramIncrement/Source/Changeset/Values/ArtifactLinkTypeProxy.php | +5 | −0 | Go to diff View file |
M | plugins/program_management/include/Adapter/Program/Backlog/ProgramIncrement/Source/Fields/SynchronizedFieldsGatherer.php | +1 | −1 | Go to diff View file |
M | plugins/program_management/include/Adapter/Workspace/TrackerOfArtifactRetriever.php | +4 | −3 | Go to diff View file |
M | plugins/program_management/include/Domain/Program/Backlog/AsynchronousCreation/MirroredTimeboxChangeset.php | +1 | −1 | Go to diff View file |
M | plugins/program_management/include/Domain/Program/Backlog/ProgramIncrement/Source/Fields/NoArtifactLinkFieldException.php | +6 | −4 | Go to diff View file |
A | plugins/program_management/include/Domain/Team/MirroredTimebox/ArtifactLinkChangeset.php | +66 | −0 | Go to diff View file |
M | plugins/program_management/include/Domain/Workspace/ArtifactNotFoundException.php | +2 | −2 | Go to diff View file |
M | plugins/program_management/include/Domain/Workspace/RetrieveTrackerOfArtifact.php | +1 | −1 | Go to diff View file |
M | plugins/program_management/tests/unit/Adapter/Program/Backlog/AsynchronousCreation/ArtifactCreatorAdapterTest.php | +1 | −1 | Go to diff View file |
M | plugins/program_management/tests/unit/Adapter/Program/Backlog/AsynchronousCreation/ChangesetAdderTest.php | +1 | −1 | Go to diff View file |
M | plugins/program_management/tests/unit/Adapter/Program/Backlog/AsynchronousCreation/IterationsCreatorTest.php | +6 | −2 | Go to diff View file |
M | plugins/program_management/tests/unit/Adapter/Program/Backlog/AsynchronousCreation/ProgramIncrementCreationProcessorTest.php | +3 | −3 | Go to diff View file |
M | plugins/program_management/tests/unit/Adapter/Program/Backlog/AsynchronousCreation/ProgramIncrementsCreatorTest.php | +2 | −2 | Go to diff View file |
M | plugins/program_management/tests/unit/Adapter/Program/Backlog/CreationCheck/RequiredFieldCheckerTest.php | +1 | −1 | Go to diff View file |
M | plugins/program_management/tests/unit/Adapter/Program/Backlog/ProgramIncrement/Source/Changeset/Values/ArtifactLinkTypeProxyTest.php | +6 | −0 | Go to diff View file |
M | plugins/program_management/tests/unit/Adapter/Workspace/TrackerOfArtifactRetrieverTest.php | +7 | −3 | Go to diff View file |
M | plugins/program_management/tests/unit/Builder/MirroredTimeboxChangesetBuilder.php | +1 | −2 | Go to diff View file |
M | plugins/program_management/tests/unit/Builder/MirroredTimeboxChangesetValuesBuilder.php | +1 | −1 | Go to diff View file |
M | plugins/program_management/tests/unit/Domain/Program/Backlog/AsynchronousCreation/IterationCreationProcessorTest.php | +7 | −3 | Go to diff View file |
M | plugins/program_management/tests/unit/Domain/Program/Backlog/AsynchronousCreation/MirroredTimeboxChangesetTest.php | +1 | −4 | Go to diff View file |
M | plugins/program_management/tests/unit/Domain/Program/Backlog/AsynchronousCreation/MirroredTimeboxChangesetValuesTest.php | +1 | −1 | Go to diff View file |
M | plugins/program_management/tests/unit/Domain/Program/Backlog/AsynchronousCreation/ProgramIncrementUpdateProcessorTest.php | +4 | −8 | Go to diff View file |
M | plugins/program_management/tests/unit/Domain/Program/Backlog/CreationCheck/TimeboxCreatorCheckerTest.php | +3 | −3 | Go to diff View file |
M | plugins/program_management/tests/unit/Domain/Program/Backlog/ProgramIncrement/Source/Changeset/Values/SynchronizedFieldFromProgramAndTeamTrackersCollectionTest.php | +1 | −1 | Go to diff View file |
M | plugins/program_management/tests/unit/Domain/Program/Backlog/ProgramIncrement/Source/Fields/SynchronizedFieldReferencesTest.php | +1 | −1 | Go to diff View file |
A | plugins/program_management/tests/unit/Domain/Team/MirroredTimebox/ArtifactLinkChangesetTest.php | +94 | −0 | Go to diff View file |
M | plugins/program_management/tests/unit/Stub/GatherSynchronizedFieldsStub.php | +19 | −7 | Go to diff View file |
M | plugins/program_management/tests/unit/Stub/RetrieveArtifactLinkFieldStub.php | +15 | −7 | Go to diff View file |
M | plugins/program_management/tests/unit/Stub/RetrieveTrackerOfArtifactStub.php | +10 | −8 | Go to diff View file |
M | plugins/program_management/tests/unit/Stub/SynchronizedFieldsStubPreparation.php | +31 | −14 | Go to diff View file |