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.
forgejo/models
wxiaoguang 6f48a36227
Refactor GetNextResourceIndex to make it work properly with transaction (#21469)
Related:
* #21362

This PR uses a general and stable method to generate resource index (eg:
Issue Index, PR Index)

If the code looks good, I can add more tests

ps: please skip the diff, only have a look at the new code. It's
entirely re-written.

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2 years ago
..
activities Add generic set type (#21408) 2 years ago
admin Move some files into models' sub packages (#20262) 2 years ago
appstate Sync gitea app path for git hooks and authorized keys when starting (#17335) 3 years ago
asymkey Increase Content field size of gpg_key and public_key to MEDIUMTEXT (#20896) 2 years ago
auth Allow creation of OAuth2 applications for orgs (#18084) 2 years ago
avatars format with gofumpt (#18184) 2 years ago
db Refactor GetNextResourceIndex to make it work properly with transaction (#21469) 2 years ago
fixtures Improve OAuth integration tests (#21390) 2 years ago
foreignreference Store the foreign ID of issues during migration (#18446) 2 years ago
git Add migrate repo archiver and packages storage support on command line (#20757) 2 years ago
issues Refactor GetNextResourceIndex to make it work properly with transaction (#21469) 2 years ago
migrations Add generic set type (#21408) 2 years ago
organization [API] teamSearch show teams with no members if user is admin (#21204) 2 years ago
packages Add generic set type (#21408) 2 years ago
perm Move some files into models' sub packages (#20262) 2 years ago
project Add option to purge users (#18064) 2 years ago
pull Delete related PullAutoMerge and ReviewState on User/Repo Deletion (#19649) 2 years ago
repo Add generic set type (#21408) 2 years ago
unit Add more linters to improve code readability (#19989) 2 years ago
unittest Kd/ci playwright go test (#20123) 2 years ago
user Make e-mail sanity check more precise (#20991) 2 years ago
webhook Webhook for Wiki changes (#20219) 2 years ago
error.go Move some files into models' sub packages (#20262) 2 years ago
fixture_generation.go Move access and repo permission to models/perm/access (#19350) 2 years ago
fixture_test.go Decouple unit test code from business code (#17623) 3 years ago
main_test.go Move some files into models' sub packages (#20262) 2 years ago
migrate.go Add generic set type (#21408) 2 years ago
migrate_test.go Move some files into models' sub packages (#20262) 2 years ago
org.go Move some files into models' sub packages (#20262) 2 years ago
org_team.go Move some files into models' sub packages (#20262) 2 years ago
org_team_test.go Move some files into models' sub packages (#20262) 2 years ago
org_test.go Refactor AssertExistsAndLoadBean to use generics (#20797) 2 years ago
repo.go Refactor GetNextResourceIndex to make it work properly with transaction (#21469) 2 years ago
repo_collaboration.go Move some files into models' sub packages (#20262) 2 years ago
repo_collaboration_test.go Move some files into models' sub packages (#20262) 2 years ago
repo_test.go Move tests as seperate sub packages to reduce duplicated file names (#19951) 2 years ago
repo_transfer.go Move some files into models' sub packages (#20262) 2 years ago
repo_transfer_test.go Refactor AssertExistsAndLoadBean to use generics (#20797) 2 years ago
user.go Fix delete user missed some comments (#21067) 2 years ago