stable

Clone or download

Read-only

feat: Handle single value static list fields

part story #32280 Complete the "move artifact" feature Lists fields based on Static values are moved in new mode Activate the feature flag with: tuleap config-set feature_flag_enable_complete_move_artifact 1 Change-Id: I878bde33d85fe948a1ccce392a93e44639f7b5ed

Modified Files

Name
M plugins/tracker/include/REST/v1/ArtifactsResource.class.php +28 −21 Go to diff View file
M plugins/tracker/include/REST/v1/Move/DryRunMover.php +1 −1 Go to diff View file
M plugins/tracker/include/REST/v1/Move/RestArtifactMover.php +1 −2 Go to diff View file
A plugins/tracker/include/Tracker/Action/CheckIsSingleStaticListField.php +26 −0 Go to diff View file
A plugins/tracker/include/Tracker/Action/CheckStaticListFieldsValueIsMovable.php +32 −0 Go to diff View file
M plugins/tracker/include/Tracker/Action/CollectDryRunTypingField.php +3 −1 Go to diff View file
M plugins/tracker/include/Tracker/Action/DryRunDuckTypingFieldCollector.php +23 −7 Go to diff View file
M plugins/tracker/include/Tracker/Action/DuckTypedMoveFieldCollection.php +4 −3 Go to diff View file
M plugins/tracker/include/Tracker/Action/FieldTypeCompatibilityChecker.php +29 −5 Go to diff View file
M plugins/tracker/include/Tracker/Action/MegaMoverArtifact.php +2 −2 Go to diff View file
M plugins/tracker/include/Tracker/Action/MegaMoverArtifactByDuckTyping.php +2 −3 Go to diff View file
A plugins/tracker/include/Tracker/Action/MovableStaticListFieldsChecker.php +55 −0 Go to diff View file
A plugins/tracker/include/Tracker/Action/SingleStaticListFieldChecker.php +43 −0 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Field/ListFields/FieldValueMatcher.php +5 −11 Go to diff View file
A plugins/tracker/include/Tracker/FormElement/Field/ListFields/RetrieveMatchingBindValueByDuckTyping.php +29 −0 Go to diff View file
A plugins/tracker/include/Tracker/FormElement/Field/ListFields/RetrieveMatchingValueByDuckTyping.php +32 −0 Go to diff View file
A plugins/tracker/include/Tracker/XML/Updater/BindValueForDuckTypingUpdater.php +54 −0 Go to diff View file
A plugins/tracker/include/Tracker/XML/Updater/BindValueForSemanticUpdater.php +63 −0 Go to diff View file
A plugins/tracker/include/Tracker/XML/Updater/MoveChangesetXMLDuckTypingUpdater.php +137 −0 Go to diff View file
A plugins/tracker/include/Tracker/XML/Updater/MoveChangesetXMLSemanticUpdater.php +318 −0 Go to diff View file
M plugins/tracker/include/Tracker/XML/Updater/MoveChangesetXMLUpdater.php +23 −474 Go to diff View file
A plugins/tracker/include/Tracker/XML/Updater/UpdateBindValueByDuckTyping.php +33 −0 Go to diff View file
A plugins/tracker/include/Tracker/XML/Updater/UpdateBindValueForSemantic.php +36 −0 Go to diff View file
A plugins/tracker/include/Tracker/XML/Updater/UpdateMoveChangesetXMLDuckTyping.php +39 −0 Go to diff View file
A plugins/tracker/tests/unit/Builders/TrackerFormElementDateFieldBuilder.php +63 −0 Go to diff View file
A plugins/tracker/tests/unit/Builders/TrackerFormElementFloatFieldBuilder.php +63 −0 Go to diff View file
A plugins/tracker/tests/unit/Builders/TrackerFormElementListFieldBuilder.php +82 −0 Go to diff View file
A plugins/tracker/tests/unit/Builders/TrackerFormElementListStaticBindBuilder.php +90 −0 Go to diff View file
A plugins/tracker/tests/unit/Builders/TrackerFormElementTextFieldBuilder.php +63 −0 Go to diff View file
A plugins/tracker/tests/unit/Stub/CheckIsSingleStaticListFieldStub.php +48 −0 Go to diff View file
A plugins/tracker/tests/unit/Stub/CheckStaticListFieldsValueIsMovableStub.php +48 −0 Go to diff View file
M plugins/tracker/tests/unit/Stub/CollectDryRunTypingFieldStub.php +3 −2 Go to diff View file
M plugins/tracker/tests/unit/Stub/RetrieveFieldTypeStub.php +11 −0 Go to diff View file
A plugins/tracker/tests/unit/Stub/RetrieveMatchingBindValueByDuckTypingStub.php +49 −0 Go to diff View file
A plugins/tracker/tests/unit/Stub/RetrieveMatchingValueByDuckTypingStub.php +51 −0 Go to diff View file
A plugins/tracker/tests/unit/Stub/UpdateBindValueForSemanticStub.php +55 −0 Go to diff View file
A plugins/tracker/tests/unit/Stub/UpdateMoveChangesetXMLDuckTypingStub.php +60 −0 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Action/DryRunDuckTypingFieldCollectorTest.php +90 −5 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Action/FieldTypeCompatibilityCheckerTest.php +52 −2 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Action/MegaMoverArtifactByDuckTypingTest.php +7 −6 Go to diff View file
A plugins/tracker/tests/unit/Tracker/Action/MovableStaticListFieldsCheckerTest.php +110 −0 Go to diff View file
A plugins/tracker/tests/unit/Tracker/Action/SingleStaticListFieldCheckerTest.php +74 −0 Go to diff View file
M plugins/tracker/tests/unit/Tracker/FormElement/Field/ListFields/FieldValueMatcherTest.php +3 −3 Go to diff View file
R plugins/tracker/tests/unit/Tracker/REST/v1/Move/DryRunMoveTest.php Go to diff View file
R plugins/tracker/tests/unit/Tracker/REST/v1/Move/ArtifactMoveTest.php Go to diff View file
A plugins/tracker/tests/unit/Tracker/XML/Updater/BindValueForDuckTypingUpdaterTest.php +68 −0 Go to diff View file
A plugins/tracker/tests/unit/Tracker/XML/Updater/BindValueForSemanticUpdaterTest.php +96 −0 Go to diff View file
A plugins/tracker/tests/unit/Tracker/XML/Updater/MoveChangesetXMLDuckTypingUpdaterTest.php +178 −0 Go to diff View file
A plugins/tracker/tests/unit/Tracker/XML/Updater/MoveChangesetXMLSemanticUpdaterTest.php +887 −0 Go to diff View file
M plugins/tracker/tests/unit/Tracker/XML/Updater/MoveChangesetXMLUpdaterTest.php +162 −845 Go to diff View file
A plugins/tracker/tests/unit/Tracker/XML/Updater/_fixtures/bugs_artifact.xml +63 −0 Go to diff View file