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
Lunny Xiao 91fa0eb9d7
Avoid warning for system setting when start up (#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: Lauris BH <lauris@nix.lv>
1 year ago
..
actions Require approval to run actions for fork pull request (#22803) 1 year ago
activities Rename `repo.GetOwner` to `repo.LoadOwner` (#22967) 1 year ago
admin Implement FSFE REUSE for golang files (#21840) 1 year ago
asymkey Refactor the setting to make unit test easier (#22405) 1 year ago
auth Use minio/sha256-simd for accelerated SHA256 (#23052) 1 year ago
avatars Avoid warning for system setting when start up (#23054) 1 year ago
db Remove all package data after tests (#22984) 1 year ago
dbfs Refactor the setting to make unit test easier (#22405) 1 year ago
fixtures Make CI use a dummy password hasher for all tests (#22983) 1 year ago
git Rename `repo.GetOwner` to `repo.LoadOwner` (#22967) 1 year ago
issues Fix intermittent panic in notify issue change content (#23019) 1 year ago
migrations Require approval to run actions for fork pull request (#22803) 1 year ago
organization Rename `GetUnits` to `LoadUnits` (#22970) 1 year ago
packages Use link in UI which returned a relative url but not html_url which contains an absolute url (#21986) 1 year ago
perm Rename `repo.GetOwner` to `repo.LoadOwner` (#22967) 1 year ago
project improve FindProjects (#23085) 1 year ago
pull refactor some functions to support ctx as first parameter (#21878) 1 year ago
repo Rename `repo.GetOwner` to `repo.LoadOwner` (#22967) 1 year ago
secret Secrets storage with SecretKey encrypted (#22142) 1 year ago
system Avoid warning for system setting when start up (#23054) 1 year ago
unit Repositories: by default disable all units except code and pulls on forks (#22541) 1 year ago
unittest Avoid warning for system setting when start up (#23054) 1 year ago
user Avoid warning for system setting when start up (#23054) 1 year ago
webhook Support system hook API (#14537) 1 year ago
error.go Implement FSFE REUSE for golang files (#21840) 1 year ago
fixture_generation.go Implement FSFE REUSE for golang files (#21840) 1 year ago
fixture_test.go Implement FSFE REUSE for golang files (#21840) 1 year ago
main_test.go Refactor the setting to make unit test easier (#22405) 1 year ago
migrate.go Check primary keys for all tables and drop ForeignReference (#21721) 1 year ago
migrate_test.go Check primary keys for all tables and drop ForeignReference (#21721) 1 year ago
org.go refactor some functions to support ctx as first parameter (#21878) 1 year ago
org_team.go Supports wildcard protected branch (#20825) 1 year ago
org_team_test.go Implement FSFE REUSE for golang files (#21840) 1 year ago
org_test.go Implement FSFE REUSE for golang files (#21840) 1 year ago
repo.go Avoid warning for system setting when start up (#23054) 1 year ago
repo_collaboration.go refactor some functions to support ctx as first parameter (#21878) 1 year ago
repo_collaboration_test.go Rename `repo.GetOwner` to `repo.LoadOwner` (#22967) 1 year ago
repo_test.go Implement FSFE REUSE for golang files (#21840) 1 year ago
repo_transfer.go Always reuse transaction (#22362) 1 year ago
repo_transfer_test.go Rename almost all Ctx functions (#22071) 1 year ago