stable

Clone or download

Read-only

refactor: Replace fields_data by InitialChangesetValuesContainer

This is a preparatory step in order to be able to move transaction from ArtifactCreator to TrackerArtifactCreator. To achieve that we need to move `ArtifactCreator::addReverseLinks` which depends on InitialChangesetValuesContainer, so we need to inject this dependency first in parameters. Only the various calls to `TrackerArtifactCreator::create` are updated. Those calls were not using artifact links, so `Option::nothing` is given for `InitialChangesetValuesContainer::artifact_links`. No functional changes. Part of request #36805: Kanban item not found when creating a card in Kanban Change-Id: I0de0e969e52e4c11dd212b7a1a4b25f3c24b0c94

Modified Files

Name
M plugins/program_management/include/Adapter/Program/Backlog/AsynchronousCreation/ArtifactCreatorAdapter.php +4 −1 Go to diff View file
M plugins/program_management/tests/unit/Adapter/Program/Backlog/AsynchronousCreation/ArtifactCreatorAdapterTest.php +35 −27 Go to diff View file
M plugins/tracker/include/REST/Artifact/ArtifactCreator.php +3 −2 Go to diff View file
M plugins/tracker/include/Tracker/Action/CreateArtifact.class.php +4 −1 Go to diff View file
M plugins/tracker/include/Tracker/Action/CreateArtifactFromModal.class.php +4 −1 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Creation/TrackerArtifactCreator.class.php +4 −1 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/MailGateway/MailGateway.class.php +4 −1 Go to diff View file
M plugins/tracker/include/Tracker/Tracker.class.php +4 −1 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Artifact/TrackerArtifactCreatorTest.php +10 −7 Go to diff View file