You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/models
Lunny Xiao 09df5c9c7d
Use db.ListOptions directly instead of Paginator interface to make iteasier to use and fix performance of /pulls and /issues (#29990) (#30447)
backport #29990

This PR uses `db.ListOptions` instead of `Paginor` to make the code
simpler.
And it also fixed the performance problem when viewing /pulls or
/issues. Before the counting in fact will also do the search.

Co-authored-by: Jason Song <i@wolfogre.com>
Co-authored-by: silverwind <me@silverwind.io>
10 months ago
..
actions Avoid user does not exist error when detecting schedule actions when the commit author is an external user (#30357) (#30408) 10 months ago
activities Performance improvements for pull request list page (#29900) (#29972) 11 months ago
admin Next round of `db.DefaultContext` refactor (#27089) 1 year ago
asymkey Fix missing 0 prefix of GPG key id (#30245) (#30247) 10 months ago
auth Fix bug when the linked account was disactived and list the linked accounts (#29263) 12 months ago
avatars Refactor system setting (#27000) (#27452) 1 year ago
db Fix misuse of `TxContext` (#30061) (#30062) 10 months ago
dbfs Fix content holes in Actions task logs file (#25560) 2 years ago
fixtures Fix template error when comment review doesn't exist (#29888) (#29889) 11 months ago
git Fix rename branch 500 when the target branch is deleted but exist in database (#30430) (#30437) 10 months ago
issues Use db.ListOptions directly instead of Paginator interface to make iteasier to use and fix performance of /pulls and /issues (#29990) (#30447) 10 months ago
migrations Fix bug hidden on CI and make ci failed if tests failure (#29254) (#29662) 11 months ago
organization Check the token's owner and repository when registering a runner (#30406) (#30412) 10 months ago
packages Fix incorrect relative/absolute URL usages (#29531) (#29547) 11 months ago
perm Users with `read` permission of pull requests can be assigned too (#27263) (#29372) 11 months ago
project Fix comment permissions (#28213) (#28216) 1 year ago
pull refactor some functions to support ctx as first parameter (#21878) 2 years ago
repo Users with `read` permission of pull requests can be assigned too (#27263) (#29372) 11 months ago
secret Make runs-on support variable expression (#29468) (#29782) 11 months ago
shared/types Display owner of a runner as a tooltip instead of static text (#24377) 2 years ago
system Increase "version" when update the setting value to a same value as before (#28243) (#28244) 1 year ago
unit Use `Set[Type]` instead of `map[Type]bool/struct{}`. (#26804) 1 year ago
unittest Workaround to clean up old reviews on creating a new one (#28554) (#29264) 12 months ago
user Fix user id column case (#29863) (#29867) 11 months ago
webhook Fix comment permissions (#28213) (#28216) 1 year ago
error.go Forbid removing the last admin user (#28337) (#28793) 1 year ago
fixture_generation.go Fix yaml test (#27297) (#27303) 1 year ago
fixture_test.go Fix yaml test (#27297) (#27303) 1 year ago
main_test.go move repository deletion to service layer (#26948) 1 year ago
org.go refactor some functions to support ctx as first parameter (#21878) 2 years ago
org_team.go Use db.WithTx for AddTeamMember to avoid ctx abuse (#27095) 1 year ago
org_team_test.go Reduce usage of `db.DefaultContext` (#27073) 1 year ago
org_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
repo.go Refactor system setting (#27000) (#27452) 1 year ago
repo_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
repo_transfer.go Next round of `db.DefaultContext` refactor (#27089) 1 year ago
repo_transfer_test.go Next round of `db.DefaultContext` refactor (#27089) 1 year ago