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:
authorVasilii Iakliushin <viakliushin@gitlab.com>2021-10-13 14:21:18 +0300
committerVasilii Iakliushin <viakliushin@gitlab.com>2021-10-20 15:41:42 +0300
commit27b02714920d8ba8b451eb26d19395e7f692589b (patch)
tree05a550bfd4618c59a02e6553178d693be00843b4 /proto/ref.proto
parentaec413230e6bce8782ae72d95d2d3cb312ebe923 (diff)
Add pagination support for FindAllTags RPC
Contributes to https://gitlab.com/gitlab-org/gitlab/-/issues/340591 **Problem** FindAllTags request does not support pagination parameters. Lack of pagination causes performance issues for repositories with many tags. **Solution** Add pagination parameter support similar to what we use for FindLocalBranches. Changelog: added
Diffstat (limited to 'proto/ref.proto')
-rw-r--r--proto/ref.proto5
1 files changed, 5 insertions, 0 deletions
diff --git a/proto/ref.proto b/proto/ref.proto
index 60ed54658..1b55c19f1 100644
--- a/proto/ref.proto
+++ b/proto/ref.proto
@@ -223,6 +223,11 @@ message FindAllTagsRequest {
// SortBy allows to request tags in particular order.
SortBy sort_by = 2;
+
+ // The page token is the tags name, with the `refs/tags/` prefix, for
+ // example "refs/tags/v1.0.0". When the tag name matches the page token,
+ // the tag following it will be the first result send as part of the response.
+ PaginationParameter pagination_params = 3;
}
message FindAllTagsResponse {