stable
Clone or download
Read-only
part story #32280 Complete the "move artifact" feature How to test Have a Tracker A with a status field with possible values `Open` and `Closed` Have a tracker B whith a status field with possible values `Opened` and `Closed` Move an artifact with status `Open` from tracker A to tracker B => a warning is displayed before migration saying that field will be partially migrated and value will be lost forever => process the move => status is set to tracker B default value Move an artifact with status `Closed` from tracker A to tracker B => field is displayed in fully migrated list => process the move, the status value is correct Change-Id: I767a41a3a2f6b265bfcd08ae281d440c16854c5d
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/tracker/include/REST/v1/ArtifactPatchDryRunFieldsResponseRepresentation.php | +3 | −0 | Go to diff View file |
M | plugins/tracker/include/REST/v1/ArtifactsResource.class.php | +8 | −6 | Go to diff View file |
A | plugins/tracker/include/Tracker/Action/CheckStaticFieldCanBeFullyMoved.php | +34 | −0 | Go to diff View file |
M | plugins/tracker/include/Tracker/Action/DryRunDuckTypingFieldCollector.php | +10 | −3 | Go to diff View file |
A | plugins/tracker/include/Tracker/Action/FullyMoveStaticFieldChecker.php | +53 | −0 | Go to diff View file |
M | plugins/tracker/include/Tracker/Action/MovableStaticListFieldsChecker.php | +1 | −13 | Go to diff View file |
M | plugins/tracker/include/Tracker/FormElement/Field/ListFields/FieldValueMatcher.php | +5 | −1 | Go to diff View file |
M | plugins/tracker/include/Tracker/XML/Updater/BindValueForDuckTypingUpdater.php | +3 | −0 | Go to diff View file |
A | plugins/tracker/tests/unit/Stub/CheckStaticFieldCanBeFullyMovedStub.php | +48 | −0 | Go to diff View file |
M | plugins/tracker/tests/unit/Tracker/Action/DryRunDuckTypingFieldCollectorTest.php | +40 | −2 | Go to diff View file |
A | plugins/tracker/tests/unit/Tracker/Action/FullyMoveStaticFieldCheckerTest.php | +76 | −0 | Go to diff View file |
M | plugins/tracker/tests/unit/Tracker/Action/MovableStaticListFieldsCheckerTest.php | +6 | −17 | Go to diff View file |
M | plugins/tracker/tests/unit/Tracker/Action/SingleStaticListFieldCheckerTest.php | +2 | −0 | Go to diff View file |
M | plugins/tracker/tests/unit/Tracker/REST/v1/Move/DryRunMoverTest.php | +1 | −1 | Go to diff View file |
M | plugins/tracker/tests/unit/Tracker/XML/Updater/MoveChangesetXMLDuckTypingUpdaterTest.php | +1 | −0 | Go to diff View file |