]> source.dussan.org Git - gitea.git/commit
Reduce usage of `db.DefaultContext` (#27073)
authorJakobDev <jakobdev@gmx.de>
Thu, 14 Sep 2023 17:09:32 +0000 (19:09 +0200)
committerGitHub <noreply@github.com>
Thu, 14 Sep 2023 17:09:32 +0000 (17:09 +0000)
commit76659b1114153603050de810006e04a938e9dcb7
treeed180213ca459bca51c44dbcc55fd3f9bc2d0460
parent0de09d3afcb5394cbd97e4a1c5609eb8b2acb6cf
Reduce usage of `db.DefaultContext` (#27073)

Part of #27065

This reduces the usage of `db.DefaultContext`. I think I've got enough
files for the first PR. When this is merged, I will continue working on
this.

Considering how many files this PR affect, I hope it won't take to long
to merge, so I don't end up in the merge conflict hell.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
83 files changed:
cmd/admin_user_create.go
cmd/admin_user_list.go
models/activities/statistic.go
models/asymkey/gpg_key.go
models/asymkey/gpg_key_add.go
models/asymkey/gpg_key_commit_verification.go
models/asymkey/ssh_key_commit_verification.go
models/asymkey/ssh_key_principals.go
models/org_team.go
models/org_team_test.go
models/organization/org.go
models/organization/org_test.go
models/organization/org_user_test.go
models/repo/fork.go
models/repo/git.go
models/user/email_address.go
models/user/email_address_test.go
models/user/list.go
models/user/search.go
models/user/user.go
models/user/user_test.go
modules/context/repo.go
modules/doctor/fix8312.go
modules/doctor/usertype.go
modules/metrics/collector.go
modules/repository/fork.go
routers/api/v1/admin/email.go
routers/api/v1/admin/org.go
routers/api/v1/admin/user.go
routers/api/v1/misc/nodeinfo.go
routers/api/v1/org/member.go
routers/api/v1/org/org.go
routers/api/v1/org/team.go
routers/api/v1/repo/branch.go
routers/api/v1/repo/fork.go
routers/api/v1/repo/issue_subscription.go
routers/api/v1/repo/pull.go
routers/api/v1/user/email.go
routers/api/v1/user/user.go
routers/install/install.go
routers/private/default_branch.go
routers/web/admin/admin.go
routers/web/admin/emails.go
routers/web/admin/users.go
routers/web/auth/auth.go
routers/web/auth/linkaccount.go
routers/web/auth/oauth.go
routers/web/auth/openid.go
routers/web/auth/password.go
routers/web/explore/user.go
routers/web/home.go
routers/web/org/home.go
routers/web/org/members.go
routers/web/org/teams.go
routers/web/repo/branch.go
routers/web/repo/compare.go
routers/web/repo/issue.go
routers/web/repo/middlewares.go
routers/web/repo/pull.go
routers/web/repo/repo.go
routers/web/repo/setting/default_branch.go
routers/web/repo/view.go
routers/web/user/search.go
routers/web/user/setting/account.go
routers/web/user/setting/keys.go
routers/web/user/setting/profile.go
services/auth/basic.go
services/auth/interface.go
services/auth/reverseproxy.go
services/auth/signin.go
services/auth/source/db/authenticate.go
services/auth/source/db/source.go
services/auth/source/ldap/source_authenticate.go
services/auth/source/ldap/source_sync.go
services/auth/source/oauth2/source_authenticate.go
services/auth/source/pam/source_authenticate.go
services/auth/source/smtp/source_authenticate.go
services/auth/source/source_group_sync.go
services/auth/sspi_windows.go
services/convert/convert.go
services/repository/create_test.go
services/user/user_test.go
tests/integration/auth_ldap_test.go