Skip to content

Connect Infrastructure Registry list to api correctly

What does this MR do?

In this MR we add a config parameter to the packages app, when this flag is set to true the app overrides the package_type passed to the API to only fetch infrastructure registry related packages (terraform in this case)

Note that this FE work is behind a feature flag: infrastructure_registry_page => #326460 (closed)

How to test

  • Enter the rails console: rails c
  • Enable the feature flag: Feature.enable(:infrastructure_registry_page)
  • Find the first project in your GDK: p = Project.first
  • Import needed dependency: require "#{Rails.root}/spec/support/factory_bot"
  • Create a bunch of terraform modules: FactoryBot.create_list(:terraform_module_package, 25,:with_build, project: p)
  • Navigate to the first project (usually gitlab-org/gitlab-test) => Packages & Registries => Infrastructure Registry

Screenshots (strongly suggested)

Screenshot_2021-05-14_at_12.41.53

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Related to #323418 (closed)

Edited by Nicolò Maria Mezzopera

Merge request reports

Loading