stable

Clone or download

Read-only

Fix integration_id value stored in

plugin_gitlab_group_repository_integration Part of story #26799 associate a Tuleap project and a GitLab group To be consistent with app, The integration_id column from plugin_gitlab_group_repository_integration should contains the id of the integration from the Tuleap side and not the Id of the Gitlab project. This contribution will delete all the link between the repository integration and a group How to test: - make dev-forgeupgrade - Synchronize the group link via the REST route. => integration_id column should contain the value the integration id and not the Gitlab project id anymore. If you create a new Group link, the value inb the DB should still be consistent and contains the integration id also. Change-Id: I9ae61d873d2a76a0c9cc66444b1c23e8fdd17bbc

Modified Files

Name
A plugins/gitlab/db/mysql/2022/202210101103_delete_stored_group_link.php +34 −0 Go to diff View file
M plugins/gitlab/include/REST/v1/GitlabGroupResource.php +9 −4 Go to diff View file
M plugins/gitlab/include/Repository/GitlabProjectIntegrator.php +10 −18 Go to diff View file
M plugins/gitlab/include/Repository/GitlabRepositoryGroupLinkHandler.php +11 −13 Go to diff View file
M plugins/gitlab/include/Repository/GitlabRepositoryIntegrationDao.php +17 −1 Go to diff View file
A plugins/gitlab/include/Repository/RepositoryIntegrationNotFoundFault.php +38 −0 Go to diff View file
A plugins/gitlab/include/Repository/RepositoryIntegrationRetriever.php +67 −0 Go to diff View file
A plugins/gitlab/include/Repository/RetrieveIntegrationDao.php +34 −0 Go to diff View file
M plugins/gitlab/tests/unit/Group/GitlabRepositoryGroupLinkHandlerTest.php +12 −9 Go to diff View file
M plugins/gitlab/tests/unit/Group/GroupCreatorTest.php +6 −3 Go to diff View file
M plugins/gitlab/tests/unit/Repository/GitlabProjectIntegratorTest.php +11 −8 Go to diff View file
A plugins/gitlab/tests/unit/Repository/RepositoryIntegrationRetrieverTest.php +67 −0 Go to diff View file
A plugins/gitlab/tests/unit/Test/Stubs/RetrieveIntegrationDaoStub.php +63 −0 Go to diff View file