stable

Clone or download

Read-only

Gather Field values at given changeset of source PI

part of story #22675 replicate program increment changes to mirrored program increments How to test: Make sure your redis worker is running - Edit an existing Program Increment artifact and change its title. - you should see a log message in /var/log/tuleap/program_management_syslog: [debug] Title value: <your updated title> The log message only exists for testing purposes, to show that we retrieve field values. It will be removed on next commits. Notes: I know the logic is very very similar between ReplicationData path and ProgramIncrementUpdate path. Given the time constraints on the feature, it seems preferable to introduce this duplication now and remove it when we will work on Iterations. We should introduce a common interface between the two, but that means changing (again) a lot of ReplicationDataAdapter and it means extracting a wrapper event for ArtifactCreated. Eventually, we will have to do this (and it will be a good thing), but I think we can afford to do it later. Change-Id: I74d906a0dffc74982df2ea5f1ab242ced130478d

Modified Files

Name
M plugins/program_management/include/Adapter/Program/Backlog/AsynchronousCreation/TaskBuilder.php +1 −1 Go to diff View file
M plugins/program_management/include/Adapter/Program/Backlog/ProgramIncrement/Source/Changeset/ChangesetRetriever.php +2 −3 Go to diff View file
M plugins/program_management/include/Adapter/Program/Backlog/ProgramIncrement/Source/Changeset/Values/FieldValuesGathererRetriever.php +16 −0 Go to diff View file
M plugins/program_management/include/Domain/Program/Backlog/AsynchronousCreation/ProgramIncrementUpdateProcessor.php +11 −5 Go to diff View file
M plugins/program_management/include/Domain/Program/Backlog/ProgramIncrement/Source/Changeset/Values/RetrieveFieldValuesGatherer.php +7 −0 Go to diff View file
M plugins/program_management/include/Domain/Program/Backlog/ProgramIncrement/Source/Changeset/Values/SourceTimeboxChangesetValues.php +30 −1 Go to diff View file
M plugins/program_management/include/program_managementPlugin.php +8 −2 Go to diff View file
M plugins/program_management/tests/unit/Adapter/Program/Backlog/ProgramIncrement/Source/Changeset/ChangesetRetrieverTest.php +8 −10 Go to diff View file
M plugins/program_management/tests/unit/Adapter/Program/Backlog/ProgramIncrement/Source/Changeset/Values/FieldValuesGathererRetrieverTest.php +39 −10 Go to diff View file
M plugins/program_management/tests/unit/Domain/Program/Backlog/AsynchronousCreation/ProgramIncrementUpdateEventHandlerTest.php +6 −1 Go to diff View file
M plugins/program_management/tests/unit/Domain/Program/Backlog/AsynchronousCreation/ProgramIncrementUpdateProcessorTest.php +17 −15 Go to diff View file
M plugins/program_management/tests/unit/Domain/Program/Backlog/ProgramIncrement/Source/Changeset/Values/SourceTimeboxChangesetValuesTest.php +35 −10 Go to diff View file
M plugins/program_management/tests/unit/Stub/RetrieveFieldValuesGathererStub.php +6 −0 Go to diff View file