Skip to content
  • Jerry Seto's avatar
    Preload all protected branches for branches endpoint · 432fb7db
    Jerry Seto authored
    The protected_branches association was being preloaded, but the
    all_protected_branches method is being used in some cases leading to
    N+1 queries for unloaded access level associations.
    
    Change all_protected_branches into an association so that it can be
    preloaded and used consistently.
    432fb7db
Loading