Code search wrongly shows "no matches" when filtering results after selecting a page #123124
Replies: 4 comments 4 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.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
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