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.
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> |
1 year ago | |
---|---|---|
.. | ||
actions | 1 year ago | |
activities | 1 year ago | |
admin | 1 year ago | |
asymkey | 1 year ago | |
auth | 1 year ago | |
avatars | 1 year ago | |
db | 1 year ago | |
dbfs | 1 year ago | |
fixtures | 1 year ago | |
git | 1 year ago | |
issues | 1 year ago | |
migrations | 1 year ago | |
organization | 1 year ago | |
packages | 1 year ago | |
perm | 1 year ago | |
project | 1 year ago | |
pull | 2 years ago | |
repo | 1 year ago | |
secret | 1 year ago | |
shared/types | 1 year ago | |
system | 1 year ago | |
unit | 1 year ago | |
unittest | 1 year ago | |
user | 1 year ago | |
webhook | 1 year ago | |
error.go | 1 year ago | |
fixture_generation.go | 2 years ago | |
fixture_test.go | 2 years ago | |
main_test.go | 1 year ago | |
migrate.go | 2 years ago | |
migrate_test.go | 2 years ago | |
org.go | 2 years ago | |
org_team.go | 1 year ago | |
org_team_test.go | 2 years ago | |
org_test.go | 2 years ago | |
repo.go | 1 year ago | |
repo_collaboration.go | 2 years ago | |
repo_collaboration_test.go | 1 year ago | |
repo_test.go | 2 years ago | |
repo_transfer.go | 1 year ago | |
repo_transfer_test.go | 2 years ago |