Error 500 when searching for merged MRs on gitlab.com

Summary

Searching for merged Merge Requests on gitlab.com yields an error 500.

Steps to reproduce

  1. Log in to gitlab.com
  2. Open https://gitlab.com/gitlab-org/gitlab/-/merge_requests?scope=all&state=merged&search=FinalizeRoutesBackfillingForProjects

Example Project

What is the current bug behavior?

An Error 500 page is shown.

I confirmed this behaviour by trying it with two up to date browsers (chromium and firefox-esr) as well as asking a friend whether they could reproduce the behaviour as well.

What is the expected correct behavior?

A web page containing search results.

Relevant logs and/or screenshots

2022-07-07T17_18_22+02_00-yunix

Request ID: 01G7CK7YMZBY5KQJ4XYG5E5SGZ

Output of checks

This bug happens on GitLab.com

Results of GitLab environment info

Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of:
`sudo gitlab-rake gitlab:env:info`)

(For installations from source run and paste the output of:
`sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)

Results of GitLab application Check

Expand for output related to the GitLab application check

(For installations with omnibus-gitlab package run and paste the output of: sudo gitlab-rake gitlab:check SANITIZE=true)

(For installations from source run and paste the output of: sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true)

(we will only investigate if the tests are passing)

Possible fixes