gitea/models
Gusted 20385b52a3
Prevent dangling user redirects ()
- It's possible that the `user_redirect` table contains a user id that
no longer exists.
- Delete a user redirect upon deleting the user.
- Add a check for these dangling user redirects to check-db-consistency.
..
activities Allow detect whether it's in a database transaction for a context.Context ()
admin Make every not exist error unwrappable to a fs.ErrNotExist ()
asymkey Allow detect whether it's in a database transaction for a context.Context ()
auth Allow detect whether it's in a database transaction for a context.Context ()
avatars Allow detect whether it's in a database transaction for a context.Context ()
db Allow detect whether it's in a database transaction for a context.Context ()
fixtures Record OAuth client type at registration ()
foreignreference Make every not exist error unwrappable to a fs.ErrNotExist ()
git Adjust gitea doctor --run storages to check all storage types ()
issues Allow detect whether it's in a database transaction for a context.Context ()
migrations Init git module before database migration ()
organization Do not allow Ghost access to limited visible user/org ()
packages Adjust gitea doctor --run storages to check all storage types ()
perm Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) ()
project Allow detect whether it's in a database transaction for a context.Context ()
pull Make every not exist error unwrappable to a fs.ErrNotExist ()
repo Adjust gitea doctor --run storages to check all storage types ()
system Allow detect whether it's in a database transaction for a context.Context ()
unit Add more linters to improve code readability ()
unittest Add system setting table with cache and also add cache supports for user setting ()
user Adjust gitea doctor --run storages to check all storage types ()
webhook Allow detect whether it's in a database transaction for a context.Context ()
error.go Make every not exist error unwrappable to a fs.ErrNotExist ()
fixture_generation.go Move access and repo permission to models/perm/access ()
fixture_test.go Decouple unit test code from business code ()
main_test.go Add system setting table with cache and also add cache supports for user setting ()
migrate.go Allow detect whether it's in a database transaction for a context.Context ()
migrate_test.go Move some files into models' sub packages ()
org.go Allow detect whether it's in a database transaction for a context.Context ()
org_team.go Allow detect whether it's in a database transaction for a context.Context ()
org_team_test.go Move some files into models' sub packages ()
org_test.go Refactor AssertExistsAndLoadBean to use generics ()
repo.go Allow detect whether it's in a database transaction for a context.Context ()
repo_collaboration.go Allow detect whether it's in a database transaction for a context.Context ()
repo_collaboration_test.go Move some files into models' sub packages ()
repo_test.go Move tests as seperate sub packages to reduce duplicated file names ()
repo_transfer.go Allow detect whether it's in a database transaction for a context.Context ()
repo_transfer_test.go Refactor AssertExistsAndLoadBean to use generics ()
user.go Prevent dangling user redirects ()