Skip to content

Optimize user_banned_from_namespace check

Heinrich Lee Yu requested to merge optimize-user-banned-from-namespace into master

What does this MR do and why?

It is less likely for a user to be banned so we check the ban records first before loading all invited groups of a project and querying their root ancestors

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Heinrich Lee Yu

Merge request reports