stable

Clone or download

Read-only

chore: Do not allow planning update with backlog trackers that have hierarchy links

This is part of request #29972 Planning backlog trackers must not have hierarchical links When editing the backlog trackers of a planning, we must not be able to select trackers that have a hierarchical link, because this will mean that both parent and child artifacts can be planned in different milestones. Note: A more helpful error message with trackers information will be added in a next commit. How to test ----------- * Have a project with the agiledashboard service enabled * Define a parent/child relationship between a tracker A and a tracker B * Go to your agiledashboard administration, and select a planning * Edit the backlog trackers of this plannig by selecting both trackers A and B => The backlog trackers must not be updated Change-Id: Iff84b674a8966beda1bf09b9cdfaa88c3f074dae

Modified Files

Name
A plugins/agiledashboard/include/AgileDashboard/Planning/BacklogTrackersUpdateChecker.php +47 −0 Go to diff View file
M plugins/agiledashboard/include/AgileDashboardRouter.class.php +4 −1 Go to diff View file
M plugins/agiledashboard/include/AgileDashboardRouterBuilder.php +4 −2 Go to diff View file
M plugins/agiledashboard/include/Planning/PlanningController.class.php +8 −1 Go to diff View file
A plugins/agiledashboard/include/Planning/TrackersHaveAtLeastOneHierarchicalLinkException.php +36 −0 Go to diff View file
M plugins/agiledashboard/site-content/fr_FR/LC_MESSAGES/tuleap-agiledashboard.po +5 −0 Go to diff View file
M plugins/agiledashboard/site-content/pt_BR/LC_MESSAGES/tuleap-agiledashboard.po +3 −0 Go to diff View file
A plugins/agiledashboard/tests/unit/AgileDashboard/Planning/BacklogTrackersUpdateCheckerTest.php +83 −0 Go to diff View file
M plugins/agiledashboard/tests/unit/AgileDashboard/Planning/PlanningControllerTest.php +51 −7 Go to diff View file
M plugins/agiledashboard/tests/unit/AgileDashboardRouterTest.php +2 −0 Go to diff View file