Check ci_display_pipeline_variables before rendering manual_variables page

What does this MR do and why?

This MR adds a check to the pipelines controller to only render the manual_variables page if the ci_display_pipeline_variables setting is enabled. This way, we can remove the additional check in the Vue component.

References

Screenshots or screen recordings

Before After
Screenshot_2025-09-04_at_11.22.40 Screenshot_2025-09-04_at_11.26.08

How to set up and validate locally

  1. Visit Project -> Settings -> CI/CD -> Variables and enable the Display manually-defined pipeline variables setting
  2. Visit Build -> Pipelines -> pipeline page and verify the manual variables tab is present
  3. Go back to settings and uncheck the Display manually-defined pipeline variables setting
  4. Visit pipeline page and verify the tab is not present. Visit https://gdk.test:3443/<project_path>/-/pipelines/<pipeline_id>/manual_variables page and verify it returns 404.

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #561706 (closed)

Merge request reports

Loading