stable

Clone or download

Read-only

Add i18n for rest error in Program Management (ProjectResource part)

This is part of story #21792 define Teams associated to Programs How to test: => With API Rest - Use project/:id/program and project/:id/plan with bad values => i18n message should be displayed => With UI - (To simplify the test, I susggest you to remove the if in PotentialTeamsBuilder.php) - Go to program admin - Try to add as team the program - Try to add another program => When the i18n message exists, then it 's displayed Note to reviewer: For the moment only ProjectResource contains i18n. In next patch ProgramIncrementResource will ba have i18n too. Change-Id: I03956413d88af4a999c375d76cc9d6b7a5dc2fd4

Modified Files

Name
M plugins/program_management/include/Adapter/Program/Plan/ProgramAdapter.php +2 −2 Go to diff View file
M plugins/program_management/include/Domain/Program/Backlog/Feature/FeatureCanNotBeRankedWithItselfException.php +9 −1 Go to diff View file
M plugins/program_management/include/Domain/Program/Backlog/Feature/FeatureException.php +1 −0 Go to diff View file
M plugins/program_management/include/Domain/Program/Backlog/Feature/FeatureHasPlannedUserStoryException.php +15 −1 Go to diff View file
M plugins/program_management/include/Domain/Program/Backlog/Feature/FeatureNotFoundException.php +14 −0 Go to diff View file
M plugins/program_management/include/Domain/Program/Backlog/ProgramIncrement/Content/AddFeatureException.php +15 −0 Go to diff View file
M plugins/program_management/include/Domain/Program/Backlog/ProgramIncrement/Content/RemoveFeatureException.php +14 −0 Go to diff View file
M plugins/program_management/include/Domain/Program/Backlog/TopBacklog/CannotManipulateTopBacklog.php +16 −1 Go to diff View file
M plugins/program_management/include/Domain/Program/Plan/CannotPlanIntoItselfException.php +1 −0 Go to diff View file
M plugins/program_management/include/Domain/Program/Plan/FeatureCannotBePlannedInProgramIncrementException.php +15 −0 Go to diff View file
M plugins/program_management/include/Domain/Program/Plan/InvalidFeatureIdInProgramIncrementException.php +15 −0 Go to diff View file
M plugins/program_management/include/Domain/Program/Plan/InvalidProgramUserGroup.php +1 −0 Go to diff View file
M plugins/program_management/include/Domain/Program/Plan/IterationCannotBePlannedException.php +10 −1 Go to diff View file
M plugins/program_management/include/Domain/Program/Plan/PlanTrackerException.php +1 −0 Go to diff View file
M plugins/program_management/include/Domain/Program/Plan/PlannableTrackerCannotBeEmptyException.php +9 −1 Go to diff View file
M plugins/program_management/include/Domain/Program/Plan/ProgramAccessException.php +19 −0 Go to diff View file
M plugins/program_management/include/Domain/Program/Plan/ProgramIncrementCannotPlanIntoItselfException.php +9 −1 Go to diff View file
M plugins/program_management/include/Domain/Program/Plan/ProjectIsNotAProgramException.php +15 −1 Go to diff View file
M plugins/program_management/include/Domain/Program/PlanTrackerDoesNotBelongToProjectException.php +16 −1 Go to diff View file
M plugins/program_management/include/Domain/Program/PlanTrackerNotFoundException.php +15 −1 Go to diff View file
M plugins/program_management/include/Domain/Program/ProgramIsTeamException.php +14 −0 Go to diff View file
M plugins/program_management/include/Domain/Program/ProgramTrackerException.php +1 −0 Go to diff View file
M plugins/program_management/include/Domain/Program/ProgramTrackerNotFoundException.php +14 −0 Go to diff View file
M plugins/program_management/include/Domain/Program/ProgramUserGroupDoesNotExistException.php +15 −1 Go to diff View file
M plugins/program_management/include/Domain/Team/AtLeastOneTeamShouldBeDefinedException.php +9 −1 Go to diff View file
M plugins/program_management/include/Domain/Team/ProjectIsAProgramException.php +15 −1 Go to diff View file
M plugins/program_management/include/Domain/Team/TeamAccessException.php +15 −1 Go to diff View file
M plugins/program_management/include/Domain/Team/TeamException.php +1 −0 Go to diff View file
M plugins/program_management/include/Domain/Team/TeamMustHaveExplicitBacklogEnabledException.php +16 −1 Go to diff View file
M plugins/program_management/include/REST/v1/ProjectResource.php +17 −16 Go to diff View file
M plugins/program_management/scripts/admin/src/add-team.test.ts +32 −1 Go to diff View file
M plugins/program_management/scripts/admin/src/add-team.ts +14 −2 Go to diff View file
M plugins/program_management/site-content/fr_FR/LC_MESSAGES/tuleap-program_management.po +108 −1 Go to diff View file
M plugins/program_management/tests/rest/v1/ProjectResourceTest.php +1 −1 Go to diff View file
M plugins/program_management/tests/unit/Adapter/Program/Plan/ProgramAdapterTest.php +5 −1 Go to diff View file