stable
Clone or download
Read-only
part of story #12160 - have a clean way to suspend a project Routes to test: - PATCH /tracker_fields/:id - GET /tracker_reports/:id - GET /tracker_reports/:id/artifacts - GET /trackers/:id - GET /trackers/:id/tracker_reports - GET /trackers/:id/artifacts - GET /tracker/:id/parent_artifacts How to test: - Log in as a project_member - Go to the API explorer - Query every routes listed above --> 403 forbidden: This project is suspended - Log in as site admin - Repeat the same test --> On GET routes -> it works --> On the PATCH route -> 403 forbidden: This project is suspended Change-Id: I6d871aaa15d768c633c20fea77083b1188de5170
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/tracker/include/REST/v1/ReportsResource.class.php | +20 | −5 | Go to diff View file |
M | plugins/tracker/include/REST/v1/TrackerFieldsResource.php | +9 | −1 | Go to diff View file |
M | plugins/tracker/include/REST/v1/TrackersResource.class.php | +37 | −5 | Go to diff View file |
A | src/common/REST/ProjectStatusVerificator.php | +62 | −0 | Go to diff View file |
A | tests/phpunit/common/Project/REST/ProjectStatusVerificatorTest.php | +94 | −0 | Go to diff View file |