stable

Clone or download

Read-only

Extract update-specific request validator for planning admin

Part of story #15122 [release management] management of Aggregator projects This is a refactoring to make it easier to change the request validation rules for root plannings. The existing RequestValidator is used for planning creation from a form and XML and for planning update. Changing it would bring unintended side-effects. Also, planning updates have different validation constraints than planning creations. How to test: - No functional change expected. - Name, "planning tracker" and backlog trackers are mandatory and cannot be empty. Change-Id: I20d5678e7e57362347891847bf95a7388bccf691

Modified Files

Name
A plugins/agiledashboard/include/AgileDashboard/Planning/Admin/UpdateRequestValidator.php +119 −0 Go to diff View file
M plugins/agiledashboard/include/AgileDashboardRouter.class.php +10 −2 Go to diff View file
M plugins/agiledashboard/include/AgileDashboardRouterBuilder.php +2 −1 Go to diff View file
M plugins/agiledashboard/include/Planning/PlanningController.class.php +39 −31 Go to diff View file
A plugins/agiledashboard/tests/unit/AgileDashboard/Planning/Admin/UpdateRequestValidatorTest.php +146 −0 Go to diff View file
M plugins/agiledashboard/tests/unit/AgileDashboard/Planning/PlanningControllerTest.php +24 −7 Go to diff View file
M plugins/agiledashboard/tests/unit/AgileDashboardRouterTest.php +2 −1 Go to diff View file