Add MVC preview functionality to existing Container Registry cleanup policies UI
Context
This MVC is the first step towards a redesigned container registry cleanup policy UI (issue). This issue proposes adding preview functionality to the existing UI.
Problem to solve
When setting cleanup policies for the container registry, it's not possible preview how the policies you have set will be executed.
User experience goal
The user should be able to test and verify the expiration policy settings without waiting for another tag expiration loop.
Technical constraints
For the MVC, the following technical constraints exist:
- We can only show a preview of tags to be deleted from one image repository at a time
- We will load only 50 results (5 pages) per image repository. This means that per image repository, we may not show the full list of of tags to be cleaned up. If we were able to deliver 100 results, we would have a complete dry run for 95% for users.
Proposal
- Add the preview functionality to the existing cleanup UI
- After a user sets a rule, they can select from a list of image repositories to preview changes
- When they select an image repository, the backend returns a maximum of 50 tags to be deleted
- The user can change the image repository to see the effect of the cleanup on another image repository
Design
- Figma
- In design management |
Implementation questions
- Would it be possible to have a "run cleanup now" for the MVC?
- Rather than returning only 50 results per image repository, could we return 100? That would give a complete preview for 95% of people.
- If there is only one image repository in the project, is it possible to pre-select it?
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.