• Jan Provaznik's avatar
    Preload project features in reference parser · 7f4452d4
    Jan Provaznik authored
    Preloading of project_features mitigates N+1 queries when checking
    references in other projects.
    
    When loading projects for resources referenced in comments it
    makes sense to include also associated project_features because
    in the following step (`can_read_reference?(user, projects[node],
    node)`) project features is used for checking permissions for the given
    project.
    7f4452d4
commit_parser_spec.rb 3.88 KB