stable

Clone or download

Read-only

UI prohibits milestone tracker update with a message

Part of story #15122 [release management] management of Aggregator projects How to test: - After installing the plugin, edit manually your DB to configure aggregator and contributor projects. - In a contributor project, define a new Tracker (for example "Products"). Set it on top of Release in the Tracker hierarchy. - Go to Scrum administration and Edit the Release planning (assuming it is the root planning). - The "Milestone tracker" selectbox should be disabled with a feedback warning on top of it explaining why. - If you edit the HTML with dev tools, remove the "disabled" and change the selectbox and submit, the backend will ignore the modification. - No functional change expected on other planning modifications and non-contributor projects. Notes to reviewers: - The feedback warning is likely bad from a UX point of view, we will adjust later with UXD. Change-Id: Ie4e92d409a346fb181c4c455d89a648fb2c8395e

Modified Files

Name
A plugins/agiledashboard/include/AgileDashboard/Planning/Admin/ModificationBan.php +33 −0 Go to diff View file
R plugins/agiledashboard/include/AgileDashboard/Planning/RootPlanning/PlanningUpdateIsNotAllowedException.php Go to diff View file
M plugins/agiledashboard/include/AgileDashboard/Planning/Admin/PlanningEditionPresenter.php +20 −14 Go to diff View file
M plugins/agiledashboard/include/AgileDashboard/Planning/Admin/PlanningEditionPresenterBuilder.php +24 −2 Go to diff View file
M plugins/agiledashboard/include/AgileDashboard/Planning/Admin/UpdateRequestValidator.php +23 −14 Go to diff View file
R plugins/agiledashboard/include/AgileDashboard/Planning/RootPlanning/RootPlanningUpdateIsAllowedEvent.php Go to diff View file
M plugins/agiledashboard/include/AgileDashboard/Planning/RootPlanning/UpdateIsAllowedChecker.php +1 −15 Go to diff View file
M plugins/agiledashboard/include/AgileDashboardRouterBuilder.php +1 −2 Go to diff View file
M plugins/agiledashboard/include/Planning/PlanningController.class.php +9 −15 Go to diff View file
M plugins/agiledashboard/site-content/fr_FR/LC_MESSAGES/tuleap-agiledashboard.po +0 −3 Go to diff View file
M plugins/agiledashboard/templates/admin-scrum/edit-planning.mustache +4 −1 Go to diff View file
M plugins/agiledashboard/tests/unit/AgileDashboard/Planning/Admin/PlanningEditionPresenterBuilderTest.php +52 −7 Go to diff View file
M plugins/agiledashboard/tests/unit/AgileDashboard/Planning/Admin/UpdateRequestValidatorTest.php +43 −5 Go to diff View file
M plugins/agiledashboard/tests/unit/AgileDashboard/Planning/PlanningControllerTest.php +4 −1 Go to diff View file
M plugins/agiledashboard/tests/unit/AgileDashboard/Planning/RootPlanning/UpdateIsAllowedCheckerTest.php +3 −46 Go to diff View file
A plugins/multi_project_backlog/include/Contributor/RootPlanning/MilestoneTrackerUpdateProhibited.php +39 −0 Go to diff View file
R plugins/multi_project_backlog/include/Contributor/RootPlanningUpdateIsAllowedHandler.php Go to diff View file
M plugins/multi_project_backlog/include/multi_project_backlogPlugin.php +5 −5 Go to diff View file
M plugins/multi_project_backlog/site-content/fr_FR/LC_MESSAGES/tuleap-multi_project_backlog.po +10 −4 Go to diff View file
A plugins/multi_project_backlog/tests/unit/Contributor/RootPlanning/RootPlanningEditionHandlerTest.php +77 −0 Go to diff View file
D plugins/multi_project_backlog/tests/unit/Contributor/RootPlanningUpdateIsAllowedHandlerTest.php +0 −110 Go to diff View file