Skip to content

Remove custom role queries from Projects::JobsController#show

What does this MR do and why?

  • Projects::JobsController#show gets 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 RunnerEntity when returning paths which are triggering the custom role query

References

How to reproduce locally

  1. Navigate to any project that you are a developer+ of
  2. Go to Build > Jobs and 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

Merge request reports

Loading