Commit 0cd22231 authored by Robert Speicher's avatar Robert Speicher

Merge branch 'fj-13326-lower-search-results-to-100' into 'master'

Lower search results limit to 100

See merge request gitlab-org/gitlab!17876
parents 17c5e274 3061cd09
......@@ -2,7 +2,7 @@
module Gitlab
class SearchResults
COUNT_LIMIT = 101
COUNT_LIMIT = 100
COUNT_LIMIT_MESSAGE = "#{COUNT_LIMIT - 1}+"
attr_reader :current_user, :query, :per_page
......
......@@ -57,8 +57,8 @@ describe Gitlab::SearchResults do
where(:count, :expected) do
23 | '23'
100 | '100'
101 | max_limited_count
99 | '99'
100 | max_limited_count
1234 | max_limited_count
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment