Skip to content

Use helpPagePath to Render terraform module registry links

What does this MR do and why?

Use helpPagePath function to render Terraform Module registry links for empty and non-empty state. This affects both groups and projects. The link now points to https://docs.gitlab.com/ee/user/packages/terraform_module_registry/index.html.

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

Before After
Groups (non-empty state) image
Groups (empty state) image
Project (non-empty state) image
Project (empty state) image

Before images essentially are the same UI but links pointing to: https://docs.gitlab.com/ee/user/infrastructure/index.html

How to set up and validate locally

  • Testing empty state
  1. Go to Groups & Projects
  2. On sidebar click on Operate < Terraform modules
  3. The link should point to https://docs.gitlab.com/ee/user/packages/terraform_module_registry/index.html.
  • Testing non-empty state
  1. Follow this guide to upload Terraform modules for both groups and projects: https://docs.gitlab.com/ee/api/packages/terraform-modules.html
  2. Go to Groups & Projects
  3. On sidebar click on Operate < Terraform modules
  4. The link should point to https://docs.gitlab.com/ee/user/packages/terraform_module_registry/index.html.

Related to #439049 (closed)

Edited by Justin Zeng

Merge request reports