Repo Search May Not Show Results Immediately #7163

Closed
opened 2025-11-02 07:18:04 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @muellert on GitHub (Apr 12, 2021).

Description

If I am on the dashboard and search a repo, matching repos are being displayed if I start the search from the first page. If I start the search from a page "after" the page which lists this repo in the absence of a search operation, there is only a number being displayed in one of the repo categories, but a matching repo is not being displayed unless one clicks the category button with the number. After that, the repo link appears in the result box and can be clicked to navigate to that repo.

Screenshots

20210412-gitea-search-box-problem

Originally created by @muellert on GitHub (Apr 12, 2021). - Gitea version (or commit ref): 1.14.0 - Git version: 2.31.0 - Operating system: Debian <!-- Please include information on whether you built gitea yourself, used one of our downloads or are using some other package --> <!-- Please also tell us how you are running gitea, e.g. if it is being run from docker, a command-line, systemd etc. ---> <!-- If you are using a package or systemd tell us what distribution you are using --> - Database (use `[x]`): - [x] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [x] Yes https://try.gitea.io/?repo-search-page=2&repo-search-query=repo-11 - [ ] No - Log gist: <!-- It really is important to provide pertinent logs --> <!-- Please read https://docs.gitea.io/en-us/logging-configuration/#debugging-problems --> <!-- In addition, if your problem relates to git commands set `RUN_MODE=dev` at the top of app.ini --> ## Description If I am on the dashboard and search a repo, matching repos are being displayed if I start the search from the first page. If I start the search from a page "after" the page which lists this repo in the absence of a search operation, there is only a number being displayed in one of the repo categories, but a matching repo is not being displayed unless one clicks the category button with the number. After that, the repo link appears in the result box and can be clicked to navigate to that repo. ## Screenshots ![20210412-gitea-search-box-problem](https://user-images.githubusercontent.com/1183079/114393896-7f683b80-9b92-11eb-8f91-fe10603c2166.png)
GiteaMirror added the type/bug label 2025-11-02 07:18:04 -06:00
Author
Owner

@zeripath commented on GitHub (Apr 12, 2021):

The title of this issue is rather confusing. The issue here is that the search term has been changed but the current page number is greater than the maximum number of results for that new search term.

I guess the correct behaviour is that changing the search term should reset the page number to 1, as it makes no sense to keep the current page.

@zeripath commented on GitHub (Apr 12, 2021): The title of this issue is rather confusing. The issue here is that the search term has been changed but the current page number is greater than the maximum number of results for that new search term. I guess the correct behaviour is that changing the search term should reset the page number to 1, as it makes no sense to keep the current page.
Author
Owner

@muellert commented on GitHub (Apr 12, 2021):

I didn't think of it that way, but your argument sounds very plausible.

@muellert commented on GitHub (Apr 12, 2021): I didn't think of it that way, but your argument sounds very plausible.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#7163