Skip to content

GraphQL: Allow sorting of container repository tags by version

What does this MR do and why?

Allow sorting of container repository tags by using a 'version' oriented algorithm.

When sorting tags lexically, strings such as v0.2 are considered 'newer' then v0.10 because lexically, 2 > 1, but in truth, 10 > 2 of course.

As I'm not familiar with the code base, I used as input the VERSION_* sorting orders used int he package repo, and replicated that to the tag-sort enum, so this may be al wrong.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports