Refactor terraform registry details page to use provide/inject
requested to merge 435850-refactor-terraform-registry-details-page-to-use-provide-inject into master
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
- Visit
Project > Operate > Terraform modules
- Use API to publish terraform modules to project.
- Click on the newly uploaded module
- 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.
- Visit
Group > Operate > Terraform modules
& confirm all steps in step 4.
Related to #435850
Edited by Rahul Chanila