stable
Clone or download
Requests for project administration has been defined with variable name `id` for the project id. Latest developments that needed a middleware to retrieve a project are using `project_id` (See `ProjectRetrieverMiddleware`). If we want to be able to use this middleware in project administration pages (e.g in upcoming contribution about invitations management) then we should rename the existing variable `id` to `project_id`. Another solution would have been to be able to use both `id` and `project_id` in `ProjectRetrieverMiddleware`, but it looks like dangerous if a route is using both for two different things. We could have added an additional middleware like `ProjectByIdRetriever` that would use `id` instead of 'project_id`, but the less classes we have similar behavior, the better IMHO. No functional changes are expected in project/:id/admin pages declared in `RouteCollector::collect`. Part of story #30021: Invite buddies to my Tuleap project Change-Id: I8da40a40f3507e64ac2e13c58244fa62a94abf42
Modified Files
Name | ||||
---|---|---|---|---|
M | src/common/MailingList/MailingListAdministrationController.php | +1 | −1 | Go to diff View file |
M | src/common/MailingList/MailingListCreationController.php | +1 | −1 | Go to diff View file |
M | src/common/MailingList/MailingListDeleteController.php | +1 | −1 | Go to diff View file |
M | src/common/MailingList/MailingListDoCreateController.php | +1 | −1 | Go to diff View file |
M | src/common/MailingList/MailingListUpdateController.php | +1 | −1 | Go to diff View file |
M | src/common/Project/Admin/Categories/IndexController.php | +1 | −1 | Go to diff View file |
M | src/common/Project/Admin/Categories/UpdateController.php | +1 | −1 | Go to diff View file |
M | src/common/Project/Admin/Export/ProjectExportController.php | +2 | −2 | Go to diff View file |
M | src/common/Project/Admin/Export/ProjectXmlExportController.php | +2 | −2 | Go to diff View file |
M | src/common/Project/Admin/ProjectMembers/ProjectMembersController.php | +1 | −1 | Go to diff View file |
M | src/common/Project/Admin/ProjectUGroup/MemberAdditionController.php | +1 | −1 | Go to diff View file |
M | src/common/Project/Admin/ProjectUGroup/MemberRemovalController.php | +1 | −1 | Go to diff View file |
M | src/common/Project/Admin/ProjectUGroup/SynchronizedProjectMembership/ActivationController.php | +1 | −1 | Go to diff View file |
M | src/common/Project/Admin/Reference/Browse/ReferenceAdministrationBrowseController.php | +2 | −2 | Go to diff View file |
M | src/common/Project/Banner/BannerAdministrationController.php | +1 | −1 | Go to diff View file |
M | src/common/Project/ProjectBackground/ProjectBackgroundAdministrationController.php | +1 | −1 | Go to diff View file |
M | src/common/Project/Service/AddController.php | +1 | −1 | Go to diff View file |
M | src/common/Project/Service/DeleteController.php | +1 | −1 | Go to diff View file |
M | src/common/Project/Service/EditController.php | +1 | −1 | Go to diff View file |
M | src/common/Project/Service/IndexController.php | +1 | −1 | Go to diff View file |
M | src/common/Request/RouteCollector.php | +1 | −1 | Go to diff View file |
M | tests/unit/common/Project/Admin/Categories/IndexControllerTest.php | +1 | −1 | Go to diff View file |
M | tests/unit/common/Project/Admin/Categories/UpdateControllerTest.php | +1 | −1 | Go to diff View file |
M | tests/unit/common/Project/Admin/ProjectMembers/ProjectMembersControllerTest.php | +2 | −2 | Go to diff View file |
M | tests/unit/common/Project/Admin/ProjectUGroup/MemberAdditionControllerTest.php | +3 | −3 | Go to diff View file |
M | tests/unit/common/Project/Admin/ProjectUGroup/MemberRemovalControllerTest.php | +4 | −4 | Go to diff View file |
M | tests/unit/common/Project/Admin/ProjectUGroup/SynchronizedProjectMembership/ActivationControllerTest.php | +2 | −2 | Go to diff View file |
M | tests/unit/common/Project/Banner/BannerAdministrationControllerTest.php | +1 | −1 | Go to diff View file |
M | tests/unit/common/Project/Service/AddControllerTest.php | +1 | −1 | Go to diff View file |
M | tests/unit/common/Project/Service/DeleteControllerTest.php | +3 | −3 | Go to diff View file |
M | tests/unit/common/Project/Service/EditControllerTest.php | +3 | −3 | Go to diff View file |
M | tests/unit/common/Project/Service/IndexControllerTest.php | +2 | −2 | Go to diff View file |