diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2018-01-24 20:21:40 +0000 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2018-01-24 20:21:40 +0000 |
commit | a349a4269c5194e53020e5909e9554bc1bfed40f (patch) | |
tree | 572c17488ea0bd62d7787f37fad20f5756ed04b6 /lib/api | |
parent | f35bac576dd89a3fc8b601d0aef6e3f6d4888a09 (diff) | |
parent | 090ca9c33e4c1939366e66c328af6dd61bf1db1d (diff) | |
download | gitlab-ce-a349a4269c5194e53020e5909e9554bc1bfed40f.tar.gz |
Merge branch 'search-100' into 'master'
Use limit for search count queries
See merge request gitlab-org/gitlab-ce!16502
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/v3/projects.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/v3/projects.rb b/lib/api/v3/projects.rb index 446f804124b..a7f0813bf74 100644 --- a/lib/api/v3/projects.rb +++ b/lib/api/v3/projects.rb @@ -175,7 +175,7 @@ module API end get "/search/:query", requirements: { query: /[^\/]+/ } do search_service = Search::GlobalService.new(current_user, search: params[:query]).execute - projects = search_service.objects('projects', params[:page]) + projects = search_service.objects('projects', params[:page], false) projects = projects.reorder(params[:order_by] => params[:sort]) present paginate(projects), with: ::API::V3::Entities::Project |