summaryrefslogtreecommitdiff
path: root/app/views/search/results
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2019-03-27 05:44:22 +0000
committerStan Hu <stanhu@gmail.com>2019-03-27 05:44:22 +0000
commit3844ab70c5881e7f9abd86b07ec0fff4f2364a7d (patch)
tree07cfdd8e286854a4f43c79d6c7d148f0609d5f1f /app/views/search/results
parent4fde1ba7d0338c4030f8f3a5a49c9a9777d57dfd (diff)
parent0401d00ace8f0efd15131593e89733ebd9add791 (diff)
downloadgitlab-ce-3844ab70c5881e7f9abd86b07ec0fff4f2364a7d.tar.gz
Merge branch 'ce-avoid_n_plus_1_es_load_blobs' into 'master'
Backport of avoid_n_plus_1_es_load_blobs See merge request gitlab-org/gitlab-ce!26522
Diffstat (limited to 'app/views/search/results')
-rw-r--r--app/views/search/results/_blob.html.haml2
-rw-r--r--app/views/search/results/_wiki_blob.html.haml2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/search/results/_blob.html.haml b/app/views/search/results/_blob.html.haml
index 2a602095845..bdad07f36d1 100644
--- a/app/views/search/results/_blob.html.haml
+++ b/app/views/search/results/_blob.html.haml
@@ -1,4 +1,4 @@
-- project = find_project_for_result_blob(blob)
+- project = find_project_for_result_blob(projects, blob)
- return unless project
- blob = parse_search_result(blob)
diff --git a/app/views/search/results/_wiki_blob.html.haml b/app/views/search/results/_wiki_blob.html.haml
index 389e4cc75b9..b351ecd4edf 100644
--- a/app/views/search/results/_wiki_blob.html.haml
+++ b/app/views/search/results/_wiki_blob.html.haml
@@ -1,4 +1,4 @@
-- project = find_project_for_result_blob(wiki_blob)
+- project = find_project_for_result_blob(projects, wiki_blob)
- wiki_blob = parse_search_result(wiki_blob)
- wiki_blob_link = project_wiki_path(project, wiki_blob.basename)