stable

Clone or download

Read-only

feat: Handle multi selectbox fields

part story #32280 Complete the "move artifact" feature In this contribution, multiple list fields values are taken into account. How to test: - When a selected value does not exist in the destination tracker --> The dry run says that this field will be partially migrated --> The value is lost when the move is performed --> The other values appear in the artifact once moved - When the source and destination fields do not have the same multiplicity (e.g multi selectbox VS simple selectbox) --> The field cannot be migrated. Change-Id: I9bd110c63be3fc94e48cc823557d5ab749fe3fd7

Modified Files

Name
M plugins/tracker/include/REST/v1/ArtifactsResource.class.php +7 −3 Go to diff View file
M plugins/tracker/include/Tracker/Action/DryRunDuckTypingFieldCollector.php +4 −3 Go to diff View file
M plugins/tracker/include/Tracker/Action/FieldTypeCompatibilityChecker.php +3 −3 Go to diff View file
M plugins/tracker/include/Tracker/Action/FullyMoveStaticFieldChecker.php +12 −6 Go to diff View file
M plugins/tracker/include/Tracker/Action/MovableStaticListFieldsChecker.php +7 −0 Go to diff View file
R plugins/tracker/include/Tracker/Action/SingleStaticListFieldChecker.php Go to diff View file
R plugins/tracker/include/Tracker/Action/CheckIsSingleStaticListField.php Go to diff View file
M plugins/tracker/include/Tracker/XML/Updater/BindValueForDuckTypingUpdater.php +36 −13 Go to diff View file
M plugins/tracker/include/Tracker/XML/Updater/MoveChangesetXMLDuckTypingUpdater.php +6 −1 Go to diff View file
M plugins/tracker/include/Tracker/XML/Updater/MoveChangesetXMLUpdater.php +5 −0 Go to diff View file
M plugins/tracker/include/Tracker/XML/Updater/UpdateBindValueByDuckTyping.php +2 −2 Go to diff View file
M plugins/tracker/tests/unit/Builders/TrackerFormElementListFieldBuilder.php +22 −6 Go to diff View file
M plugins/tracker/tests/unit/Builders/TrackerFormElementListStaticBindBuilder.php +10 −3 Go to diff View file
M plugins/tracker/tests/unit/Stub/RetrieveMatchingValueByDuckTypingStub.php +9 −6 Go to diff View file
R plugins/tracker/tests/unit/Stub/CheckIsSingleStaticListFieldStub.php Go to diff View file
M plugins/tracker/tests/unit/Tracker/Action/DryRunDuckTypingFieldCollectorTest.php +15 −14 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Action/FieldTypeCompatibilityCheckerTest.php +4 −4 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Action/FullyMoveStaticFieldCheckerTest.php +11 −16 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Action/MovableStaticListFieldsCheckerTest.php +36 −2 Go to diff View file
R plugins/tracker/tests/unit/Tracker/Action/SingleStaticListFieldCheckerTest.php Go to diff View file
M plugins/tracker/tests/unit/Tracker/XML/Updater/BindValueForDuckTypingUpdaterTest.php +50 −6 Go to diff View file
M plugins/tracker/tests/unit/Tracker/XML/Updater/BindValueForSemanticUpdaterTest.php +4 −4 Go to diff View file
M plugins/tracker/tests/unit/Tracker/XML/Updater/MoveChangesetXMLDuckTypingUpdaterTest.php +44 −20 Go to diff View file
M plugins/tracker/tests/unit/Tracker/XML/Updater/MoveChangesetXMLUpdaterTest.php +14 −0 Go to diff View file
M plugins/tracker/tests/unit/Tracker/XML/Updater/_fixtures/bugs_artifact.xml +4 −0 Go to diff View file