Update the default sort order of the image repository list

Release post

Have you ever navigated to the GitLab Container Registry user interface and had trouble finding the container image you are looking for? This may be due to an unintended consequence of some performance improvements we've been making.

We recently refactored the user interface from controller-based to GraphQL and this changed the default sort order for your image repositories from ascending to descending. (Sorry about that)

To address this we've added ordering to the GraphQL API. In this milestone, we've addressed the sort order for the image repository list. Next milestone, we'll address the tags list.

Problem to solve

In !48602 (merged) we refactored our API from controller-based to GraphQL based, this changed the way how we order our image repositories, moving from ascending order to a descending.

Proposal

Add ordering to the GraphQL endpoint that powers the image repository list in the Container Registry user interface.

  • Add ordering to the project and group graphql queries
  • Add a sorting element in the UI

Future iterations

  • Sort the image tags list in descending order and allow the user to change to ascending. #15489 (closed)
Edited Jan 13, 2021 by Tim Rizzi
Assignee Loading
Time tracking Loading