Remove custom role queries from Projects::JobsController#show
What does this MR do and why?
-
Projects::JobsController#showgets polled every few seconds and it triggers a custom role query which isn't needed (about 1M in 24 hours). - Remove the policy checks from
RunnerEntitywhen returning paths which are triggering the custom role query
References
How to reproduce locally
- Navigate to any project that you are a developer+ of
- Go to
Build > Jobsand click on any job. You shouldn't notice any change / errors.
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 #508616 (closed)
Edited by Hinam Mehra