Skip to content

Show anchors in cleanup image tags regex input fields

What does this MR do and why?

Show anchors in cleanup image tags regex input fields

In !157888 (merged) we added info alert in the clean up tags settings page to reinforce what's mentioned in the docs about regex expressions.

To address UX suggestion, this MR uses GlFormInputGroup to append and prepend regex anchors.

Corresponding code in the backend

This allows us to remove the redundant alert.

Changelog: added

References

Please include cross links to any resources that are relevant to this MR This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
Screenshot_2024-11-13_at_2.38.05_PM Screenshot_2024-11-13_at_2.29.00_PM

How to set up and validate locally

  1. Setup & enable Container Registry https://gitlab.com/gitlab-org/gitlab-development-kit/-/blob/main/doc/howto/registry.md
  2. Visit Project > Settings > Packages & Registries
  3. Click on Set cleanup rules
  4. Confirm that input fields have regex anchors appended & prepended
  5. Confirm that alert is not displayed

Related to #470925 (closed)

Edited by Rahul Chanila

Merge request reports

Loading