Skip to content

Protected packages: Paginate protection rules in project settings ui

What does this MR do and why?

feat: Protected packages: Project settings ui package protection rules

This MR includes:

  • Adds frontend ui for the package protection rule in project settings
  • Hide project setting for package protection rules when relevant feature flag is disabled

🛠 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

image

How to set up and validate locally

  1. In rails console enable the experiment fully
Feature.enable(:packages_protected_packages)
  1. Create more than than 10 package protection rules
15.times { |i| Packages::Protection::Rule.create(project: Project.find_by_full_path('flightjs/Flight'), package_name_pattern: "@flightjs/flight-package-#{i}", package_type: :npm, push_protected_up_to_access_level: :maintainer) }
  1. Go to http://gdk.test:3000/flightjs/Flight/-/settings/packages_and_registries
  2. Play around with the paginated table

Related to #413641

Edited by Gerardo Navarro

Merge request reports