At group level, an empty merge request search result view does not include the buttons, search bar, etc.

Summary

If you search for merge requests and there are no results, the search infrastructure isn't rendered on the page.

It states "Sorry, your filter produced no results" and "To widen your search, change or remove filters above" but the filters are gone.

Steps to reproduce

Search for an author with no MRs in gitlab.org

image

Also:

  • Assignee with no results
  • Target branch with no results

Result is the same for all three.

Example Project

https://gitlab.com/groups/gitlab-org

What is the current bug behavior?

As of #328848 (closed), the search bar is there but the tabs and buttons are missing.

What is the expected correct behavior?

These components are rendered

image

Contrast, issues:

image

Relevant logs and/or screenshots

see above

Output of checks

This bug happens on GitLab.com

13.12.0-pre a4650301

Possible fixes