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
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/search.rb')
-rw-r--r--lib/api/search.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/api/search.rb b/lib/api/search.rb
index ff17696ed3e..cf6a1385783 100644
--- a/lib/api/search.rb
+++ b/lib/api/search.rb
@@ -67,8 +67,8 @@ module API
Gitlab::Metrics::GlobalSearchSlis.record_apdex(
elapsed: @search_duration_s,
- search_type: search_type,
- search_level: search_service.level,
+ search_type: search_type(additional_params),
+ search_level: search_service(additional_params).level,
search_scope: search_scope
)
@@ -81,7 +81,7 @@ module API
# with a 200 status code, but an empty @search_duration_s.
Gitlab::Metrics::GlobalSearchSlis.record_error_rate(
error: @search_duration_s.nil? || (status < 200 || status >= 400),
- search_type: search_type,
+ search_type: search_type(additional_params),
search_level: search_service(additional_params).level,
search_scope: search_scope
)
@@ -171,7 +171,7 @@ module API
detail 'This feature was introduced in GitLab 10.5.'
end
params do
- requires :id, type: String, desc: 'The ID of a project'
+ requires :id, types: [String, Integer], desc: 'The ID or URL-encoded path of the project'
requires :search, type: String, desc: 'The expression it should be searched for'
requires :scope,
type: String,