1
0
Fork 0
forgejo/modules
zeripath 9302eba971
DBContext is just a Context (#17100)
* DBContext is just a Context

This PR removes some of the specialness from the DBContext and makes it context
This allows us to simplify the GetEngine code to wrap around any context in future
and means that we can change our loadRepo(e Engine) functions to simply take contexts.

Signed-off-by: Andrew Thornton <art27@cantab.net>

* fix unit tests

Signed-off-by: Andrew Thornton <art27@cantab.net>

* another place that needs to set the initial context

Signed-off-by: Andrew Thornton <art27@cantab.net>

* avoid race

Signed-off-by: Andrew Thornton <art27@cantab.net>

* change attachment error

Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-09-23 23:45:36 +08:00
..
analyze Use git attributes to determine generated and vendored status for language stats and diffs (#16773) 2021-09-09 21:13:36 +01:00
auth Add bundle download for repository (#14538) 2021-08-24 11:47:09 -05:00
avatar refactor: move from io/ioutil to io and os package (#17109) 2021-09-22 13:38:34 +08:00
base
cache
charset refactor: move from io/ioutil to io and os package (#17109) 2021-09-22 13:38:34 +08:00
context refactor: move from io/ioutil to io and os package (#17109) 2021-09-22 13:38:34 +08:00
convert Move db related basic functions to models/db (#17075) 2021-09-19 19:49:59 +08:00
cron
csv
doctor DBContext is just a Context (#17100) 2021-09-23 23:45:36 +08:00
emoji
eventsource
generate
git refactor: move from io/ioutil to io and os package (#17109) 2021-09-22 13:38:34 +08:00
gitgraph
graceful refactor: move from io/ioutil to io and os package (#17109) 2021-09-22 13:38:34 +08:00
hcaptcha
highlight Just use a slice when rendering file (#16774) 2021-08-23 22:23:39 +01:00
httpcache
httplib refactor: move from io/ioutil to io and os package (#17109) 2021-09-22 13:38:34 +08:00
indexer refactor: move from io/ioutil to io and os package (#17109) 2021-09-22 13:38:34 +08:00
json
lfs refactor: move from io/ioutil to io and os package (#17109) 2021-09-22 13:38:34 +08:00
log refactor: move from io/ioutil to io and os package (#17109) 2021-09-22 13:38:34 +08:00
markup refactor: move from io/ioutil to io and os package (#17109) 2021-09-22 13:38:34 +08:00
matchlist
metrics
migrations refactor: move from io/ioutil to io and os package (#17109) 2021-09-22 13:38:34 +08:00
nosql
notification Move db related basic functions to models/db (#17075) 2021-09-19 19:49:59 +08:00
options refactor: move from io/ioutil to io and os package (#17109) 2021-09-22 13:38:34 +08:00
password
pprof refactor: move from io/ioutil to io and os package (#17109) 2021-09-22 13:38:34 +08:00
private refactor: move from io/ioutil to io and os package (#17109) 2021-09-22 13:38:34 +08:00
process
proxy
public refactor: move from io/ioutil to io and os package (#17109) 2021-09-22 13:38:34 +08:00
queue refactor: move from io/ioutil to io and os package (#17109) 2021-09-22 13:38:34 +08:00
recaptcha refactor: move from io/ioutil to io and os package (#17109) 2021-09-22 13:38:34 +08:00
references
repofiles Move db related basic functions to models/db (#17075) 2021-09-19 19:49:59 +08:00
repository DBContext is just a Context (#17100) 2021-09-23 23:45:36 +08:00
secret
session
setting refactor: move from io/ioutil to io and os package (#17109) 2021-09-22 13:38:34 +08:00
ssh
storage refactor: move from io/ioutil to io and os package (#17109) 2021-09-22 13:38:34 +08:00
structs Support unprotected file patterns (#16395) 2021-09-11 16:21:17 +02:00
svg refactor: move from io/ioutil to io and os package (#17109) 2021-09-22 13:38:34 +08:00
sync
task Fix bug of migrated repository not index (#16991) 2021-09-08 18:43:19 +01:00
templates refactor: move from io/ioutil to io and os package (#17109) 2021-09-22 13:38:34 +08:00
test Move db related basic functions to models/db (#17075) 2021-09-19 19:49:59 +08:00
timeutil
translation
typesniffer
upload
uri
user
util
validation
web Clean-up HookPreReceive and restore functionality for pushing non-standard refs (#16705) 2021-09-16 15:34:54 +02:00