stable

Clone or download

Read-only

refactor: Group update is separated from REST

Part of story #26799 associate a Tuleap project and a GitLab group No functional change expected on the PATCH gitlab_groups/:id route Notes: The GroupLinkUpdateHandler is now completely abstracted from REST. The GitlabGroupResource is responsible for mapping inputs and outputs, but otherwise has no logic (for this route). Change-Id: Icc7870c06506e5f62420e8e4a172c712a7d4fed0

Modified Files

Name
A plugins/gitlab/include/Group/GroupLinkNotFoundFault.php +36 −0 Go to diff View file
A plugins/gitlab/include/Group/GroupLinkRetriever.php +47 −0 Go to diff View file
A plugins/gitlab/include/Group/GroupLinkUpdateHandler.php +58 −0 Go to diff View file
M plugins/gitlab/include/Group/GroupUpdator.php +26 −36 Go to diff View file
A plugins/gitlab/include/Group/InvalidBranchPrefixFault.php +36 −0 Go to diff View file
A plugins/gitlab/include/Group/UpdateGroupLinkCommand.php +37 −0 Go to diff View file
M plugins/gitlab/include/REST/v1/FaultMapper.php +4 −1 Go to diff View file
M plugins/gitlab/include/REST/v1/GitlabGroupResource.php +23 −24 Go to diff View file
A plugins/gitlab/tests/unit/Group/GroupLinkUpdateHandlerTest.php +90 −0 Go to diff View file
M plugins/gitlab/tests/unit/Group/GroupUpdatorTest.php +51 −35 Go to diff View file
M plugins/gitlab/tests/unit/REST/v1/FaultMapperTest.php +4 −0 Go to diff View file
M plugins/gitlab/tests/unit/Test/Builder/GroupLinkBuilder.php +12 −0 Go to diff View file
A plugins/gitlab/tests/unit/Test/Stubs/RetrieveGroupLinkStub.php +51 −0 Go to diff View file
A plugins/gitlab/tests/unit/Test/Stubs/UpdateArtifactClosureOfGroupStub.php +49 −0 Go to diff View file
A plugins/gitlab/tests/unit/Test/Stubs/UpdateBranchPrefixOfGroupStub.php +47 −0 Go to diff View file