Resolve N+1 in permitted_for_boundary?

What does this MR do and why?

  • Fixes an N+1 in PersonalAccessToken#permitted_for_boundary? by preloading granular_scopes (with namespaces) instead of loading them per boundary check

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 #600920 (closed)

Edited by Hinam Mehra

Merge request reports

Loading
Loading