Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2017-11-24 19:10:53 +0300
committerTiago <tiagonbotelho@hotmail.com>2017-11-28 15:42:42 +0300
commit47c3d360e2857bb6715c7d79bd177bc8cb84ac61 (patch)
tree934e3451e6cfabbdc7b5b9db4d5be45c2f0f754c /lib
parent1808069a1571f7ff834bf300a1da143df9f979b8 (diff)
Merge branch 'dm-project-search-performance' into 'master'
Drastically improve project search performance by no longer searching namespace name Closes #40510 and #39623 See merge request gitlab-org/gitlab-ce!15590 (cherry picked from commit 7230a344537f653747b23ce467851e342e8de5e6) 8041a872 Drastically improve project search performance by no longer searching namespace name
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/search_results.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/search_results.rb b/lib/gitlab/search_results.rb
index efe8095beea..fef9d3e31d4 100644
--- a/lib/gitlab/search_results.rb
+++ b/lib/gitlab/search_results.rb
@@ -30,7 +30,7 @@ module Gitlab
def initialize(current_user, limit_projects, query)
@current_user = current_user
@limit_projects = limit_projects || Project.all
- @query = Shellwords.shellescape(query) if query.present?
+ @query = query
end
def objects(scope, page = nil)