Skip to content

UI does not display all repositories #28815

Open
@KazzmanK

Description

@KazzmanK

Description

Under root of Gitea UI there is a repository counter :
image

And a list of items under it takes a REST as data source, so it is the easiest way to get a json with all repositories.

I personally hate pagination, so , as Gitea is superfast, I configured items per page to higher numbers

[api]
DEFAULT_PAGING_NUM = 100

[ui]
FEED_PAGING_NUM = 100
EXPLORE_PAGING_NUM = 100
ISSUE_PAGING_NUM = 100

[ui.user]
REPO_PAGING_NUM = 100

So, by now all repositories must fit in this request
/repo/search?sort=updated&order=desc&uid=4&team_id=undefined&q=&page=1&limit=100&mode=&archived=false

but they are not, this request returns only 50 repositories, but UI thinks that it is OK, and pagination control at the bottom is grayed.
image
UI works as expected, but service is not.
To get all 65 repositories I must make two calls
/repo/search?sort=updated&order=desc&uid=4&team_id=undefined&q=&page=1&limit=50&mode=&archived=false
/repo/search?sort=updated&order=desc&uid=4&team_id=undefined&q=&page=2&limit=50&mode=&archived=false

Somewhere inside there is no respect to limit counter (=100 in my case)

Screenshots

--

Gitea Version

1.21.3

Can you reproduce the bug on the Gitea demo site?

No

Operating System

win

Browser Version

120

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/questionIssue needs no code to be fixed, only a description on how to fix it yourself.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions