stable

Clone or download

Read-only

feat: Edit GitLab group link artifact closure using REST

This is part of story #26799 associate a Tuleap project and a GitLab group The artifact closure of a linked GitLab group can now be updated using the REST endpoint PATCH gitlab_groups/:id with a json payload like: { "allow_artifact_closure": true } The update must only be done by a Git administrator. Note: Both parameters "allow_artifact_closure" & "create_branch_prefix" can be updated in the same query. Change-Id: Ib1659b1c97cf9ae8af62e04b152efb3d91ab5be7

Modified Files

Name
M plugins/gitlab/include/Group/GitlabGroupDAO.php +10 −1 Go to diff View file
M plugins/gitlab/include/Group/GroupUpdator.php +39 −4 Go to diff View file
A plugins/gitlab/include/Group/UpdateArtifactClosureOfGroup.php +31 −0 Go to diff View file
M plugins/gitlab/include/REST/v1/GitlabGroupResource.php +16 −1 Go to diff View file
M plugins/gitlab/include/REST/v1/Group/GitlabGroupPATCHRepresentation.php +9 −4 Go to diff View file
M plugins/gitlab/tests/rest/DatabaseInitialization.php +1 −1 Go to diff View file
M plugins/gitlab/tests/rest/Gitlab/GroupTest.php +38 −0 Go to diff View file
M plugins/gitlab/tests/unit/Group/GroupUpdatorTest.php +37 −11 Go to diff View file