Skip to content

Prevent additional searches when timeout has occurred

What does this MR do and why?

In !109172 (merged) we added more graceful recovery from ActiveRecord::QueryTimeout exceptions for overly broad or unconstrained searches. However, the nav bar attempts to run a series of searches with the same (un)constraints to generate the count of merge requests for the Open, Closed, Merged, and All nav bar elements. We already have the ability to flag "don't run those count searches!" so all we're doing here is setting that for the state where we're recovering from the query timeout.

Related to #232999 (closed)

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