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
Yarden Shoham 7c3196ceac
Avoid warning for system setting when start up (#23054) (#23116)
Backport #23054

Partially fix #23050

After #22294 merged, it always has a warning log like `cannot get
context cache` when starting up. This should not affect any real life
but it's annoying. This PR will fix the problem. That means when
starting up, getting the system settings will not try from the cache but
will read from the database directly.

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
2 years ago
..
actions Fix ref to trigger Actions (#22679) 2 years ago
activities Rename `repo.GetOwner` to `repo.LoadOwner` (#22967) 2 years ago
admin Implement FSFE REUSE for golang files (#21840) 2 years ago
asymkey Refactor the setting to make unit test easier (#22405) 2 years ago
auth Add scopes to API to create token and display them (#22989) 2 years ago
avatars Avoid warning for system setting when start up (#23054) (#23116) 2 years ago
db Fix db.Find bug (#23115) (#23119) 2 years ago
dbfs Refactor the setting to make unit test easier (#22405) 2 years ago
fixtures Make CI use a dummy password hasher for all tests (#22983) 2 years ago
git Rename `repo.GetOwner` to `repo.LoadOwner` (#22967) 2 years ago
issues Fix intermittent panic in notify issue change content (#23019) 2 years ago
migrations Add comment marking the end of database migrations in `1.19.0` (#22975) 2 years ago
organization Rename `GetUnits` to `LoadUnits` (#22970) 2 years ago
packages Use link in UI which returned a relative url but not html_url which contains an absolute url (#21986) 2 years ago
perm Rename `repo.GetOwner` to `repo.LoadOwner` (#22967) 2 years ago
project Preview images for Issue cards in Project Board view (#22112) 2 years ago
pull refactor some functions to support ctx as first parameter (#21878) 2 years ago
repo Rename `repo.GetOwner` to `repo.LoadOwner` (#22967) 2 years ago
secret Secrets storage with SecretKey encrypted (#22142) 2 years ago
system Avoid warning for system setting when start up (#23054) (#23116) 2 years ago
unit Repositories: by default disable all units except code and pulls on forks (#22541) 2 years ago
unittest Avoid warning for system setting when start up (#23054) (#23116) 2 years ago
user Avoid warning for system setting when start up (#23054) (#23116) 2 years ago
webhook Support system hook API (#14537) 2 years ago
error.go Implement FSFE REUSE for golang files (#21840) 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 Refactor the setting to make unit test easier (#22405) 2 years ago
migrate.go Check primary keys for all tables and drop ForeignReference (#21721) 2 years ago
migrate_test.go Check primary keys for all tables and drop ForeignReference (#21721) 2 years ago
org.go refactor some functions to support ctx as first parameter (#21878) 2 years ago
org_team.go Supports wildcard protected branch (#20825) 2 years ago
org_team_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
org_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
repo.go Avoid warning for system setting when start up (#23054) (#23116) 2 years ago
repo_collaboration.go refactor some functions to support ctx as first parameter (#21878) 2 years ago
repo_collaboration_test.go Rename `repo.GetOwner` to `repo.LoadOwner` (#22967) 2 years ago
repo_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
repo_transfer.go Always reuse transaction (#22362) 2 years ago
repo_transfer_test.go Rename almost all Ctx functions (#22071) 2 years ago