Add updated hook to packages shared title area component
What does this MR do and why?
Why
Cleanup title area shared registry component (!128055 - merged) has caused ~bug where container registry images count are not displayed.
What
Add back updated
hook which recalculates slots in the title-area
component.
This reverts behaviour & tests removed in Cleanup title area shared registry component (!128055 - merged).
We could add the v-if
to the element instead of the template but that causes Fix alignment of Expiration policy text when th... (#361319 - closed) so reverting behaviour instead.
Screenshots or screen recordings
Page | Before | After |
---|---|---|
Group | ||
Project |
How to set up and validate locally
Images list
- Setup & enable Container Registry https://gitlab.com/gitlab-org/gitlab-development-kit/-/blob/main/doc/howto/registry.md
- Follow steps in https://gitlab.com/gitlab-org/ci-cd/package-stage/package/-/wikis/Packages-Tips-&-Tricks#how-to-add-images-with-tags-quickly-to-the-registry
- Run the following in the terminal
$ ./publish.sh <project-path> 2 10 127.0.0.1:5000 # creates 10 images with 2 tags each
- Visit the container registry list page for the project
<group-name>/<project-name>/container_registry
and confirm10 Image repositories
is shown. - Visit the container registry list page for the group
groups/<group-name>/-/container_registries
and confirm10 Image repositories
count is shown.
Tags list
- After following previous instructions, visit the container registry list page for the project
- Clicking one of the images should take you the tags list(details) page
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #413395 (closed)
Edited by Rahul Chanila