John Olheiser
211321fb93
Git migration UX ( #12619 )
...
* Initial work
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Implementation
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix gitlab and token cloning
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Imports and JS
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix test
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Linting
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Generate swagger
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Move mirror toggle and rename options
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
4 years ago
Lunny Xiao
f6067a8465
Migrate reviews when migrating repository from github ( #9463 )
...
* fix typo
* Migrate reviews when migrating repository from github
* fix lint
* Added test and migration when external user login
* fix test
* fix commented state
* Some improvements
* fix bug when get pull request and ref original author on code comments
* Fix migrated line; Added comment for review
* Don't load all pull requests attributes
* Fix typo
* wrong change copy head
* fix tests
* fix reactions
* Fix test
* fix fmt
* fix review comment reactions
5 years ago
John Olheiser
382936a668
Add SyncTags to uploader interface ( #9326 )
...
* Add sync tags to interface
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix revive
Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years ago
John Olheiser
3bf5a07537
Only sync tags after all batches ( #9319 )
...
Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years ago
zeripath
722a7c902d
Add Close() method to gogitRepository ( #8901 )
...
In investigating #7947 it has become clear that the storage component of go-git repositories needs closing.
This PR adds this Close function and adds the Close functions as necessary.
In TransferOwnership the ctx.Repo.GitRepo is closed if it is open to help prevent the risk of multiple open files.
Fixes #7947
5 years ago
Antoine GIRARD
46d6b92ad0
Import topics during migration ( #7851 )
...
* add GetTopics interface
* CreateTopics
* remove un-needed comment
5 years ago
Lunny Xiao
337d6915ff
Detect migrating batch size ( #7353 )
...
* Make migrating batch size as configurable
* detect different table batch insert size and remove config item
* remove unrelated changes
5 years ago
Lunny Xiao
e728b55812
Fix bug conflict between SyncReleasesWithTags and InsertReleases ( #7337 )
...
* fix bug conflict between SyncReleasesWithTags and InsertReleases
* fix tests
* fix fmt
5 years ago
Lunny Xiao
462284e2f5
Use batch insert on migrating repository to make the process faster ( #7050 )
...
* Use batch insert on migrating repository to make the process faster
* fix lint
* fix tests
* fix comments
5 years ago
Lunny Xiao
08069dc465
Improve migrations to support migrating milestones/labels/issues/comments/pullrequests ( #6290 )
...
* add migrations
* fix package dependency
* fix lints
* implements migrations except pull requests
* add releases
* migrating releases
* fix bug
* fix lint
* fix migrate releases
* fix tests
* add rollback
* pull request migtations
* fix import
* fix go module vendor
* add tests for upload to gitea
* more migrate options
* fix swagger-check
* fix misspell
* add options on migration UI
* fix log error
* improve UI options on migrating
* add support for username password when migrating from github
* fix tests
* remove comments and fix migrate limitation
* improve error handles
* migrate API will also support migrate milestones/labels/issues/pulls/releases
* fix tests and remove unused codes
* add DownloaderFactory and docs about how to create a new Downloader
* fix misspell
* fix migration docs
* Add hints about migrate options on migration page
* fix tests
6 years ago