summaryrefslogtreecommitdiff
path: root/lib/api/variables.rb
diff options
context:
space:
mode:
authorJan Provaznik <jprovaznik@gitlab.com>2018-09-30 19:54:21 +0200
committerJan Provaznik <jprovaznik@gitlab.com>2018-09-30 20:03:43 +0200
commit7f4452d4069b815612e53b7f20995137af608db2 (patch)
treeffe2ff8b577118a965b138a3f559a73bcec3bd4d /lib/api/variables.rb
parent227cc997fb107672e3293c56e0dcb1df72ad82d5 (diff)
downloadgitlab-ce-7f4452d4069b815612e53b7f20995137af608db2.tar.gz
Preload project features in reference parser
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.
Diffstat (limited to 'lib/api/variables.rb')
0 files changed, 0 insertions, 0 deletions