forgejo/modules
Lunny Xiao 6e19484f4d
Sync branches into databases ()
Related 
Related  
Related 
Close 
Related  

This PR will change all the branches retrieve method from reading git
data to read database to reduce git read operations.

- [x] Sync git branches information into database when push git data
- [x] Create a new table `Branch`, merge some columns of `DeletedBranch`
into `Branch` table and drop the table `DeletedBranch`.
- [x] Read `Branch` table when visit `code` -> `branch` page
- [x] Read `Branch` table when list branch names in `code` page dropdown
- [x] Read `Branch` table when list git ref compare page
- [x] Provide a button in admin page to manually sync all branches.
- [x] Sync branches if repository is not empty but database branches are
empty when visiting pages with branches list
- [x] Use `commit_time desc` as the default FindBranch order by to keep
consistent as before and deleted branches will be always at the end.

---------

Co-authored-by: Jason Song <i@wolfogre.com>
2023-06-29 10:03:20 +00:00
..
actions Support downloading raw task logs () 2023-06-29 10:58:56 +08:00
activitypub Add Chef package registry () 2023-02-06 09:49:21 +08:00
analyze Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
assetfs Use a general approach to access custom/static/builtin assets () 2023-04-12 18:16:45 +08:00
auth Use a general approach to access custom/static/builtin assets () 2023-04-12 18:16:45 +08:00
avatar Improve avatar uploading / resizing / compressing, remove Fomantic card module () 2023-05-13 20:59:11 +02:00
base Update octicons and use octicon-file-directory-symlink () 2023-06-22 22:05:52 +00:00
cache Update redis library to support redis v7 () 2023-04-13 18:41:04 -04:00
charset Update go tool dependencies, restructure lint targets () 2023-04-22 14:53:00 -04:00
container Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
context Sync branches into databases () 2023-06-29 10:03:20 +00:00
csv Refactor locale number () 2023-04-17 11:37:23 +08:00
doctor Refactor path & config system () 2023-06-21 13:50:26 +08:00
emoji Fix unstable emoji sort () 2023-01-05 13:58:51 +02:00
eventsource Move convert package to services () 2022-12-29 10:57:15 +08:00
generate Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
git Fix index generation parallelly failure () 2023-06-15 02:14:43 +02:00
gitgraph Add context cache as a request level cache () 2023-02-15 21:37:34 +08:00
graceful Improve queue and logger context () 2023-05-26 07:31:55 +00:00
hcaptcha Consume hcaptcha and pwn deps () 2023-01-29 09:49:51 -06:00
highlight test_env: hardcode major go version in use () 2023-03-14 16:09:01 -04:00
hostmatcher Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
html Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
httpcache Use standard HTTP library to serve files () 2023-05-13 16:04:57 +02:00
httplib Use fetch to send requests to create issues/comments () 2023-06-16 06:32:43 +00:00
indexer Fix Init of db indexer () 2023-06-23 14:39:52 +00:00
issue/template Allow issue templates to not render title () 2023-01-26 22:45:49 -06:00
json Update gitea-vet to check FSFE REUSE () 2022-12-02 22:14:57 +08:00
label Make label templates have consistent behavior and priority () 2023-04-10 16:44:02 +08:00
lfs Rewrite logger system () 2023-05-21 22:35:11 +00:00
log Fix sub-command log level () 2023-06-28 08:02:06 +02:00
markup Refactor path & config system () 2023-06-21 13:50:26 +08:00
mcaptcha Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
metrics Use a separate admin page to show global stats, remove actions stat () 2023-06-03 22:03:41 +08:00
migration Scoped labels () 2023-02-18 21:17:39 +02:00
mirror Improve queue and logger context () 2023-05-26 07:31:55 +00:00
nosql Update redis library to support redis v7 () 2023-04-13 18:41:04 -04:00
notification Add Adopt repository event and handler () 2023-06-26 06:59:15 +00:00
options Use a general approach to access custom/static/builtin assets () 2023-04-12 18:16:45 +08:00
packages Add CRAN package registry () 2023-05-22 10:57:49 +08:00
paginator Use more specific test methods () 2023-04-22 17:56:27 -04:00
pprof Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
private Use the type RefName for all the needed places and fix pull mirror sync bugs () 2023-05-26 01:04:48 +00:00
process Do not output "Trace" level logs from process manager by default () 2023-05-27 10:55:24 +00:00
proxy Use proxy for pull mirror () 2023-02-11 08:39:50 +08:00
proxyprotocol Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
public Use standard HTTP library to serve files () 2023-05-13 16:04:57 +02:00
queue Help to recover from corrupted levelqueue () 2023-05-29 10:52:32 +08:00
recaptcha Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
references Use correct captured group range when parsing cross-reference () 2023-01-31 10:08:05 +01:00
regexplru Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
repository Sync branches into databases () 2023-06-29 10:03:20 +00:00
secret Improve decryption failure message () 2023-05-07 19:29:43 +08:00
session Update redis library to support redis v7 () 2023-04-13 18:41:04 -04:00
setting Do not prepare oauth2 config if it is not enabled, do not write config in some sub-commands () 2023-06-28 23:30:06 +02:00
sitemap Fix sitemap () 2022-12-30 23:31:00 +08:00
ssh Refactor path & config system () 2023-06-21 13:50:26 +08:00
storage Fix all possible setting error related storages and added some tests () 2023-06-14 11:42:38 +08:00
structs Fix Permission in API returned repository struct () 2023-06-22 13:08:08 +00:00
svg Use inline SVG for built-in OAuth providers () 2023-06-13 10:51:02 +00:00
sync Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
system Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
templates Fix missing commit message body when the message has leading newlines () 2023-06-21 09:14:34 +00:00
test Refactor web package and context package () 2023-06-18 09:59:09 +02:00
testlogger Refactor path & config system () 2023-06-21 13:50:26 +08:00
timeutil Fix incorrect webhook time and use relative-time to display it () 2023-05-03 19:53:43 -04:00
translation Refactor INI package (first step) () 2023-06-02 17:27:30 +08:00
turnstile Add new captcha: cloudflare turnstile () 2023-02-05 15:29:03 +08:00
typesniffer Do not recognize text files as audio () 2023-03-07 22:40:41 -05:00
updatechecker Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
upload Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
uri Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
user Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
util Store and use seconds for timeline time comments () 2023-06-23 12:12:39 +00:00
validation Map OIDC groups to Orgs/Teams () 2023-02-08 14:44:42 +08:00
web Refactor web package and context package () 2023-06-18 09:59:09 +02:00
webhook New webhook trigger for receiving Pull Request review requests () 2023-05-24 22:06:27 -04:00