Add Gitaly-based search for tags

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Problem

The search for tags is implemented in the Rails application. That means that we have to request all tags from the Gitaly and then select matching tags from the result. It affects the performance of the Tags API.

Related issue for branches: Add Gitaly-based search for branches (#372053 - closed)

Solution

  1. Extend Gitaly code to support search patterns from Rails
  2. Send search parameter to the Gitaly instead of performing the search on Rails side.

Implementation Plan

Issue Repo Team Milestone Status
1 Spike GitLab Source Code 19.3 ✅
2 --ignore-case in ListRefs negates the performance benefit of Gitaly-side ref search Gitaly Gitaly N
3 Expose creator date on ListRefs references Gitaly Source Code N
4 Migrate Tags API search to Gitaly-side ListRefs GitLab Source Code N+1 (blocked by 2)
5 Migrate Tags API listing (non-search) to Gitaly-side TagsFinder via ListRefs GitLab Source Code N+1 (blocked by 3)
Edited by Emma Park