stable

Clone or download

Read-only

feat: Clear links types when needed + log into changeset

part of story #32280 Complete the "move artifact" feature How to test: - have an artifact with some artifact links (custom and system ones) Move it into the same project => system links have been cleared, it's loggued into changeset => custom types are kept Move it in a project who have disable all custom types => custom types are cleared, as they are not allowed in destination project, it's loggued in changeset Change-Id: I4ef9cb6d61e15cf2ebac4ff968057d61b74bf612

Modified Files

Name
M plugins/tracker/include/REST/v1/ArtifactsResource.class.php +27 −3 Go to diff View file
M plugins/tracker/include/REST/v1/Move/RestArtifactMover.php +5 −2 Go to diff View file
A plugins/tracker/include/Tracker/Action/BuildArtifactLinksMappingForDuckTypedMove.php +35 −0 Go to diff View file
A plugins/tracker/include/Tracker/Action/DuckTypedMoveArtifactLinksMappingBuilder.php +64 −0 Go to diff View file
M plugins/tracker/include/Tracker/Action/FieldCanBeEasilyMigratedVerifier.php +1 −0 Go to diff View file
A plugins/tracker/include/Tracker/Action/IsArtifactLinkFieldVerifier.php +31 −0 Go to diff View file
M plugins/tracker/include/Tracker/Action/MegaMoverArtifact.php +9 −1 Go to diff View file
M plugins/tracker/include/Tracker/Action/MegaMoverArtifactByDuckTyping.php +21 −6 Go to diff View file
M plugins/tracker/include/Tracker/Action/MoveArtifactByDuckTyping.php +9 −1 Go to diff View file
A plugins/tracker/include/Tracker/Action/VerifyIsArtifactLinkField.php +26 −0 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/XMLImport.class.php +3 −2 Go to diff View file
A plugins/tracker/include/Tracker/FormElement/Field/ArtifactLink/RetrieveAnArtifactLinkField.php +30 −0 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElementFactory.php +3 −7 Go to diff View file
A plugins/tracker/include/Tracker/XML/Updater/FieldChangeArtifactLinksUpdater.php +123 −0 Go to diff View file
M plugins/tracker/include/Tracker/XML/Updater/MoveChangesetXMLDuckTypingUpdater.php +13 −0 Go to diff View file
A plugins/tracker/include/Tracker/XML/Updater/UpdateArtifactLinkXML.php +32 −0 Go to diff View file
M plugins/tracker/site-content/fr_FR/LC_MESSAGES/tuleap-tracker.po +5 −0 Go to diff View file
M plugins/tracker/site-content/pt_BR/LC_MESSAGES/tuleap-tracker.po +4 −0 Go to diff View file
M plugins/tracker/tests/rest/ArtifactsActions/ArtifactsActionsTest.php +2 −3 Go to diff View file
A plugins/tracker/tests/unit/Builders/ArtifactImportedMappingBuilder.php +42 −0 Go to diff View file
A plugins/tracker/tests/unit/Builders/TypePresenterBuilder.php +71 −0 Go to diff View file
M plugins/tracker/tests/unit/REST/FormElementRepresentationsBuilderTest.php +4 −1 Go to diff View file
A plugins/tracker/tests/unit/Stub/AllTypesRetrieverStub.php +46 −0 Go to diff View file
M plugins/tracker/tests/unit/Stub/MoveArtifactByDuckTypingStub.php +9 −2 Go to diff View file
M plugins/tracker/tests/unit/Stub/RetrieveAllUsableTypesInProjectStub.php +13 −4 Go to diff View file
A plugins/tracker/tests/unit/Stub/RetrieveAnArtifactLinkFieldStub.php +49 −0 Go to diff View file
M plugins/tracker/tests/unit/Stub/RetrieveForwardLinksStub.php +5 −0 Go to diff View file
A plugins/tracker/tests/unit/Stub/UpdateArtifactLinkXMLStub.php +51 −0 Go to diff View file
A plugins/tracker/tests/unit/Stub/VerifyIsArtifactLinkFieldStub.php +50 −0 Go to diff View file
A plugins/tracker/tests/unit/Tracker/Action/BuildArtifactLinksMappingForDuckTypedMoveStub.php +53 −0 Go to diff View file
A plugins/tracker/tests/unit/Tracker/Action/DuckTypedMoveArtifactLinksMappingBuilderTest.php +94 −0 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Action/MegaMoverArtifactByDuckTypingTest.php +13 −10 Go to diff View file
M plugins/tracker/tests/unit/Tracker/REST/v1/Move/RestArtifactMoverTest.php +10 −1 Go to diff View file
A plugins/tracker/tests/unit/Tracker/XML/Updater/FieldChangeArtifactLinksUpdaterTest.php +136 −0 Go to diff View file
M plugins/tracker/tests/unit/Tracker/XML/Updater/MoveChangesetXMLDuckTypingUpdaterTest.php +11 −1 Go to diff View file
M plugins/tracker/tests/unit/Tracker/XML/Updater/_fixtures/bugs_artifact.xml +6 −2 Go to diff View file