stable
Clone or download
Read-only
This is part of story #17178 reference my gitlab repositories in my tuleap project The REST route DELETE gitlab_repositories/:id is now available. Project id must be provided as an URL parameter and is mandatory. The integration is removed if user is git administrator of the project. If the last integration is removed, all the GitLab repository data is also removed. Errors are thrown if repository does not exist or if repository is not integrated into provided project. Change-Id: I62bc062dee74b71c4a5a9d0a6554fe6176cd7de9
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/gitlab/include/REST/ResourcesInjector.php | +4 | −1 | Go to diff View file |
M | plugins/gitlab/include/REST/v1/GitlabRepositoryRepresentation.php | +2 | −0 | Go to diff View file |
A | plugins/gitlab/include/REST/v1/GitlabRepositoryResource.php | +142 | −0 | Go to diff View file |
M | plugins/gitlab/include/Repository/GitlabRepositoryDao.php | +20 | −0 | Go to diff View file |
A | plugins/gitlab/include/Repository/GitlabRepositoryDeletor.php | +112 | −0 | Go to diff View file |
M | plugins/gitlab/include/Repository/GitlabRepositoryFactory.php | +10 | −0 | Go to diff View file |
A | plugins/gitlab/include/Repository/GitlabRepositoryNotInProjectException.php | +30 | −0 | Go to diff View file |
A | plugins/gitlab/include/Repository/GitlabRepositoryNotIntegratedInAnyProjectException.php | +30 | −0 | Go to diff View file |
A | plugins/gitlab/include/Repository/Project/GitlabRepositoryProjectDao.php | +48 | −0 | Go to diff View file |
M | plugins/gitlab/include/Repository/Webhook/Secret/SecretDao.php | +8 | −0 | Go to diff View file |
M | plugins/gitlab/tests/rest/Gitlab/ProjectTest.php | +2 | −1 | Go to diff View file |
A | plugins/gitlab/tests/rest/Gitlab/RepositoryTest.php | +67 | −0 | Go to diff View file |
M | plugins/gitlab/tests/rest/TestBase.php | +7 | −1 | Go to diff View file |
A | plugins/gitlab/tests/unit/Repository/GitlabRepositoryDeletorTest.php | +221 | −0 | Go to diff View file |