Skip to content

Container Registry Details: split details from tags call

What does this MR do?

This MR splits the big graphql call that is normally done on page load in two chunks:

  1. load the image details (enough to populate the header of the page)
  2. load the tags (slow call that can sometimes take up to 10 minutes)

To achieve so the tags_list component has been promoted to a chonky component and given it's own apollo query to handle.

Screencap

With Tags count

SplitTagsCall

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • [-] 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

How to test locally

  1. Ensure the container registry is running in your gdk guide
  2. Locally checkout this repository: https://gitlab.com/nmezzopera/container-factory
  3. Enter in the repository and issue the command: ./publish.sh /gitlab-org/gitlab-test 20 5 172.16.123.1:5000 (change the last IP address to match your localhost/gdk associated address)
  4. Navigate to gitlab-org/gitlab-test => Container Registry, click on one of the newly created images

Related to #296962 (closed)

Edited by Nicolò Maria Mezzopera

Merge request reports