Return a pagination cursor from `FindLocalBranchesRequest`
Similar issue for tags: Return a pagination cursor from `FindAllTagsReq... (#431904)
Problem
FindLocalBranches
RPC already supports pagination parameters.
But it doesn't respond with a next pagination cursor, as GetTreeEntriesResponse
for example.
Because of that the cursor generation logic is implemented twice: by Rails and by Gitaly.
Proposal
- Use Gitaly as a SSOT for pagination cursor generation.
- Extend
FindLocalBranchesResponse
to returnPaginationCursor
. - Update Rails code to use Gitaly cursor instead of building it manually.
Edited by Vasilii Iakliushin