• Oswaldo Ferreira's avatar
    Remove N+1 calls from branches API · 12090792
    Oswaldo Ferreira authored
    This commit handles N+1 calls being
    submited at 'GET /projects/:id/repository/branches'
    endpoint for protected branches.
    
    It does so by using properly eagerloaded protected branches
    relations, which also avoids N+1 ActiveRecord cached
    calls.
    12090792
entities.rb 60.1 KB