Allow configuring git access protocol via Groups API
Contributes to https://gitlab.com/gitlab-org/gitlab/-/issues/436618 **Problem** We allow to configure Git access protocol via UI. Implemented in https://gitlab.com/gitlab-org/gitlab/-/merge_requests/89817. But this functionality is not available at REST API level. **Solution** * Expose `enabled_git_access_protocol` value in the API response. * Allow to provide `enabled_git_access_protocol` for POST/PUT requests. * Verify that user has permissions to set the field * Verify that the field is set for root group Changelog: added
显示
- app/policies/group_policy.rb 1 个添加, 0 个删除app/policies/group_policy.rb
- app/services/namespace_settings/update_service.rb 4 个添加, 0 个删除app/services/namespace_settings/update_service.rb
- doc/api/groups.md 5 个添加, 1 个删除doc/api/groups.md
- lib/api/entities/group_detail.rb 1 个添加, 0 个删除lib/api/entities/group_detail.rb
- lib/api/helpers/groups_helpers.rb 1 个添加, 0 个删除lib/api/helpers/groups_helpers.rb
- spec/lib/api/entities/group_detail_spec.rb 39 个添加, 7 个删除spec/lib/api/entities/group_detail_spec.rb
- spec/requests/api/groups_spec.rb 30 个添加, 0 个删除spec/requests/api/groups_spec.rb
- spec/services/namespace_settings/update_service_spec.rb 1 个添加, 0 个删除spec/services/namespace_settings/update_service_spec.rb
- spec/support/shared_contexts/policies/group_policy_shared_context.rb 1 个添加, 0 个删除...t/shared_contexts/policies/group_policy_shared_context.rb
加载中
想要评论请 注册 或 登录