stable

Clone or download

Read-only

feat: Move user groups bound list fields

part of story #32280 Complete the "move artifact" feature How to test: - Like for the other list fields --> When some values which do not exist in detination field -> Partially migrated field warning in dry run step + only available values migrated. --> When all values are available in destination field --> Fully migrated --> When the source and destination field do not have the same multiplicity -> not migrated Change-Id: If0f24c473f745b66ec0ff629ff9d7532194d027b

Modified Files

Name
M plugins/tracker/include/REST/v1/ArtifactsResource.class.php +7 −1 Go to diff View file
A plugins/tracker/include/Tracker/Action/AreUserGroupFieldsCompatibleVerifier.php +46 −0 Go to diff View file
A plugins/tracker/include/Tracker/Action/CanUserGroupValuesBeFullyMovedVerifier.php +55 −0 Go to diff View file
M plugins/tracker/include/Tracker/Action/DryRunDuckTypingFieldCollector.php +31 −0 Go to diff View file
A plugins/tracker/include/Tracker/Action/IsUserGroupListFieldVerifier.php +39 −0 Go to diff View file
A plugins/tracker/include/Tracker/Action/VerifyIsUserGroupListField.php +26 −0 Go to diff View file
A plugins/tracker/include/Tracker/Action/VerifyUserGroupFieldsAreCompatible.php +28 −0 Go to diff View file
A plugins/tracker/include/Tracker/Action/VerifyUserGroupValuesCanBeFullyMoved.php +28 −0 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_List_Bind_StaticValue.php +1 −5 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_List_Bind_Ugroups.php +12 −11 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_List_Bind_UgroupsValue.php +7 −1 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_List_Bind_UsersValue.php +1 −1 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_List_OpenValue.php +2 −2 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_List_UnsavedValue.php +4 −4 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_List_Value.php +1 −1 Go to diff View file
A plugins/tracker/tests/unit/Builders/TrackerFormElementListUserGroupBindBuilder.php +101 −0 Go to diff View file
A plugins/tracker/tests/unit/Stub/VerifyIsUserGroupListFieldStub.php +47 −0 Go to diff View file
A plugins/tracker/tests/unit/Stub/VerifyUserGroupFieldsAreCompatibleStub.php +48 −0 Go to diff View file
A plugins/tracker/tests/unit/Stub/VerifyUserGroupValuesCanBeFullyMovedStub.php +48 −0 Go to diff View file
A plugins/tracker/tests/unit/Tracker/Action/AreUserGroupFieldsCompatibleVerifierTest.php +128 −0 Go to diff View file
A plugins/tracker/tests/unit/Tracker/Action/CanUserGroupValuesBeFullyMovedVerifierTest.php +96 −0 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Action/DryRunDuckTypingFieldCollectorTest.php +128 −0 Go to diff View file
A plugins/tracker/tests/unit/Tracker/Action/IsUserGroupListFieldVerifierTest.php +56 −0 Go to diff View file
M plugins/tracker/tests/unit/Tracker/XML/Updater/MoveChangesetXMLDuckTypingUpdaterTest.php +22 −1 Go to diff View file
M plugins/tracker/tests/unit/Tracker/XML/Updater/_fixtures/bugs_artifact.xml +6 −0 Go to diff View file
M plugins/tracker/tests/unit/Workflow/WorkflowTest.php +3 −3 Go to diff View file