stable

Clone or download

Read-only

Mirror milestone also copies status with mapping

Part of story #16125 [release management] create a new Aggregator Release How to test: - Set up multi projects - Now that it is copied, "Status" field can be required in tracker structures. Previously if it was required, it would fail the validation. - In the Aggregator project, create a new Release and choose a Status field. - Mirror releases should be created in all the Contributor projects. Each mirror release should have the same label for Status. The Status value is mapped by duck-typing (if it has the same label, regardless of casing, it is the same). No functional change on "Move artifact" status mapping. Change-Id: I4074a1728bc1d61b33c224d2c1311794e78b679e

Modified Files

Name
M plugins/multi_project_backlog/include/Aggregator/Milestone/Mirroring/CopiedValues.php +15 −0 Go to diff View file
M plugins/multi_project_backlog/include/Aggregator/Milestone/Mirroring/CopiedValuesGatherer.php +23 −1 Go to diff View file
M plugins/multi_project_backlog/include/Aggregator/Milestone/Mirroring/MirrorMilestoneFieldsData.php +21 −2 Go to diff View file
M plugins/multi_project_backlog/include/Aggregator/Milestone/Mirroring/MirrorMilestonesCreator.php +9 −0 Go to diff View file
A plugins/multi_project_backlog/include/Aggregator/Milestone/Mirroring/Status/MappedStatusValue.php +50 −0 Go to diff View file
A plugins/multi_project_backlog/include/Aggregator/Milestone/Mirroring/Status/NoDuckTypedMatchingValueException.php +39 −0 Go to diff View file
A plugins/multi_project_backlog/include/Aggregator/Milestone/Mirroring/Status/NoStatusChangesetValueException.php +33 −0 Go to diff View file
A plugins/multi_project_backlog/include/Aggregator/Milestone/Mirroring/Status/StatusValueMapper.php +65 −0 Go to diff View file
M plugins/multi_project_backlog/include/multi_project_backlogPlugin.php +6 −2 Go to diff View file
M plugins/multi_project_backlog/tests/unit/Aggregator/Milestone/Mirroring/ArtifactCreatedHandlerTest.php +24 −4 Go to diff View file
M plugins/multi_project_backlog/tests/unit/Aggregator/Milestone/Mirroring/CopiedValuesGathererTest.php +25 −0 Go to diff View file
M plugins/multi_project_backlog/tests/unit/Aggregator/Milestone/Mirroring/MirrorMilestoneFieldsDataTest.php +61 −16 Go to diff View file
M plugins/multi_project_backlog/tests/unit/Aggregator/Milestone/Mirroring/MirrorMilestonesCreatorTest.php +33 −1 Go to diff View file
A plugins/multi_project_backlog/tests/unit/Aggregator/Milestone/Mirroring/Status/StatusValueMapperTest.php +131 −0 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Field/ListFields/FieldValueMatcher.php +10 −4 Go to diff View file
M plugins/tracker/tests/unit/Tracker/FormElement/Field/ListFields/FieldValueMatcherTest.php +114 −92 Go to diff View file