Code search wrongly shows "no matches" when filtering results after selecting a page #123124
Replies: 2 comments 2 replies
-
I was able to reproduce, but can solve by clicking on the "code" tab in the left hand filter menu. Good catch! The question is, is it a bug or a feature? If you are on the 2nd page of results and filter for results that don't have enough to spill over to the 2nd page; logically they shouldn't show on the 2nd page. But why not refresh the page and go back to page 1 when clicking on the code filter? Would "fixing" this break something else? |
Beta Was this translation helpful? Give feedback.
-
Absolutely. If there are not enough results for 2 pages, then the second page is of course empty. But I think it shouldn't be possible to navigate to an empty page in the first place. At least not via links in the GUI. I see 2 usability problems with the current behavior:
In the case described above where there are not enough entries to display anything on the second page, I don't see how this would break something. However, in a case where there are enough entries for a second page, I'm not sure. I see points for both approaches. I'd probably still prefer to reset to page 1 for consistency. |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Bug
Body
Steps to reproduce
Current behavior
It displays "Your search did not match any code" even though there are actually matches in the repository, just not enough for a second page.
Expected behaviour
The selected page is reset to page 1 and matching results are displayed.
Further notes
Same can be reproduced with the "Paths" filter as long as there are not enough filtered results for a second page.
Beta Was this translation helpful? Give feedback.
All reactions