WIP: New design for flexible migrations #1

Closed
lunny wants to merge 8 commits from (deleted):lunny/implement_simple_migrate into master
Owner

According @JonasFranz 's idea, I send this PR.

This PR add two interfaces I named Downloader and Uploader. Downloader could get informations from github, gitlab and other source code platform if you implement to some standard structs. i.e. Repository, Issue, Comment, PullRequest and etc.

When the transfer is processing, we can save the retrieved data on memory or .yml files. And then upload them via Uploader. Currently we will only implement GiteaUploaderV1 via gitea's API v1.

According @JonasFranz 's idea, I send this PR. This PR add two interfaces I named `Downloader` and `Uploader`. `Downloader` could get informations from `github`, `gitlab` and other source code platform if you implement to some standard structs. i.e. `Repository`, `Issue`, `Comment`, `PullRequest` and etc. When the transfer is processing, we can save the retrieved data on memory or `.yml` files. And then upload them via `Uploader`. Currently we will only implement `GiteaUploaderV1` via gitea's API v1.
lunny changed title from WIP: add Downloader and Uploader interfaces to WIP: New design for flexible migrations 2019-02-26 11:54:19 +00:00
appleboy approved these changes 2019-03-06 08:38:51 +00:00
Dismissed
Author
Owner

@appleboy I think this should not be merged because it doesn't work on migrating comments and pull requests because we cannot assign issue index when creating issue via Gitea API. So think I will copy some the codes to send a PR on gitea's repository.

@appleboy I think this should not be merged because it doesn't work on migrating comments and pull requests because we cannot assign issue index when creating issue via Gitea API. So think I will copy some the codes to send a PR on gitea's repository.
Author
Owner

Since https://github.com/go-gitea/gitea/pull/6290 has merged. This PR is not necessary.

Since https://github.com/go-gitea/gitea/pull/6290 has merged. This PR is not necessary.
lunny closed this pull request 2019-05-07 13:10:34 +00:00
lunny deleted branch lunny/implement_simple_migrate 2019-05-07 13:10:40 +00:00
This repo is archived. You cannot comment on pull requests.
No reviewers
No Label
No Milestone
No Assignees
2 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: gitea/migrator#1
No description provided.