Skip to content

Refactor terraform registry details page to use provide/inject

What does this MR do and why?

Refactors terraform module registry details page to use provide/inject

Remove fields unnecessary in state, provide them instead.

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. Use API to publish terraform modules to project.
  3. Click on the newly uploaded module
  4. Ensure:
    • Details page is displayed
    • Can delete module when user has permission.
    • When user does not have permission, the delete button is not visible.
    • Assets table is displayed.
    • Publish multiple modules with same name to confirm the versions tab is loaded.
  5. Visit Group > Operate > Terraform modules & confirm all steps in step 4.

Related to #435850

Edited by Rahul Chanila

Merge request reports