stable

Clone or download

Read-only

feat: Migrate user bound list fields (sb + msb)

part story #32280 Complete the "move artifact" feature Move user bound fields values when they are available in the destination field. How to test: - Have a selectbox bound to users (like the assigned_to field for instance) - Create an artifact, select a user you know he can be selected in the destination tracker, and another one who cannot be selected in the destination tracker. - Move the artifact --> The dry run says that the field will be partially migrated - Accept the move --> The artifact has been moved --> Only the first user is selected in the field - Move the artifact back to the original tracker --> The dry run step says it will be totally migrated - Accept the move --> It works - Now change the destination field to a single user select box --> It cannot be migrated Change-Id: I386e103c3c09e67eabde23269bb104429a52bb8c

Modified Files

Name
M plugins/tracker/include/REST/v1/ArtifactsResource.class.php +20 −12 Go to diff View file
R plugins/tracker/include/Tracker/Action/MovableStaticListFieldsChecker.php Go to diff View file
A plugins/tracker/include/Tracker/Action/AreUserFieldsCompatibleVerifier.php +49 −0 Go to diff View file
R plugins/tracker/include/Tracker/Action/FullyMoveStaticFieldChecker.php Go to diff View file
A plugins/tracker/include/Tracker/Action/CanUserFieldValuesBeFullyMovedVerifier.php +61 −0 Go to diff View file
M plugins/tracker/include/Tracker/Action/DryRunDuckTypingFieldCollector.php +96 −27 Go to diff View file
R plugins/tracker/include/Tracker/Action/FieldTypeCompatibilityChecker.php Go to diff View file
A plugins/tracker/include/Tracker/Action/UserListFieldVerifier.php +39 −0 Go to diff View file
R plugins/tracker/include/Tracker/Action/CheckFieldTypeCompatibility.php Go to diff View file
A plugins/tracker/include/Tracker/Action/VerifyIsUserListField.php +26 −0 Go to diff View file
R plugins/tracker/include/Tracker/Action/CheckStaticFieldCanBeFullyMoved.php Go to diff View file
R plugins/tracker/include/Tracker/Action/CheckStaticListFieldsValueIsMovable.php Go to diff View file
A plugins/tracker/include/Tracker/Action/VerifyUserFieldValuesCanBeFullyMoved.php +32 −0 Go to diff View file
A plugins/tracker/include/Tracker/Action/VerifyUserFieldsAreCompatible.php +32 −0 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Field/ListFields/FieldValueMatcher.php +1 −1 Go to diff View file
A plugins/tracker/include/Tracker/FormElement/Field/ListFields/RetrieveMatchingUserValue.php +32 −0 Go to diff View file
A plugins/tracker/tests/unit/Builders/TrackerFormElementListUserBindBuilder.php +92 −0 Go to diff View file
A plugins/tracker/tests/unit/Stub/RetrieveMatchingUserValueStub.php +49 −0 Go to diff View file
R plugins/tracker/tests/unit/Stub/CheckFieldTypeCompatibilityStub.php Go to diff View file
A plugins/tracker/tests/unit/Stub/VerifyIsUserListFieldStub.php +47 −0 Go to diff View file
R plugins/tracker/tests/unit/Stub/CheckStaticFieldCanBeFullyMovedStub.php Go to diff View file
R plugins/tracker/tests/unit/Stub/CheckStaticListFieldsValueIsMovableStub.php Go to diff View file
A plugins/tracker/tests/unit/Stub/VerifyUserFieldValuesCanBeFullyMovedStub.php +48 −0 Go to diff View file
A plugins/tracker/tests/unit/Stub/VerifyUserFieldsAreCompatibleStub.php +48 −0 Go to diff View file
R plugins/tracker/tests/unit/Tracker/Action/MovableStaticListFieldsCheckerTest.php Go to diff View file
A plugins/tracker/tests/unit/Tracker/Action/AreUserFieldsCompatibleVerifierTest.php +129 −0 Go to diff View file
R plugins/tracker/tests/unit/Tracker/Action/FullyMoveStaticFieldCheckerTest.php Go to diff View file
A plugins/tracker/tests/unit/Tracker/Action/CanUserFieldValuesBeFullyMovedVerifierTest.php +114 −0 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Action/DryRunDuckTypingFieldCollectorTest.php +155 −45 Go to diff View file
R plugins/tracker/tests/unit/Tracker/Action/FieldTypeCompatibilityCheckerTest.php Go to diff View file
M plugins/tracker/tests/unit/Tracker/Action/StaticListFieldVerifierTest.php +15 −17 Go to diff View file
A plugins/tracker/tests/unit/Tracker/Action/UserListFieldVerifierTest.php +56 −0 Go to diff View file
M plugins/tracker/tests/unit/Tracker/XML/Updater/MoveChangesetXMLDuckTypingUpdaterTest.php +23 −4 Go to diff View file
M plugins/tracker/tests/unit/Tracker/XML/Updater/_fixtures/bugs_artifact.xml +5 −2 Go to diff View file