%li Be careful. Changing a group's parent can have unintended #{link_to'side effects','https://docs.gitlab.com/ce/user/project/index.html#redirects-when-changing-repository-paths',target: 'blank'}.
%li You can only transfer the group to a group you manage.
%li You will need to update your local repositories to point to the new location.
%li If the parent group's visibility is lower than the group current visibility, visibility levels for subgroups and projects will be changed to match the new parent group's visibility.
From 10.5 there are two different ways to transfer a group:
- Either by transferring a group into another group (making it a subgroup of that group).
- Or by converting a subgroup into a root group (a group with no parent).
Please make sure to understand that:
- Changing a group's parent can have unintended side effects. See [Redirects when changing repository paths](https://docs.gitlab.com/ce/user/project/index.html#redirects-when-changing-repository-paths)
- You can only transfer the group to a group you manage.
- You will need to update your local repositories to point to the new location.
- If the parent group's visibility is lower than the group current visibility, visibility levels for subgroups and projects will be changed to match the new parent group's visibility.
## Group settings
## Group settings
Once you have created a group, you can manage its settings by navigating to
Once you have created a group, you can manage its settings by navigating to
allow_any_instance_of(::Groups::TransferService).toreceive(:proceed_to_transfer).and_raise(Gitlab::UpdatePathError,'namespace directory cannot be moved')
put:transfer,
id: group.to_param,
new_parent_group_id: new_parent_group.id
end
it'should return an alert'do
expect(flash[:alert]).toeq"Transfer failed: namespace directory cannot be moved"
end
it'should redirect to the current path'do
expect(response).torender_template(:edit)
end
end
context'when the user is not allowed to transfer the group'do