Hi community, Is anyone experiencing issues with ...
# avo-2
s
Hi community, Is anyone experiencing issues with global search for 2.13.0 ? Seems that we now get time out errors (e.g. if you search for a single letter, everything is searched without pagination)
l
Hey Jonas. There is a tiny update you have to do with 2.13 https://docs.avohq.io/2.0/upgrade.html#remove-the-params-from-the-search-query-block
it's thouroughly documented on that page with a migration script too
you need to remove
(params:)
from
self.search_query = ->(params:) do
s
Hi Adrian, Thanks for the quick response. Already replaced everything according to the doc
l
hmm
s
Only difference is that my rubocop says that I should use lambda instead of -> So it looks like this atm
Copy code
self.search_query = lambda {
    scope.ransack(id_eq: params[:q], title_cont: params[:q], m: "or").result(distinct: false)
  }
l
ok. looking into the one letter issue
that looks good
I see the bug
s
Yes I think I have to temporary downgrade again to 2.12.0
l
pushing a fix in 10 minutes
I'm waiting on the tests and then pushing a new release
s
πŸ™ πŸ₯°
l
try this one out @some-army-14041
s
ok thanks πŸ™‚ Let me try! πŸ™‚
Seems to be working again πŸ”₯thx for the quick help πŸ™
l
amazing! πŸ™Œ
thanks for bringing this up
3 Views