stable

Clone or download

Read-only

Retrieve Iteration Last changeset

part of story #21368 create mirrored iteration How to test: Run forge upgrade Run `tuleap config-set feature_flag_program_management_display_iteration 1` to enable iterations - When you edit a Program Increment artifact and add one or more artifact links with _is_child type to Iteration artifacts, there will be debug log lines like: [debug] Iteration has last changeset id: 5041 Where 5041 is the last changeset id of the iteration. Debug log line can be found at /var/log/tuleap/program_management_syslog Notes: - Entrypoint is in IterationReplicationScheduler - If an iteration has no changeset, a message is logged and it is skipped. It is not the kind of error we can recover from, but it does not prevent us from handling the other iterations, which is why we don't throw an Exception. Change-Id: I93b6a856561052822eae53fb6a24903215173126

Modified Files

Name
A plugins/program_management/include/Adapter/Program/Backlog/AsynchronousCreation/LastChangesetRetriever.php +53 −0 Go to diff View file
A plugins/program_management/include/Domain/Program/Backlog/AsynchronousCreation/ChangesetIdentifier.php +47 −0 Go to diff View file
M plugins/program_management/include/Domain/Program/Backlog/AsynchronousCreation/IterationReplicationScheduler.php +24 −2 Go to diff View file
A plugins/program_management/include/Domain/Program/Backlog/AsynchronousCreation/NewPendingIterationCreation.php +80 −0 Go to diff View file
A plugins/program_management/include/Domain/Program/Backlog/AsynchronousCreation/RetrieveLastChangeset.php +30 −0 Go to diff View file
M plugins/program_management/include/Domain/Program/Backlog/Iteration/JustLinkedIterationCollection.php +5 −3 Go to diff View file
M plugins/program_management/include/program_managementPlugin.php +3 −1 Go to diff View file
A plugins/program_management/tests/unit/Adapter/Program/Backlog/AsynchronousCreation/LastChangesetRetrieverTest.php +97 −0 Go to diff View file
M plugins/program_management/tests/unit/Domain/Program/Backlog/ArtifactUpdatedHandlerTest.php +4 −2 Go to diff View file
A plugins/program_management/tests/unit/Domain/Program/Backlog/AsynchronousCreation/ChangesetIdentifierTest.php +73 −0 Go to diff View file
M plugins/program_management/tests/unit/Domain/Program/Backlog/AsynchronousCreation/IterationReplicationSchedulerTest.php +9 −8 Go to diff View file
A plugins/program_management/tests/unit/Domain/Program/Backlog/AsynchronousCreation/NewPendingIterationCreationTest.php +108 −0 Go to diff View file
M plugins/program_management/tests/unit/Domain/Program/Backlog/Iteration/JustLinkedIterationCollectionTest.php +3 −6 Go to diff View file
A plugins/program_management/tests/unit/Stub/RetrieveLastChangesetStub.php +62 −0 Go to diff View file
M plugins/program_management/tests/unit/Stub/VerifyIsVisibleArtifactStub.php +13 −3 Go to diff View file