stable

Clone or download

Read-only

Toggle service usage with REST API

PUT /project_services/:id { "is_enabled": <bool> } You can pass a full service representation, but only is_enabled can be changed for the context of the current story. Now admin service cannot be disabled anymore so that administrators don't shoot themeselves in the feet. Part of story #13238: toggle service usage with REST API Change-Id: If1346be8c8bef6cea5effe4c0637b19f4e187c2b

Modified Files

Name
M site-content/fr_FR/LC_MESSAGES/tuleap-core.po +15 −0 Go to diff View file
M src/common/Project/REST/v1/ServiceRepresentation.php +5 −5 Go to diff View file
A src/common/Project/REST/v1/ServiceResource.php +181 −0 Go to diff View file
A src/common/Project/Service/BuildingPOSTDataForInactiveServiceIsNotSupportedException.php +27 −0 Go to diff View file
M src/common/Project/Service/EditController.php +13 −7 Go to diff View file
A src/common/Project/Service/ServiceCannotBeUpdatedException.php +27 −0 Go to diff View file
A src/common/Project/Service/ServiceNotFoundException.php +27 −0 Go to diff View file
M src/common/Project/Service/ServicePOSTDataBuilder.php +87 −19 Go to diff View file
M src/common/Project/Service/ServicePresenter.php +3 −1 Go to diff View file
M src/common/Project/ServiceManager.class.php +54 −21 Go to diff View file
M src/common/REST/ResourcesInjector.class.php +2 −0 Go to diff View file
M src/common/dao/ServiceDao.class.php +9 −0 Go to diff View file
M src/templates/project/admin/services-edit-modal.mustache +2 −0 Go to diff View file
M tests/rest/tests/ProjectServicesTest.php +46 −3 Go to diff View file