Modify package registry project settings section with feature flag

What does this MR do and why?

Updates project package registry settings components to render card layout based on feature flag.

Adds feature tests for packages protection rules

EE: true

Changelog is not required since these changes are under a feature flag.

Note: Since this MR is quite big already, changes are focused only on the Package registry section. Container registry section is being updated in Modify container registry project settings sect... (!175502 - merged).

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.

With feature flag turned off Before Layout: No packages protection rules Layout: Packages protection rules with pagination
172.16.123.1_3000_kalcifer_vue-interpolation-component_-settings_packages_and_registries__2 172.16.123.1_3000_kalcifer_vue-interpolation-component_-settings_packages_and_registries__1 172.16.123.1_3000_kalcifer_vue-interpolation-component_-_settings_packages_and_registries 172.16.123.1_3000_kalcifer_test_-_settings_packages_and_registries

How to set up and validate locally

  1. To see the Dependency proxy section, run GDK in SAAS mode

  2. (Optional) Setup container registry

  3. Visit Project > Settings > Packages and registries.

  4. In rails console enable the experiment fully

    Feature.enable(:reorganize_project_level_registry_settings)
  5. Confirm that Package registry section looks like the one in screenshot & the settings are usable.

Related to #500217 (closed)

Edited by Rahul Chanila

Merge request reports

Loading