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 ebff0513db
Fix context cache bug & enable context cache for dashabord commits' authors (#26991)
Unfortunately, when a system setting hasn't been stored in the database,
it cannot be cached.
Meanwhile, this PR also uses context cache for push email avatar display
which should avoid to read user table via email address again and again.

According to my local test, this should reduce dashboard elapsed time
from 150ms -> 80ms .
1 year ago
..
actions Add a new column schedule_id for action_run to track (#26975) 1 year ago
activities move repository deletion to service layer (#26948) 1 year ago
admin Replace `interface{}` with `any` (#25686) 2 years ago
asymkey Update tool dependencies, lock govulncheck and actionlint (#25655) 2 years ago
auth move repository deletion to service layer (#26948) 1 year ago
avatars Fix context cache bug & enable context cache for dashabord commits' authors (#26991) 1 year ago
db Improve DeleteByID (#26904) 1 year ago
dbfs Fix content holes in Actions task logs file (#25560) 2 years ago
fixtures Fix context cache bug & enable context cache for dashabord commits' authors (#26991) 1 year ago
git move repository deletion to service layer (#26948) 1 year ago
issues Move some functions to service layer (#26969) 1 year ago
migrations Add a new column schedule_id for action_run to track (#26975) 1 year ago
organization move repository deletion to service layer (#26948) 1 year ago
packages move repository deletion to service layer (#26948) 1 year ago
perm move repository deletion to service layer (#26948) 1 year ago
project Refactor project templates (#26448) 2 years ago
pull refactor some functions to support ctx as first parameter (#21878) 2 years ago
repo Move some functions to service layer (#26969) 1 year ago
secret Refactor secrets modification logic (#26873) 1 year ago
shared/types Display owner of a runner as a tooltip instead of static text (#24377) 2 years ago
system Fix context cache bug & enable context cache for dashabord commits' authors (#26991) 1 year ago
unit Use `Set[Type]` instead of `map[Type]bool/struct{}`. (#26804) 1 year ago
unittest Replace `interface{}` with `any` (#25686) 2 years ago
user Fix context cache bug & enable context cache for dashabord commits' authors (#26991) 1 year ago
webhook Replace `interface{}` with `any` (#25686) 2 years ago
error.go Sync branches into databases (#22743) 2 years ago
fixture_generation.go Implement FSFE REUSE for golang files (#21840) 2 years ago
fixture_test.go Implement FSFE REUSE for golang files (#21840) 2 years 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 Move some functions to service layer (#26969) 1 year ago
org_team_test.go move repository deletion to service layer (#26948) 1 year ago
org_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
repo.go move repository deletion to service layer (#26948) 1 year ago
repo_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
repo_transfer.go Fix unclear `IsRepositoryExist` logic (#24374) 2 years ago
repo_transfer_test.go Rename almost all Ctx functions (#22071) 2 years ago