stable

Clone or download

Read-only

refactor: rebuild the plugin_gitlab_group table

Part of story #26799 associate a Tuleap project and a GitLab group How to test: - run `make dev-forgeupgrade`. âš  If you had data in the `plugin_gitlab_group`, it will be erased! - Try the REST route with the API explorer. It should succeed if you give it valid parameters. There should be a new row in plugin_gitlab_group table. Notes: `project_id` is added so that we have a way to link the GitLab group to the Tuleap project. Without it, it's hard to tell whether a given Tuleap project is linked to any group or not. Given that the REST route is the only way to fill this table, and the REST route is behind a feature flag, I assumed that the only users would be developers. Thus, I did not attempt to write a db migration, the basic tactic of "drop + create" is used and data will be lost. `prefix_branch_name` is renamed to `create_branch_prefix` to have consistent naming with `plugin_gitlab_repository_integration_create_branch_prefix` table. Change-Id: I9ccbad04d2e1af199674538c8a3700d9b1cb7b50

Modified Files

Name
M plugins/gitlab/db/install.sql +5 −4 Go to diff View file
A plugins/gitlab/db/mysql/2022/202209091550_recreate_group_table.php +51 −0 Go to diff View file
M plugins/gitlab/include/API/Group/GitlabGroupApiDataRepresentation.php +3 −0 Go to diff View file
M plugins/gitlab/include/Group/BuildGitlabGroup.php +1 −1 Go to diff View file
M plugins/gitlab/include/Group/GitlabGroup.php +1 −1 Go to diff View file
M plugins/gitlab/include/Group/GitlabGroupDAO.php +3 −2 Go to diff View file
M plugins/gitlab/include/Group/GitlabGroupFactory.php +1 −1 Go to diff View file
R plugins/gitlab/include/Group/GitlabGroupDBInsertionRepresentation.php Go to diff View file
M plugins/gitlab/include/Repository/GitlabRepositoryGroupLinkHandler.php +6 −5 Go to diff View file
M plugins/gitlab/include/Repository/HandleGitlabRepositoryGroupLink.php +1 −1 Go to diff View file
A plugins/gitlab/tests/unit/Group/NewGroupTest.php +61 −0 Go to diff View file
M plugins/gitlab/tests/unit/Test/Stubs/BuildGitlabGroupStub.php +2 −2 Go to diff View file
M plugins/gitlab/tests/unit/Test/Stubs/HandleGitlabRepositoryGroupLinkStub.php +1 −1 Go to diff View file