temporarily disable user-filters in item search

This commit is contained in:
Emi Matchu 2013-01-27 01:45:18 -06:00
parent 895aef86c2
commit 8d72bf6353
2 changed files with 7 additions and 0 deletions

View file

@ -193,6 +193,10 @@ class Item
raise Item::Search::Error, message raise Item::Search::Error, message
end end
if key == :user_closet_hanger_ownership
Item::Search.error 'user_filters_disabled'
end
if TEXT_QUERY_RESOURCE_TYPES_BY_KEY.has_key?(key) if TEXT_QUERY_RESOURCE_TYPES_BY_KEY.has_key?(key)
resource_type = TEXT_QUERY_RESOURCE_TYPES_BY_KEY[key] resource_type = TEXT_QUERY_RESOURCE_TYPES_BY_KEY[key]
finder = TEXT_QUERY_RESOURCE_FINDERS[resource_type] finder = TEXT_QUERY_RESOURCE_FINDERS[resource_type]

View file

@ -330,6 +330,9 @@ en:
search: search:
errors: errors:
user_filters_disabled:
We've temporarily disabled user-filters because they're especially
tough on the server. They'll be back soon. Thanks for understanding.
not_found: not_found:
label: Filter "%{label}" does not exist. Is it spelled correctly? label: Filter "%{label}" does not exist. Is it spelled correctly?
species: species: