stable

Clone or download

Read-only

Move artifact deletion responsability outside of the Tracker_Artifact class

This change does not change anything at the functionnal level, it is purely a technical change. All actions that must happen when an artifact is deleted are now grouped together. This is part of story #11196: delete artifacts with REST API Change-Id: I4cc00679ea227c8ab67741ccbaa4db9a930ec612

Modified Files

Name
M plugins/tracker/bin/remove_multiple_artifacts.php +6 −2 Go to diff View file
M plugins/tracker/include/REST/v1/ArtifactsResource.class.php +3 −1 Go to diff View file
A plugins/tracker/include/Tracker/Artifact/ArtifactsDeletion/ArtifactDeletor.php +133 −0 Go to diff View file
A plugins/tracker/include/Tracker/Artifact/ArtifactsDeletion/ArtifactDeletorBuilder.php +104 −0 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/ArtifactsDeletion/ArtifactsDeletionManager.php +10 −4 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Tracker_Artifact.class.php +0 −93 Go to diff View file
M plugins/tracker/include/Tracker/ArtifactWithTrackerStructureExporter.php +2 −27 Go to diff View file
M plugins/tracker/include/Tracker/Tracker.class.php +3 −1 Go to diff View file
M plugins/tracker/include/autoload.php +4 −2 Go to diff View file
M plugins/tracker/include/trackerPlugin.class.php +2 −1 Go to diff View file
A plugins/tracker/phpunit/Tracker/Artifact/ArtifactsDeletion/ArtifactDeletorTests.php +104 −0 Go to diff View file
M plugins/tracker/tests/Tracker_ArtifactTest.php +0 −81 Go to diff View file