stable

Clone or download

Read-only

refactor: Tracker_ArtifactFactory dependency in ArtifactCreator

Replace `Tracker_ArtifactFactory` dependency by `TrackerArtifactCreator` in `\Tuleap\Tracker\REST\Artifact\ArtifactCreator`. No functional changes (artifact modal, creation of test campaign, …). This decreases the number of usage of `\Tracker_ArtifactFactory::createArtifact` so that we can remove it in future contribution. Part of request #36805: Kanban item not found when creating a card in Kanban Change-Id: I2c1cc0c67b29cac76214b0b31287ce0f30193fe8

Modified Files

Name
M plugins/kanban/include/Kanban/REST/v1/KanbanItemsResource.php +20 −1 Go to diff View file
M plugins/testmanagement/include/TestManagement/REST/v1/CampaignsResource.class.php +19 −1 Go to diff View file
M plugins/testmanagement/include/TestManagement/REST/v1/ExecutionsResource.class.php +19 −1 Go to diff View file
M plugins/tracker/include/REST/Artifact/ArtifactCreator.php +20 −3 Go to diff View file
M plugins/tracker/include/REST/v1/ArtifactsResource.class.php +20 −1 Go to diff View file
M plugins/tracker/tests/unit/REST/Artifact/ArtifactCreatorTest.php +9 −8 Go to diff View file