stable

Clone or download

Read-only

The header background of a project can be set or removed from a REST endpoint

Two new REST endpoints are available to interact with the header background of a project: * PUT /projects/:id/header_background * DELETE /projects/:id/header_background Part of story #16211 Set a header background image Change-Id: I5868a982f4976f929ecc88589b9580fdc08fe155

Modified Files

Name
M src/common/Project/ProjectBackground/ProjectBackgroundDao.php +11 −0 Go to diff View file
A src/common/Project/ProjectBackground/ProjectBackgroundName.php +60 −0 Go to diff View file
A src/common/Project/ProjectBackground/ProjectBackgroundPermissionsChecker.php +35 −0 Go to diff View file
A src/common/Project/ProjectBackground/ProjectBackgroundUpdater.php +49 −0 Go to diff View file
A src/common/Project/ProjectBackground/UserCanModifyProjectBackgroundPermission.php +45 −0 Go to diff View file
A src/common/Project/REST/v1/HeaderBackgroundRepresentation.php +40 −0 Go to diff View file
M src/common/Project/REST/v1/ProjectResource.class.php +57 −0 Go to diff View file
M tests/rest/tests/ProjectTest.php +28 −0 Go to diff View file
A tests/unit/common/Project/ProjectBackground/ProjectBackgroundNameTest.php +36 −0 Go to diff View file
A tests/unit/common/Project/ProjectBackground/ProjectBackgroundPermissionsCheckerTest.php +64 −0 Go to diff View file
A tests/unit/common/Project/ProjectBackground/ProjectBackgroundUpdaterTest.php +68 −0 Go to diff View file
A tests/unit/common/Project/ProjectBackground/UserCanModifyProjectBackgroundPermissionTest.php +36 −0 Go to diff View file