Skip to content

Updates container registry project settings

What does this MR do and why?

Third MR to move container registry cleanup policies to a separate page.

This MR deals with updating the settings page to link to the new cleanup image tags page.

Iteration MR
Adds new route Adds new route to show cleanup image tag settings (!94988 - merged)
Copy container cleanup form Copies container registry cleanup form to new page (!96219 - merged)
Update settings page to link new route This MR
Redirect to settings page when saved or canceled Adds redirection when cleanup policy is saved (!97085 - merged)

Screenshots or screen recordings

With cleanup policies disabled

Screen_Shot_2022-09-02_at_2.40.42_am

With cleanup policies enabled

Screen_Shot_2022-09-02_at_2.41.03_am

Clicking on link should redirect to /cleanup_image_tags

Screen_Shot_2022-08-25_at_1.58.34_pm

How to set up and validate locally

  1. Enable container registry in GDK https://gitlab.com/gitlab-org/gitlab-development-kit/-/blob/main/doc/howto/registry.md
  2. Login as admin
  3. Visit any project.
  4. Visit Settings > Packages & Registries on the sidebar
  5. A link to Set cleanup rules should be visible as per screenshot above & clicking on the link should take you to /cleanup_image_tags page
  6. Enable the rules & visit the settings page again
  7. The link should now read Edit cleanup rules

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #363426 (closed)

Edited by Rahul Chanila

Merge request reports