Skip to content

Use Gitaly API to sort tags

Vasilii Iakliushin requested to merge 299529_use_gitaly_sort_for_tags into master

What does this MR do?

Contributes to #299529 (closed)

Problem

We use Ruby to sort tags received from Gitaly. It is slower than Gitaly sorting.

Solution

Provide sort parameter to Gitaly API and receive already sorted tags.

Screenshots or Screencasts (strongly suggested)

Before

Screenshot_2021-08-31_at_16.06.33

After

Screenshot_2021-08-31_at_16.06.41

How to setup and validate locally (strongly suggested)

Endpoint to test:

GET /api/v4/projects/<project>/repository/tags

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Marc Shaw

Merge request reports

Loading