stable

Clone or download

Read-only

Two GitLab repositories with the same name cannot be integrated in the same project

This is part of story #17180 take into account gitlab commits An error must be thrown by the REST API when the user wants to integrate a GitLab repository in a project where another GitLab integration with the same name but coming from another GitLab instance is already integrated. Change-Id: Id945a2a7137855a6f90649579648e2eabb6a84df

Modified Files

Name
M plugins/gitlab/include/REST/v1/GitlabRepositoryResource.php +6 −1 Go to diff View file
M plugins/gitlab/include/Repository/GitlabRepositoryCreator.php +14 −2 Go to diff View file
M plugins/gitlab/include/Repository/GitlabRepositoryDao.php +14 −0 Go to diff View file
A plugins/gitlab/include/Repository/GitlabRepositoryWithSameNameAlreadyIntegratedInProjectException.php +30 −0 Go to diff View file
M plugins/gitlab/tests/unit/Repository/GitlabRepositoryCreatorTest.php +35 −0 Go to diff View file