stable

Clone or download

Read-only

request #15062 Pass the project status from deleted to active shouldn't be possible

As it's explain on the docblock of REST route PATCH /projects/id, pass the project from deleted to active or suspended shouldn't be possible. This patch remove this possibility. Moreover, there is no backend check for classic project status change. Change-Id: I978ee8b28ff5e30c91d2428d2ab74ada41ef30be

Modified Files

Name
M site-content/fr_FR/LC_MESSAGES/tuleap-core.po +3 −0 Go to diff View file
A src/common/Project/DeletedProjectStatusChangeException.php +26 −0 Go to diff View file
M src/common/Project/ProjectManager.class.php +5 −0 Go to diff View file
M src/common/Project/REST/v1/ProjectResource.class.php +9 −4 Go to diff View file
M src/common/admin/ProjectEdit/ProjectEditController.php +29 −7 Go to diff View file
M src/www/admin/approve-pending.php +7 −1 Go to diff View file
M tests/rest/tests/ProjectTest.php +17 −3 Go to diff View file
A tests/unit/common/Project/Admin/ProjectEditControllerTests.php +181 −0 Go to diff View file
M tests/unit/common/Project/ProjectManagerTest.php +59 −10 Go to diff View file