stable

Clone or download

Read-only

chore: Block hierarchy update if defined parent/child are backlog of a planning

This closes request #29972 Planning backlog trackers must not have hierarchical links How to test ----------- * In a planning configuration, select Tracker A and B as part of Backlog * In the tracker administration, try to add Tracker B as child of Tracker A => The hierarchy update must fail with an error message saying why the update is rejected. Change-Id: Id5050ce33fda10f8201c970a36bf1100e4fde972

Modified Files

Name
A plugins/agiledashboard/include/AgileDashboard/Tracker/TrackerHierarchyUpdateChecker.php +76 −0 Go to diff View file
A plugins/agiledashboard/include/AgileDashboard/Tracker/TrackersCannotBeLinkedWithHierarchyException.php +41 −0 Go to diff View file
M plugins/agiledashboard/include/agiledashboardPlugin.php +25 −0 Go to diff View file
M plugins/agiledashboard/site-content/fr_FR/LC_MESSAGES/tuleap-agiledashboard.po +8 −0 Go to diff View file
M plugins/agiledashboard/site-content/pt_BR/LC_MESSAGES/tuleap-agiledashboard.po +6 −0 Go to diff View file
A plugins/agiledashboard/tests/unit/AgileDashboard/Tracker/TrackerHierarchyUpdateCheckerTest.php +186 −0 Go to diff View file
M plugins/tracker/include/Tracker/Hierarchy/HierarchyController.php +26 −4 Go to diff View file
A plugins/tracker/include/Tracker/Hierarchy/TrackerHierarchyUpdateEvent.php +76 −0 Go to diff View file
M plugins/tracker/include/Tracker/Tracker.class.php +2 −1 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Hierarchy/ControllerTest.php +41 −6 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Hierarchy/HierarchyControllerTest.php +64 −2 Go to diff View file