Fix bug about ListOptions and stars/watchers pagnation #14556

Merged
lunny merged 7 commits from lunny/fix_default_page into master 2021-02-04 17:23:47 +00:00
Owner

ListOptions is introduced by #9452. So there is maybe also some bugs on API pagination.

For stars/watchers, the default pagesize should not be the same as ListOptions' default which will be setting.API.DefaultPagingNum.

And I also found that forks also needs pagination so I added a TODO comment.

Fix #14553

`ListOptions` is introduced by #9452. So there is maybe also some bugs on API pagination. For stars/watchers, the default pagesize should not be the same as ListOptions' default which will be `setting.API.DefaultPagingNum`. And I also found that `forks` also needs pagination so I added a `TODO` comment. Fix #14553
6543 (Migrated from github.com) approved these changes 2021-02-04 00:18:31 +00:00
zeripath approved these changes 2021-02-04 16:48:24 +00:00
This repo is archived. You cannot comment on pull requests.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: lunny/gitea#14556
No description provided.