Skip to content

Handle query timeouts better

John Mason requested to merge handle-search-query-timeouts into master

What does this MR do and why?

Handle query timeouts better

We currently get quite a few ActiveRecord::QueryCancelled errors. This adds handling for this error in the following places:

  • The autocomplete web action
  • All API actions

Screenshots or screen recordings

Screenshot image

How to set up and validate locally

Run test suite in:

  • spec/requests/api/search_spec.rb:126
  • spec/controllers/search_controller_spec.rb:325

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports