Search field in project page and in search results page have completely different behaviors
Summary
I am trying to refine (fix a typo, actually) search results, but instead I get a completely different search, and a misleading "We couldn't find any results matching …" message.
Steps to reproduce
- Go to https://gitlab.com/gitlab-org/gitlab-ce
- Type
project owne
in the search field and hit Enter - In the search results page, notice that you've hit Enter before typing the trailing
r
- Click on the search field, type the missing
r
so that the search term is nowproject owner
, and hit Enter
What is the current bug behavior?
The search results page says "Zero search results". Actually, the same page reports zero Projects results, but 107 Issues and 8 Merge requests.
What is the expected correct behavior?
This results page with 46 Code results, 63 Issues, 7 Merge Requests, etc:
Besides, the "We couldn't find any results matching project owner
message is misleading. It couldn't find any projects matching project owner
, but it did find Issues and Merge Requests containing this search term. It should say "We couldn't find any projects matching project owner
" instead.
Relevant logs and/or screenshots
Screenshots above.
Output of checks
This bug happens on GitLab.com
Results of GitLab environment info
This bug happens on GitLab.com
Results of GitLab application Check
This bug happens on GitLab.com
Possible fixes
N/A