Skip to content

Refactor Terraform module registry list page to use provide/inject

What does this MR do and why?

Terraform module registry list page use provide/inject

Remove config state & provide values instead

Refactors actions to use arguments instead of state

This MR is preparation to convert this page to use GraphQL & follows https://docs.gitlab.com/ee/development/fe_guide/migrating_from_vuex.html#how-to-migrate-static-values

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

No change in UI, therefore no Changelog entry added.

How to set up and validate locally

  1. Visit Project > Operate > Terraform modules
  2. Confirm empty state is displayed.
  3. Use API to publish terraform modules to project.
  4. Ensure:
    • Published Terraform modules are displayed
    • Can delete published module when user has permission.
    • When user does not have permission, the delete icon is disabled.
    • Pagination & sorting works as expected.
    • Clicking on the package takes you to detail page.
  5. Publish modules to different project under the same group.
  6. Visit Group > Operate > Terraform modules & confirm all steps in step 4.

Related to #435850

Edited by Rahul Chanila

Merge request reports