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
path: root/ruby
diff options
context:
space:
mode:
authorPavlo Strokov <pstrokov@gitlab.com>2021-07-29 14:43:18 +0300
committerPavlo Strokov <pstrokov@gitlab.com>2021-07-29 17:10:19 +0300
commit1a79647c0140fb94387859b8b042cedc312af7da (patch)
tree5c844afa95d935117961f535e5c81462d2aecade /ruby
parent241290c104d58ebb88d01bc9704fd94d4e705ab2 (diff)
gitaly: Sort the tags returned by FindAllTags RPC
The gitlab uses FindAllTags to fetch all tags and it requires to do sorting in-memory after fetch. By this change we provide ability to sort tags on the gitaly side by: tag name or creation date in ascending or descending order. The default remains the same as if no sorting requested - sort by tag name, so it should not affect any existing clients. Closes: https://gitlab.com/gitlab-org/gitaly/-/issues/3592 Changelog: added
Diffstat (limited to 'ruby')
-rw-r--r--ruby/proto/gitaly/ref_pb.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/ruby/proto/gitaly/ref_pb.rb b/ruby/proto/gitaly/ref_pb.rb
index b2a833d12..4d9bf14f4 100644
--- a/ruby/proto/gitaly/ref_pb.rb
+++ b/ruby/proto/gitaly/ref_pb.rb
@@ -98,8 +98,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
optional :direction, :enum, 2, "gitaly.SortDirection"
end
add_enum "gitaly.FindAllTagsRequest.SortBy.Key" do
- value :NAME, 0
- value :UPDATED, 1
+ value :REFNAME, 0
+ value :CREATORDATE, 1
end
add_message "gitaly.FindAllTagsResponse" do
repeated :tags, :message, 1, "gitaly.Tag"