Skip to content

Protected containers: Enable multi-line error messages in settings UI

What does this MR do and why?

🛠 with at Siemens

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.

MR Checklist (@gerardo-navarro)

Screenshots or screen recordings

Before After
grafik grafik

How to set up and validate locally

  1. Enable Registry by editting config/gitlab.yml with the following setting
registry:
  enabled: true
  1. Restart GDK, see also https://docs.gitlab.com/ee/administration/packages/container_registry.html#configure-container-registry-under-an-existing-gitlab-domain
gdk restart
  1. In rails console enable the experiment fully
Feature.enable(:container_registry_protected_containers)
  1. Go to http://gdk.test:3000/flightjs/Flight/-/settings/packages_and_registries
  2. In the section "Protected containers", click the button "Add protection rule" => a new form appears
  3. In the field "Repository path pattern", type the following value asd!
  4. Click the button "Add rule"
  5. You should now see the errors in two lines instead of just one line.
Edited by Gerardo Navarro

Merge request reports