stable

Clone or download

Read-only

Propose parent from program

With this contribution, a user story created in a Team should be able to be attached to a Feature (or a Program Enabler) created in a parent Program. The contribution is a bit large because of the introduction of the interface on PlanningFactory to be able to write tests against getRootPlanning. I also had to move part of the logic that was in ArtifactLink class into the PossibleParent event or Tracker_Artifact_PossibleParentsRetriever. The main change here is that PossibleParent event no longer deal with a "Parent Tracker" but with the source tracker itself. In the context of Program Management there is no cross project hierarchy, hence no Parent Tracker. However the configuration of the project themselves allows to propose parents. Final note: from a pure Process point of view it might be wrong to attach a User Story to a Program Enabler but: * This has no impact on Tuleap so it's rather safe from a data consitency point of view. * We don't distinguish the concept of "hierarchy of tracker" anymore so we cannot "force" the possible parents. ATM, we choose to keep the implementation "simple". If there is a strong need we will treat it later on. Part of story #22681 select a parent from Program for my features/enablers Change-Id: I40d4075c7b7f5e8c839b66ef0f7927232bbbd708

Modified Files

Name
M plugins/agiledashboard/include/AgileDashboard/Planning/PlanningUpdater.php +1 −1 Go to diff View file
M plugins/agiledashboard/include/Planning/ArtifactParentsSelectorEventListener.class.php +24 −15 Go to diff View file
M plugins/agiledashboard/include/Planning/PlanningFactory.class.php +3 −6 Go to diff View file
M plugins/agiledashboard/include/Planning/PlanningTrackerBacklogChecker.php +1 −1 Go to diff View file
A plugins/agiledashboard/include/Planning/RetrieveRootPlanning.php +32 −0 Go to diff View file
M plugins/agiledashboard/tests/unit/AgileDashboard/Artifact/AdditionalArtifactActionBuilderTest.php +1 −1 Go to diff View file
M plugins/agiledashboard/tests/unit/AgileDashboard/Masschange/AdditionalMasschangeActionBuilderTest.php +1 −1 Go to diff View file
M plugins/agiledashboard/tests/unit/AgileDashboard/Milestone/Backlog/TopBacklogElementsToAddCheckerTest.php +1 −1 Go to diff View file
M plugins/agiledashboard/tests/unit/AgileDashboard/Planning/Admin/PlanningEditionPresenterBuilderTest.php +2 −2 Go to diff View file
M plugins/agiledashboard/tests/unit/AgileDashboard/Planning/PlanningControllerTest.php +2 −2 Go to diff View file
M plugins/agiledashboard/tests/unit/AgileDashboard/Planning/PlanningFactoryTestGetVirtualTopPlanningTest.php +1 −1 Go to diff View file
M plugins/agiledashboard/tests/unit/AgileDashboard/Planning/PlanningTrackerBacklogCheckerTest.php +1 −1 Go to diff View file
M plugins/agiledashboard/tests/unit/AgileDashboard/Scrum/ScrumPresenterBuilderTest.php +1 −1 Go to diff View file
M plugins/agiledashboard/tests/unit/Planning/Planning_ArtifactParentsSelectorEventListenerTest.php +5 −4 Go to diff View file
M plugins/program_management/include/Adapter/Program/Feature/FeaturesDao.php +23 −0 Go to diff View file
A plugins/program_management/include/Adapter/Team/PossibleParentSelectorProxy.php +95 −0 Go to diff View file
M plugins/program_management/include/Domain/Program/Backlog/Feature/FeaturesStore.php +9 −1 Go to diff View file
A plugins/program_management/include/Domain/Team/PossibleParentHandler.php +79 −0 Go to diff View file
A plugins/program_management/include/Domain/Team/PossibleParentSelectorEvent.php +43 −0 Go to diff View file
M plugins/program_management/include/program_managementPlugin.php +37 −0 Go to diff View file
M plugins/program_management/site-content/fr_FR/LC_MESSAGES/tuleap-program_management.po +6 −0 Go to diff View file
M plugins/program_management/tests/unit/Adapter/Program/Feature/UserStoriesInMirroredProgramIncrementsPlannerTest.php +1 −1 Go to diff View file
A plugins/program_management/tests/unit/Adapter/Team/PossibleParentSelectorProxyTest.php +221 −0 Go to diff View file
A plugins/program_management/tests/unit/Domain/Team/PossibleParentHandlerTest.php +173 −0 Go to diff View file
M plugins/tracker/include/REST/v1/TrackersResource.class.php +3 −5 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/PossibleParentSelector.php +26 −4 Go to diff View file
R plugins/tracker/include/Tracker/Artifact/Tracker_Artifact_PossibleParentsRetriever.php Go to diff View file
A plugins/tracker/include/Tracker/Artifact/RetrieveArtifact.php +32 −0 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Tracker_ArtifactFactory.class.php +3 −4 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_ArtifactLink.php +11 −12 Go to diff View file
M plugins/tracker/include/Tracker/Tracker.class.php +19 −0 Go to diff View file
M plugins/tracker/tests/unit/Builders/TrackerTestBuilder.php +7 −0 Go to diff View file
A plugins/tracker/tests/unit/Tracker/Artifact/PossibleParentsRetrieverTest.php +120 −0 Go to diff View file