forgejo/templates/admin
Lunny Xiao 6e19484f4d
Sync branches into databases (#22743)
Related #14180
Related #25233 
Related #22639
Close #19786
Related #12763 

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
..
applications Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2023-04-23 18:21:21 +08:00
auth Show OAuth2 errors to end users (#25261) 2023-06-15 01:12:50 +00:00
base Use flex instead of float for sort button and search input (#25519) 2023-06-28 20:10:36 +08:00
emails Use flex instead of float for sort button and search input (#25519) 2023-06-28 20:10:36 +08:00
org Fix template function DateTime (#24317) 2023-04-25 15:48:30 -04:00
packages Introduce shared template for search inputs (#25338) 2023-06-22 10:27:35 +00:00
repo Split lfs size from repository size (#22900) 2023-06-28 22:41:02 +00:00
runners Move secrets and runners settings to actions settings (#24200) 2023-04-27 20:08:47 -04:00
user Introduce shared template for search inputs (#25338) 2023-06-22 10:27:35 +00:00
actions.tmpl Move secrets and runners settings to actions settings (#24200) 2023-04-27 20:08:47 -04:00
config.tmpl Fix admin-dl-horizontal (#25512) 2023-06-27 09:14:45 +00:00
cron.tmpl various style fixes (#25008) 2023-05-30 22:28:25 +00:00
dashboard.tmpl Sync branches into databases (#22743) 2023-06-29 10:03:20 +00:00
hook_new.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2023-04-23 18:21:21 +08:00
hooks.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2023-04-23 18:21:21 +08:00
layout_footer.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2023-04-23 18:21:21 +08:00
layout_head.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2023-04-23 18:21:21 +08:00
navbar.tmpl Add details summary for vertical menus in settings to allow toggling (#25098) 2023-06-07 10:49:48 +08:00
notice.tmpl Various UI fixes (#25264) 2023-06-21 21:59:49 -04:00
queue.tmpl Add template linting via djlint (#25212) 2023-06-14 18:17:58 +00:00
queue_manage.tmpl Add template linting via djlint (#25212) 2023-06-14 18:17:58 +00:00
stacktrace-row.tmpl Use auto-updating, natively hoverable, localized time elements (#23988) 2023-04-11 01:01:20 +02:00
stacktrace.tmpl Improve queue & process & stacktrace (#24636) 2023-05-11 07:45:47 +00:00
stats.tmpl Use a separate admin page to show global stats, remove actions stat (#25062) 2023-06-03 22:03:41 +08:00