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 |
|---|---|
![]() |
![]() |
How to set up and validate locally
- Visit Project -> Settings -> CI/CD -> Variables and enable the
Display manually-defined pipeline variablessetting - Visit Build -> Pipelines -> pipeline page and verify the manual variables tab is present
- Go back to settings and uncheck the
Display manually-defined pipeline variablessetting - Visit pipeline page and verify the tab is not present. Visit
https://gdk.test:3443/<project_path>/-/pipelines/<pipeline_id>/manual_variablespage 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)

