Investigate performance implications of sorting images/tags in the container registry by `last updated`
Problem to solve
The GitLab Container Registry allows users to build, push and discover Docker images/tags alongside their source code and CI pipelines. From
/container_registry users can view a list of images/tags, find and copy the path, and remove images/tags.
However, the list currently is sorted by
Tag name not
Last updated. This is problematic for users that often push images using GitLab CI and use GitLab's pre-defined variables (e.g.
CI_COMMIT_SHA, CI_COMMIT_REF_NAME) for their tag names, as it makes it difficult to find and manage images/tags in the container registry.
As seen in the comments of this issue, there are significant performance concerns for updating the default sort to
Value for users
Based on our recent round of user research, sorting by tag name is not helpful at all for users. Introducing sorting, even if it's only for cases with less than 10 images will still help improve user experience and sentiment.
Example of sorting problem
This will not solve the problem for projects with many images or even enough to warrant pagination. This is a first step until we can tackle the core problem of storing data vs. fetching data via the Docker API.
Investigate introducing sorting by
Last Updated for the container registry.
- What is the difference in performance between sorting by name vs. last updated?
- With how many images do we see a significant degradation in performance?
- Is it possible to only sort by last updated if there are less than 'n' images? Once we know what's possible, we can decide if it's valuable.
Permissions and Security
- There are no permissions changes required for this issue.
- There are no documentation changes required for this issue.
What does success look like, and how can we measure that?
Success looks like users are able to easily find their images from the container registry. We can measure this by following up with users who have complained about the current default sorting.