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:
- load the image details (enough to populate the header of the page)
- 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
Does this MR meet the acceptance criteria?
Conformity
-
📋 Does this MR need a changelog?-
I have included a changelog entry. -
I have not included a changelog entry because _____.
-
- [-] Documentation (if required)
-
Code review guidelines -
Merge request performance guidelines -
Style guides - [-] Database guides
- [-] Separation of EE specific content
Availability and Testing
-
Review and add/update tests for this feature/bug. Consider all test levels. See the Test Planning Process. -
Tested in all supported browsers - [-] Informed Infrastructure department of a default or new setting change, if applicable per definition of done
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
- Ensure the container registry is running in your gdk guide
- Locally checkout this repository: https://gitlab.com/nmezzopera/container-factory
- 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) - 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