stable

Clone or download

Read-only

Semantics configuration errors are now displayed in program management adiministration

part of story #21794 display Program Management configuration errors Only semantic errors are displayed for now. As errors are displayed in UI, they are no longer written in error log. Only when you are in administration part all errors are collected, elsewhere the code will break at first error encountered. Errors are translated, links enable administrator to have direct access to configuration to check. Change-Id: I7bcf040875ec89db214c5a807591d6e9ee60bab0

Modified Files

Name
A plugins/program_management/include/Adapter/Program/Admin/Configuration/ConfigurationChecker.php +105 −0 Go to diff View file
M plugins/program_management/include/Adapter/Program/Backlog/CreationCheck/SemanticChecker.php +68 −26 Go to diff View file
M plugins/program_management/include/DisplayAdminProgramManagementController.php +44 −10 Go to diff View file
A plugins/program_management/include/Domain/Program/Admin/Configuration/ConfigurationErrorsCollector.php +57 −0 Go to diff View file
A plugins/program_management/include/Domain/Program/Admin/Configuration/ErrorPresenter.php +35 −0 Go to diff View file
M plugins/program_management/include/Domain/Program/Admin/ProgramAdminPresenter.php +13 −6 Go to diff View file
M plugins/program_management/include/Domain/Program/Backlog/CreationCheck/CanSubmitNewArtifactHandler.php +15 −4 Go to diff View file
M plugins/program_management/include/Domain/Program/Backlog/CreationCheck/CheckSemantic.php +3 −1 Go to diff View file
M plugins/program_management/include/Domain/Program/Backlog/CreationCheck/IterationCreatorChecker.php +5 −2 Go to diff View file
M plugins/program_management/include/Domain/Program/Backlog/CreationCheck/ProgramIncrementCreatorChecker.php +5 −2 Go to diff View file
M plugins/program_management/include/Domain/Program/Backlog/CreationCheck/TimeboxCreatorChecker.php +4 −2 Go to diff View file
M plugins/program_management/include/program_managementPlugin.php +66 −23 Go to diff View file
M plugins/program_management/site-content/fr_FR/LC_MESSAGES/tuleap-program_management.po +29 −0 Go to diff View file
M plugins/program_management/templates/admin/admin.mustache +10 −0 Go to diff View file
A plugins/program_management/tests/unit/Adapter/Admin/Configuration/ConfigurationCheckerTest.php +102 −0 Go to diff View file
M plugins/program_management/tests/unit/Adapter/Program/Backlog/CreationCheck/SemanticCheckerTest.php +58 −14 Go to diff View file
M plugins/program_management/tests/unit/DisplayAdminProgramManagementControllerTest.php +41 −7 Go to diff View file
M plugins/program_management/tests/unit/Domain/Program/Backlog/CreationCheck/CanSubmitNewArtifactHandlerTest.php +26 −8 Go to diff View file
M plugins/program_management/tests/unit/Domain/Program/Backlog/CreationCheck/IterationCreatorCheckerTest.php +13 −6 Go to diff View file
M plugins/program_management/tests/unit/Domain/Program/Backlog/CreationCheck/ProgramIncrementCreatorCheckerTest.php +13 −6 Go to diff View file
M plugins/program_management/tests/unit/Domain/Program/Backlog/CreationCheck/TimeboxCreatorCheckerTest.php +15 −7 Go to diff View file
M plugins/program_management/tests/unit/Stub/BuildProgramStub.php +22 −9 Go to diff View file
M plugins/program_management/themes/program_management/_admin.scss +4 −0 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/CanSubmitNewArtifact.php +28 −9 Go to diff View file
M plugins/tracker/include/Tracker/Tracker.class.php +1 −1 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Artifact/CanSubmitNewArtifactTest.php +1 −1 Go to diff View file