Skip to content

Sort the container registry tags list by publish date

Context

You use the Container Registry to publish and share your images and tags. You can use the GitLab UI to view a list of images and their respective tags.

Problem to solve

The problem is that you often name your tags with a SHA value which makes sorting by name not that useful. What you'd really like to be able to do is sort by the publish date. This will allow you to quickly find the tag you are looking for.

Proposal

  • For users of ~SaaS only, the list of tags will be sortable by when the tag was last published;
  • Sorting when the page is first loaded is defaulted to date in order of most recent -> least recent

For example:

  • I pushed tag-name-0 and tag-name-2 3 months ago.
  • I re-pushed tag-name-0 2 minutes ago.
  • The UI looks like this:

Screen_Shot_2022-08-31_at_18.52.57

Related issues

This page may contain information related to upcoming products, features and functionality. It is important to note that the information presented is for informational purposes only, so please do not rely on the information for purchasing or planning purposes. Just like with all projects, the items mentioned on the page are subject to change or delay, and the development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab Inc.

Implementation guide

backend golang

backend rails

  • Update the client to add a new option to send a sort param to the registry
  • Update GraphQL with a sort option and to use the new client with pagination (this may be covered in other issues in the epic).
  • Pass an attribute to the frontend so it knows if this feature is allowed.
  • If updated_at is null in registry use the created_at

frontend

Edited by Rahul Chanila