stable
Clone or download
Read-only
Part of story #12265 have a REST end point to toggle project's status How to test: - Log in as a regular user and open the api explorer - Query GET projects/ with query { "with_status": "deleted" } --> 403 forbidden - Log in as a Rest project manager - Retry the last query --> The list of deleted projects is displayed - Log in as site-admin - Retry the last query --> The list of deleted projects is displayed - Try to query GET projects/ with { "with_status": "Z" } or whatever --> 400 Bad Request Change-Id: I0e9eea0c6369780ba356bca9692c541129689d0c
Modified Files
Name | ||||
---|---|---|---|---|
M | src/common/dao/ProjectDao.class.php | +17 | −1 | Go to diff View file |
M | src/common/project/Project.class.php | +38 | −32 | Go to diff View file |
M | src/common/project/ProjectManager.class.php | +13 | −0 | Go to diff View file |
A | src/common/project/ProjectStatusMapper.php | +69 | −0 | Go to diff View file |
M | src/common/project/REST/v1/ProjectResource.class.php | +51 | −5 | Go to diff View file |
M | tests/lib/TestDataBuilder.php | +8 | −1 | Go to diff View file |
M | tests/rest/_fixtures/01-private-member/user_map.csv | +2 | −1 | Go to diff View file |
M | tests/rest/_fixtures/01-private-member/users.xml | +7 | −0 | Go to diff View file |
A | tests/rest/_fixtures/11-delegated-rest-project-managers/project.xml | +20 | −0 | Go to diff View file |
A | tests/rest/_fixtures/11-delegated-rest-project-managers/user_map.csv | +1 | −0 | Go to diff View file |
A | tests/rest/_fixtures/11-delegated-rest-project-managers/users.xml | +10 | −0 | Go to diff View file |
M | tests/rest/bin/init_data.php | +2 | −2 | Go to diff View file |
M | tests/rest/bin/setup.sh | +1 | −0 | Go to diff View file |
M | tests/rest/lib/RestBase.php | +35 | −15 | Go to diff View file |
M | tests/rest/lib/TestDataBuilder.php | +44 | −23 | Go to diff View file |