Commit 3061cd09 authored by Francisco Javier López's avatar Francisco Javier López Committed by Robert Speicher

Lower search results limit to 100

parent 17c5e274
......@@ -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