stable
Clone or download
Read-only
Part of story #26799 associate a Tuleap project and a GitLab group Since the patch is already big enough, the link bettween integration and group is not made yet, it will be done in a dedicated contribution Pre-conditions: - Make sure to enable the feature flag - The Gitlab token used should have at least the "api" scope. You can test via the API Explorer, if all it's ok, 201, the id of the created group and the number of integrated repositories are returned. If the group already exists, then you should have a 400. Change-Id: I9e2bd9ff37d5f525507e0b52f167c84cbabc0e57
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/gitlab/db/install.sql | +18 | −0 | Go to diff View file |
A | plugins/gitlab/db/mysql/2022/202208231630_add_group_tables.php | +79 | −0 | Go to diff View file |
M | plugins/gitlab/db/uninstall.sql | +2 | −0 | Go to diff View file |
A | plugins/gitlab/include/API/ApiToken.php | +30 | −0 | Go to diff View file |
M | plugins/gitlab/include/API/Credentials.php | +3 | −17 | Go to diff View file |
M | plugins/gitlab/include/API/GitlabHTTPClientFactory.php | +1 | −1 | Go to diff View file |
A | plugins/gitlab/include/API/Group/GitlabGroupApiDataRepresentation.php | +95 | −0 | Go to diff View file |
A | plugins/gitlab/include/API/Group/GitlabGroupInformationRetriever.php | +53 | −0 | Go to diff View file |
A | plugins/gitlab/include/API/Group/RetrieveGitlabGroupInformation.php | +37 | −0 | Go to diff View file |
A | plugins/gitlab/include/Group/BuildGitlabGroup.php | +31 | −0 | Go to diff View file |
A | plugins/gitlab/include/Group/GitlabGroup.php | +61 | −0 | Go to diff View file |
A | plugins/gitlab/include/Group/GitlabGroupAlreadyExistsException.php | +33 | −0 | Go to diff View file |
A | plugins/gitlab/include/Group/GitlabGroupDAO.php | +51 | −0 | Go to diff View file |
A | plugins/gitlab/include/Group/GitlabGroupDBInsertionRepresentation.php | +55 | −0 | Go to diff View file |
A | plugins/gitlab/include/Group/GitlabGroupFactory.php | +43 | −0 | Go to diff View file |
M | plugins/gitlab/include/Group/GroupCreator.php | +19 | −10 | Go to diff View file |
A | plugins/gitlab/include/Group/Token/GroupApiToken.php | +43 | −0 | Go to diff View file |
A | plugins/gitlab/include/Group/Token/GroupApiTokenDAO.php | +42 | −0 | Go to diff View file |
A | plugins/gitlab/include/Group/Token/GroupTokenInserter.php | +48 | −0 | Go to diff View file |
A | plugins/gitlab/include/Group/Token/InsertGroupToken.php | +31 | −0 | Go to diff View file |
M | plugins/gitlab/include/REST/v1/GitlabGroupResource.php | +22 | −7 | Go to diff View file |
M | plugins/gitlab/include/Repository/CreateGitlabRepositories.php | +7 | −7 | Go to diff View file |
A | plugins/gitlab/include/Repository/GitlabRepositoryAlreadyIntegratedDao.php | +32 | −0 | Go to diff View file |
M | plugins/gitlab/include/Repository/GitlabRepositoryCreator.php | +2 | −25 | Go to diff View file |
A | plugins/gitlab/include/Repository/GitlabRepositoryGroupLinkHandler.php | +95 | −0 | Go to diff View file |
M | plugins/gitlab/include/Repository/GitlabRepositoryIntegrationDao.php | +1 | −1 | Go to diff View file |
A | plugins/gitlab/include/Repository/HandleGitlabRepositoryGroupLink.php | +50 | −0 | Go to diff View file |
M | plugins/gitlab/include/Repository/Token/IntegrationApiToken.php | +2 | −1 | Go to diff View file |
M | plugins/gitlab/include/Repository/Webhook/Bot/InvalidCredentialsNotifier.php | +4 | −1 | Go to diff View file |
A | plugins/gitlab/tests/unit/API/Group/GitlabGroupApiDataRepresentationTest.php | +81 | −0 | Go to diff View file |
A | plugins/gitlab/tests/unit/API/Group/GitlabGroupInformationRetrieverTest.php | +82 | −0 | Go to diff View file |
A | plugins/gitlab/tests/unit/Group/GitlabRepositoryGroupLinkHandlerTest.php | +100 | −0 | Go to diff View file |
M | plugins/gitlab/tests/unit/Group/GroupCreatorTest.php | +39 | −69 | Go to diff View file |
M | plugins/gitlab/tests/unit/REST/v1/BotApiTokenUpdaterTest.php | +4 | −4 | Go to diff View file |
M | plugins/gitlab/tests/unit/Repository/GitlabRepositoryCreatorTest.php | +1 | −93 | Go to diff View file |
M | plugins/gitlab/tests/unit/Repository/Webhook/Bot/CredentialsRetrieverTest.php | +1 | −1 | Go to diff View file |
A | plugins/gitlab/tests/unit/Test/Stubs/BuildGitlabGroupStub.php | +44 | −0 | Go to diff View file |
M | plugins/gitlab/tests/unit/Test/Stubs/BuildGitlabProjectsStub.php | +0 | −8 | Go to diff View file |
M | plugins/gitlab/tests/unit/Test/Stubs/CreateGitlabRepositoriesStub.php | +21 | −24 | Go to diff View file |
A | plugins/gitlab/tests/unit/Test/Stubs/GitlabRepositoryAlreadyIntegratedDaoStub.php | +48 | −0 | Go to diff View file |
A | plugins/gitlab/tests/unit/Test/Stubs/HandleGitlabRepositoryGroupLinkStub.php | +69 | −0 | Go to diff View file |
A | plugins/gitlab/tests/unit/Test/Stubs/InsertGroupTokenStub.php | +52 | −0 | Go to diff View file |
A | plugins/gitlab/tests/unit/Test/Stubs/RetrieveGitlabGroupInformationStub.php | +64 | −0 | Go to diff View file |