Limit define_variables to show action in Project/CiCdController

What does this MR do and why?

Limit define_variables to show action in Project/CiCdController

Changelog: other

Why?: ci_available_runners is one of the costliest queries in the controller, which gets triggered for all actions and is unnecessary, so it has been removed to optimise the controller actions.

Screenshots or screen recordings

Screenshot_2025-07-17_at_10.20.14_PM

How to set up and validate locally

  • Go to any project's CI/CD settings
  • Open the General Pipelines section and update the project settings
  • Tail development.log and observe that it fires queries that are not needed (ci_available_runners).
  • Apply this change and repeat the above steps to not load those callbacks in before filter.

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.

Merge request reports

Loading