stable

Clone or download

Read-only

Create a mirror release with only title field

Part of story #16125 [release management] create a new Aggregator Release Preconditions for tests: - Create projects (for example start from the Scrum template) - Install and activate the Multi Project Backlog plugin - Forge your database to define Aggregator and Contributor projects INSERT INTO tuleap.plugin_multi_project_backlog_contributor_projects (aggregator_project_id, contributor_project_id) VALUES (<id>, <other id>); In all projects, check all following conditions: - There is a top planning (e.g. Releases). - The Title, Description, TimeFrame and Status semantics are defined and use the same types of fields (for TimeFrame, they all use start / end date for example). - All contributor projects use at least the same values for Status field as Aggregator project. (They can have additional values). - The fields linked to this description are all submittable. - There is no workflow or date rules or list rules on synchronized fields (the semantics above). - Only title field is required (this will change in later commits). When all these checks are valid, the "Add new Releases" button will appear in Planning view of the Aggregator Project. If they are not valid, the button does not appear. ----- How to test: - Create a new release in the Aggregator Project. - "Mirror" releases should be created in each corresponding Contributor Project. They should have the same title, the same "Submitted on" date and the same "Submitter" user. Notes: - There is not yet an artifact link between the "Source" Release and its Mirror Releases. This will be done later. - Only the title field is mirrored for now. Other fields will come later. Change-Id: I1e9fb066f51f5f15d36ab5e70ea5c0cc141854a8

Modified Files

Name
M plugins/multi_project_backlog/include/Aggregator/ContributorProjectsCollection.php +3 −0 Go to diff View file
A plugins/multi_project_backlog/include/Aggregator/Milestone/Mirroring/ArtifactCreatedHandler.php +134 −0 Go to diff View file
A plugins/multi_project_backlog/include/Aggregator/Milestone/Mirroring/CopiedValues.php +77 −0 Go to diff View file
A plugins/multi_project_backlog/include/Aggregator/Milestone/Mirroring/CopiedValuesGatherer.php +69 −0 Go to diff View file
A plugins/multi_project_backlog/include/Aggregator/Milestone/Mirroring/MilestoneMirroringException.php +25 −0 Go to diff View file
A plugins/multi_project_backlog/include/Aggregator/Milestone/Mirroring/MirrorMilestoneCreationException.php +31 −0 Go to diff View file
A plugins/multi_project_backlog/include/Aggregator/Milestone/Mirroring/MirrorMilestoneFieldsData.php +57 −0 Go to diff View file
A plugins/multi_project_backlog/include/Aggregator/Milestone/Mirroring/MirrorMilestonesCreator.php +84 −0 Go to diff View file
A plugins/multi_project_backlog/include/Aggregator/Milestone/Mirroring/NoTitleChangesetValueException.php +31 −0 Go to diff View file
A plugins/multi_project_backlog/include/Aggregator/Milestone/Mirroring/TargetFields.php +44 −0 Go to diff View file
A plugins/multi_project_backlog/include/Aggregator/Milestone/Mirroring/TargetFieldsGatherer.php +52 −0 Go to diff View file
A plugins/multi_project_backlog/include/Aggregator/Milestone/Mirroring/UnsupportedTitleFieldException.php +31 −0 Go to diff View file
M plugins/multi_project_backlog/include/Aggregator/Milestone/NoTitleFieldException.php +3 −1 Go to diff View file
M plugins/multi_project_backlog/include/multi_project_backlogPlugin.php +62 −0 Go to diff View file
A plugins/multi_project_backlog/tests/unit/Aggregator/Milestone/Mirroring/ArtifactCreatedHandlerTest.php +264 −0 Go to diff View file
A plugins/multi_project_backlog/tests/unit/Aggregator/Milestone/Mirroring/CopiedValuesGathererTest.php +170 −0 Go to diff View file
A plugins/multi_project_backlog/tests/unit/Aggregator/Milestone/Mirroring/MirrorMilestoneFieldsDataTest.php +54 −0 Go to diff View file
A plugins/multi_project_backlog/tests/unit/Aggregator/Milestone/Mirroring/MirrorMilestonesCreatorTest.php +141 −0 Go to diff View file
A plugins/multi_project_backlog/tests/unit/Aggregator/Milestone/Mirroring/TargetFieldsGathererTest.php +91 −0 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Changeset/InitialChangesetCreatorBase.class.php +4 −7 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Event/ArtifactCreated.php +23 −9 Go to diff View file