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:
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 /proto/ref.proto
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 'proto/ref.proto')
-rw-r--r--proto/ref.proto4
1 files changed, 2 insertions, 2 deletions
diff --git a/proto/ref.proto b/proto/ref.proto
index 0bc6d4d46..b53281955 100644
--- a/proto/ref.proto
+++ b/proto/ref.proto
@@ -240,8 +240,8 @@ message FindAllTagsRequest {
message SortBy {
// Key is a key used for sorting.
enum Key {
- NAME = 0;
- UPDATED = 1;
+ REFNAME = 0;
+ CREATORDATE = 1;
}
Key key = 1;