Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Steinhardt <psteinhardt@gitlab.com>2022-06-13 15:26:46 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2022-06-13 15:26:46 +0300
commit93d46d0be8467aa4849f981d390357d6a3491420 (patch)
treedf8d7d803487ffd6921188b75e247ee4f92d9f76 /ruby/proto
parenta927e68129e9563735cd248c1eebaa2def766033 (diff)
parent30d4fd427fc63daef560f1608b3833b827ab54ac (diff)
Merge branch 'pks-user-delete-branch-structured-errors' into 'master'
operations: Use structured errors in UserDeleteBranch See merge request gitlab-org/gitaly!4605
Diffstat (limited to 'ruby/proto')
-rw-r--r--ruby/proto/gitaly/operations_services_pb.rb11
1 files changed, 8 insertions, 3 deletions
diff --git a/ruby/proto/gitaly/operations_services_pb.rb b/ruby/proto/gitaly/operations_services_pb.rb
index b71684ee1..c7e22ac03 100644
--- a/ruby/proto/gitaly/operations_services_pb.rb
+++ b/ruby/proto/gitaly/operations_services_pb.rb
@@ -28,9 +28,14 @@ module Gitaly
#
# - Returns `InvalidArgument` in case either the branch name or user are not set.
# - Returns `FailedPrecondition` in case the branch does not exist.
- # - Returns `OK` with a `PreReceiveError` in case custom hooks refused the update.
- # - Returns `FailedPrecondition` in case updating the reference fails because of a concurrent
- # write to the same reference.
+ # - Returns `OK` with a `PreReceiveError` in case custom hooks refused the update. If the
+ # `gitaly_user_delete_branch_structured_errors` feature flag is enabled this error case will
+ # instead return `PermissionDenied` with either a `CustomHook` or AccessCheck` structured
+ # error.
+ # - Returns `FailedPrecondition` in case updating the reference fails because
+ # of a concurrent write to the same reference. If the
+ # `gitaly_user_delete_branch_structured_errors` feature flag is set this error case will
+ # instead return `FailedPrecondition` with a `ReferenceUpdate` structured error.
rpc :UserDeleteBranch, ::Gitaly::UserDeleteBranchRequest, ::Gitaly::UserDeleteBranchResponse
# UserCreateTag creates a new tag.
rpc :UserCreateTag, ::Gitaly::UserCreateTagRequest, ::Gitaly::UserCreateTagResponse