Lunny Xiao
29306b1442
fix bug on migrating milestone from github ( #7665 )
2019-07-29 16:41:22 +01:00
Lunny Xiao
eec1445bf3
only create opened pull request when migrating from github ( #7463 )
2019-07-14 17:16:15 +08:00
Lunny Xiao
ef3887df76
Fix migration tests since #7 fixed ( #7375 )
...
* fix migration tests since #7 fixed
* fix test time
2019-07-08 13:10:56 +03:00
mrsdizzie
e44653d0fc
Display original author and URL information when showing migrated issues/comments ( #7352 )
...
* Store original author info for migrated issues and comments
Keep original author name for displaying in Gitea interface and also
store original author user ID for potential future use in linking
accounts from old location.
* Add original_url for repo
Store the original URL for a migrated repo
Clean up migrations/tests
* fix migration
* fix golangci-lint
* make 'make revive' happy also
* Modify templates to use OriginalAuthor if set
Use the original author name in templates if it is set rather than the
user who migrated/currently owns the issues
* formatting fixes
* make generate-swagger
* Use default avatar for imported comments
* Remove no longer used IgnoreIssueAuthor option
* Add OriginalAuthorID to swagger also
2019-07-08 10:14:12 +08:00
mrsdizzie
8bfe1e4bb4
Fix typo in PR migration check ( #7368 )
2019-07-06 16:32:15 -04:00
Lunny Xiao
b381b1a6d8
Detect migrating batch size ( #7353 )
...
* Make migrating batch size as configurable
* detect different table batch insert size and remove config item
* remove unrelated changes
2019-07-06 15:24:50 -04:00
Lunny Xiao
7d8f156656
Fix bug conflict between SyncReleasesWithTags and InsertReleases ( #7337 )
...
* fix bug conflict between SyncReleasesWithTags and InsertReleases
* fix tests
* fix fmt
2019-07-01 22:17:16 +01:00
Lunny Xiao
cefe29c0b8
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
2019-06-29 21:38:22 +08:00
Lunny Xiao
1a4585846c
Fix migration panic when Head.User is not exist ( #7226 )
...
* fix migration panic when Head.User is not exist
* fix test
2019-06-18 12:15:39 -04:00
Lunny Xiao
8720974b48
improve github downloader on migrations ( #7049 )
...
* improve github downloader on migrations
* fix tests
* fix uppercase function parameters
2019-05-30 16:26:57 -04:00
Rob Watson
397d7c60ba
migrations: ensure rollback on error ( #7039 ) ( #7040 )
2019-05-25 22:18:27 +01:00
Lunny Xiao
fcdb05692d
fix missing repo description when migrating ( #7000 )
2019-05-20 15:43:43 +03:00
Lunny Xiao
79ae981cf3
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
2019-05-07 09:12:51 +08:00