diff options
author | Vasilii Iakliushin <viakliushin@gitlab.com> | 2021-10-13 14:21:18 +0300 |
---|---|---|
committer | Vasilii Iakliushin <viakliushin@gitlab.com> | 2021-10-20 15:41:42 +0300 |
commit | 27b02714920d8ba8b451eb26d19395e7f692589b (patch) | |
tree | 05a550bfd4618c59a02e6553178d693be00843b4 /proto/ref.proto | |
parent | aec413230e6bce8782ae72d95d2d3cb312ebe923 (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.proto | 5 |
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 { |