From 99ee1ae0e57b9ca71711462d2c183044b539ed9f Mon Sep 17 00:00:00 2001 From: Steve Abrams Date: Fri, 26 Aug 2022 09:31:28 -0600 Subject: [PATCH] UpdateDependencyProxySettings permissions warning Update graphql docs to warn users Owner permissions will be required to mutate UpdateDependencyProxySettings in 16.0. --- .../mutations/dependency_proxy/group_settings/update.rb | 5 +++++ doc/api/graphql/reference/index.md | 2 ++ 2 files changed, 7 insertions(+) diff --git a/app/graphql/mutations/dependency_proxy/group_settings/update.rb b/app/graphql/mutations/dependency_proxy/group_settings/update.rb index 65c919db3c322e..6be07edd883a88 100644 --- a/app/graphql/mutations/dependency_proxy/group_settings/update.rb +++ b/app/graphql/mutations/dependency_proxy/group_settings/update.rb @@ -8,6 +8,11 @@ class Update < Mutations::BaseMutation include Mutations::ResolvesGroup + description 'These settings can be adjusted by the group Owner or Maintainer. However, in GitLab 16.0, we ' \ + 'will be limiting this to the Owner role. ' \ + '[GitLab-#364441](https://gitlab.com/gitlab-org/gitlab/-/issues/364441) proposes making ' \ + 'this change to match the permissions level in the user interface.' + authorize :admin_dependency_proxy argument :group_path, diff --git a/doc/api/graphql/reference/index.md b/doc/api/graphql/reference/index.md index 7698cbc817871a..d7f14371e1f4ea 100644 --- a/doc/api/graphql/reference/index.md +++ b/doc/api/graphql/reference/index.md @@ -5119,6 +5119,8 @@ Input type: `UpdateDependencyProxyImageTtlGroupPolicyInput` ### `Mutation.updateDependencyProxySettings` +These settings can be adjusted by the group Owner or Maintainer. However, in GitLab 16.0, we will be limiting this to the Owner role. [GitLab-#364441](https://gitlab.com/gitlab-org/gitlab/-/issues/364441) proposes making this change to match the permissions level in the user interface. + Input type: `UpdateDependencyProxySettingsInput` #### Arguments -- GitLab