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:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-06-07 09:08:42 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-06-07 09:08:42 +0300
commit02b949f3b64f88e97abec62c355ca1b1da2bd460 (patch)
treefffb942e5c6b9f19d3903a709172423595308643 /lib
parent3e59f1f11a387ab3e0383f7beea8ea599291a293 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/gon_helper.rb1
-rw-r--r--lib/gitlab/search_results.rb6
2 files changed, 6 insertions, 1 deletions
diff --git a/lib/gitlab/gon_helper.rb b/lib/gitlab/gon_helper.rb
index 2d875742430..bf46c28af9d 100644
--- a/lib/gitlab/gon_helper.rb
+++ b/lib/gitlab/gon_helper.rb
@@ -73,6 +73,7 @@ module Gitlab
push_frontend_feature_flag(:command_palette, current_user)
# To be removed with https://gitlab.com/gitlab-org/gitlab/-/issues/399248
push_frontend_feature_flag(:remove_monitor_metrics)
+ push_frontend_feature_flag(:gitlab_duo, current_user)
end
# Exposes the state of a feature flag to the frontend code.
diff --git a/lib/gitlab/search_results.rb b/lib/gitlab/search_results.rb
index 16a03f2356c..a733dca6a56 100644
--- a/lib/gitlab/search_results.rb
+++ b/lib/gitlab/search_results.rb
@@ -107,7 +107,11 @@ module Gitlab
def users
return User.none unless Ability.allowed?(current_user, :read_users_list)
- UsersFinder.new(current_user, search: query).execute
+ if Feature.enabled?(:autocomplete_users_use_search_service)
+ UsersFinder.new(current_user, { search: query, use_minimum_char_limit: false }).execute
+ else
+ UsersFinder.new(current_user, search: query).execute
+ end
end
# highlighting is only performed by Elasticsearch backed results