Skip to content

Copies container registry cleanup form to new page

What does this MR do and why?

Second MR to move container registry cleanup policies to a single page.

Iteration MR
Adds new route Adds new route to show cleanup image tag settings (!94988 - merged)
Copy container cleanup form This MR
Update settings page to link new route TBD

Copies code from existing cleanup form including unit & feature tests.

The form exists in 2 places for the timebeing & this URL is not directly linked & can only be visited via the URL.

The behavior to redirect the page when saved or canceled will be implemented in next MR.

Therefore, I've skipped adding the Changelog entry.

Screenshots or screen recordings

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 & then append /cleanup_image_tags to the URL should return above screenshot.
  5. Should be able to modify the settings & not see any errors.

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