Skip to content

Adds bool to prevent search timeouts

What does this MR do and why?

The helper method #issuables_count_for_state can timeout if the base query for the search is overly broad and/or unbounded. We've rescue'd from ActiveRecord::QueryTimeout in other locations, but need to add that here as well.

Related to #232999 (closed)

Prior work:

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

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