stable

Clone or download

Read-only

References are lost at artifact move

part of story #32280 Complete the "move artifact" feature How to test: have an artifact references other artifacts be sure that an other artifact references it Move the artifact in the same, or in an other project => all references are kept Implementation note: - references who are directly in artifact (changese, fields ...) are create by xml import mechanism => I clean the existing references, so they are not created twice - references who cames from an other artifact needs to be updated when artifact is moved in an other project Change-Id: Ibf3031cb9bfbf4ad4c26bd5da551a1fe8b9f8ec7

Modified Files

Name
M plugins/gitlab/include/Repository/Webhook/PostPush/Branch/PostPushWebhookActionBranchHandler.php +8 −23 Go to diff View file
M plugins/gitlab/include/Repository/Webhook/TagPush/TagPushWebhookDeleteAction.php +4 −20 Go to diff View file
M plugins/gitlab/include/gitlabPlugin.php +4 −2 Go to diff View file
M plugins/gitlab/tests/unit/Repository/Webhook/PostPush/Branch/PostPushWebhookActionBranchHandlerTest.php +1 −1 Go to diff View file
M plugins/gitlab/tests/unit/Repository/Webhook/TagPush/TagPushWebhookDeleteActionTest.php +1 −1 Go to diff View file
M plugins/tracker/bin/remove_multiple_artifacts.php +4 −1 Go to diff View file
M plugins/tracker/include/Tracker/Action/MegaMoverArtifact.php +7 −7 Go to diff View file
M plugins/tracker/include/Tracker/Action/MegaMoverArtifactByDuckTyping.php +1 −1 Go to diff View file
M plugins/tracker/include/Tracker/Action/MoveArtifact.php +1 −1 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/ArtifactsDeletion/ArchiveAndDeleteArtifactTask.php +9 −35 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/ArtifactsDeletion/ArchiveAndDeleteArtifactTaskBuilder.php +5 −3 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/ArtifactsDeletion/ArtifactDeletor.php +12 −38 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/ArtifactsDeletion/ArtifactDependenciesDeletor.php +25 −50 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/ArtifactsDeletion/ArtifactsDeletionManager.php +14 −24 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/ArtifactsDeletion/AsynchronousArtifactsDeletionActionsRunner.php +27 −40 Go to diff View file
A plugins/tracker/include/Tracker/Artifact/ArtifactsDeletion/DeletionContext.php +69 −0 Go to diff View file
M plugins/tracker/include/Tracker/Tracker.class.php +3 −1 Go to diff View file
M plugins/tracker/tests/unit/Stub/MoveArtifactStub.php +1 −1 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Action/MegaMoverArtifactByDuckTypingTest.php +6 −5 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Artifact/ArtifactsDeletion/ArchiveAndDeleteArtifactTaskTest.php +6 −4 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Artifact/ArtifactsDeletion/ArtifactDeletorTest.php +11 −12 Go to diff View file
A plugins/tracker/tests/unit/Tracker/Artifact/ArtifactsDeletion/ArtifactDependenciesDeletorTest.php +91 −0 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Artifact/ArtifactsDeletion/AsynchronousArtifactsDeletionActionsRunnerTest.php +11 −16 Go to diff View file
M src/common/Reference/CrossReferenceManager.php +25 −5 Go to diff View file
M src/common/Reference/CrossReferencesDao.php +19 −0 Go to diff View file