{"action":"created","comment":{"url":"https://api.github.com/repos/keboola/app-project-migrate/pulls/comments/190203225","pull_request_review_id":122530190,"id":190203225,"diff_hunk":"@@ -1,12 +1,40 @@\n-# my-component\n+# Project Migrate\n \n-[![Build Status](https://travis-ci.org/keboola/my-component.svg?branch=master)](https://travis-ci.org/keboola/my-component)\n+[![Build Status](https://travis-ci.com/keboola/app-project-migrate.svg?branch=master)](https://travis-ci.com/keboola/app-project-migrate)\n \n-> Fill in description\n+Application which orchestrates whole process of KBC project migration from one KBC stack to Another.\n \n-# Usage\n+Prerequisites:\n+ - Source project which will be migrated\n+ - Destination project - empty project where the source project will be cloned\n+ \n+Application is executed in *destination* project and requires Storage API token and KBC url of *source* project.\n+Admin token of source project is required for GoodData writers migration.\n+Source project is left without any changes.\n+\n+Migration steps performed by the application:\n+\n+- Create snapshot of source project https://github.com/keboola/app-project-backup\n+- Restore project from snapshot https://github.com/keboola/app-project-restore\n+- Migrate GoodData writers https://github.com/keboola/app-gooddata-writer-migrate\n+- `TODO` Migrate Snowflake writers\n+- Migrate Orchestrators https://github.com/keboola/app-orchestrator-migrate\n+\n+\n+## Usage\n \n-> fill in usage instructions\n+Run the migration in destination project wil the following command.\n+This is example of project migration from US to EU, please replace these parameters:\n+\n+- `DEST_PROJECT_SAPI_TOKEN` - Storage API token associated to admin of destination EU project\n+- `SOURCE_PROJECT_SAPI_TOKEN` - Storage API token associated to admin of source US project\n+\n+```\n+curl -X POST \\\n+ https://docker-runner.eu-central-1.keboola.com/docker/keboola.app-project-migrate/run \\\n+ -H 'X-StorageApi-Token: DEST_PROJECT_SAPI_TOKEN' \\\n+ -d '{\"configData\": {\"parameters\": {\"sourceKbcUrl\": \"https://connection.keboola.com\", \"#sourceKbcToken\":\"SOURCE_PROJECT_SAPI_TOKEN\"}}}'","path":"README.md","position":41,"original_position":41,"commit_id":"adaafe5d3d3751a9def845a77887a4120defe3da","original_commit_id":"adaafe5d3d3751a9def845a77887a4120defe3da","user":{"login":"Halama","id":903531,"avatar_url":"https://avatars3.githubusercontent.com/u/903531?v=4","gravatar_id":"","url":"https://api.github.com/users/Halama","html_url":"https://github.com/Halama","followers_url":"https://api.github.com/users/Halama/followers","following_url":"https://api.github.com/users/Halama/following{/other_user}","gists_url":"https://api.github.com/users/Halama/gists{/gist_id}","starred_url":"https://api.github.com/users/Halama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Halama/subscriptions","organizations_url":"https://api.github.com/users/Halama/orgs","repos_url":"https://api.github.com/users/Halama/repos","events_url":"https://api.github.com/users/Halama/events{/privacy}","received_events_url":"https://api.github.com/users/Halama/received_events","type":"User","site_admin":false},"body":"ale imho je ok to jak to dělá teď ten token/uživatel půjde po migraci pryč","created_at":"2018-05-23T10:52:11Z","updated_at":"2018-05-23T10:52:11Z","html_url":"https://github.com/keboola/app-project-migrate/pull/1#discussion_r190203225","pull_request_url":"https://api.github.com/repos/keboola/app-project-migrate/pulls/1","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/keboola/app-project-migrate/pulls/comments/190203225"},"html":{"href":"https://github.com/keboola/app-project-migrate/pull/1#discussion_r190203225"},"pull_request":{"href":"https://api.github.com/repos/keboola/app-project-migrate/pulls/1"}},"in_reply_to_id":190197146},"pull_request":{"url":"https://api.github.com/repos/keboola/app-project-migrate/pulls/1","id":189630819,"html_url":"https://github.com/keboola/app-project-migrate/pull/1","diff_url":"https://github.com/keboola/app-project-migrate/pull/1.diff","patch_url":"https://github.com/keboola/app-project-migrate/pull/1.patch","issue_url":"https://api.github.com/repos/keboola/app-project-migrate/issues/1","number":1,"state":"open","locked":false,"title":"Init","user":{"login":"Halama","id":903531,"avatar_url":"https://avatars3.githubusercontent.com/u/903531?v=4","gravatar_id":"","url":"https://api.github.com/users/Halama","html_url":"https://github.com/Halama","followers_url":"https://api.github.com/users/Halama/followers","following_url":"https://api.github.com/users/Halama/following{/other_user}","gists_url":"https://api.github.com/users/Halama/gists{/gist_id}","starred_url":"https://api.github.com/users/Halama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Halama/subscriptions","organizations_url":"https://api.github.com/users/Halama/orgs","repos_url":"https://api.github.com/users/Halama/repos","events_url":"https://api.github.com/users/Halama/events{/privacy}","received_events_url":"https://api.github.com/users/Halama/received_events","type":"User","site_admin":false},"body":"https://github.com/keboola/connection/issues/1341#issuecomment-389875845\r\n\r\nAppka která zorchestruje celou migraci. Více viz https://github.com/keboola/app-project-migrate/pull/1/files#diff-04c6e90faac2675aa89e2176d2eec7d8\r\n\r\nZatím nespouští migraci SNFLK writerů která není připravená ale přidat ji tam už by pak neměl být problém.","created_at":"2018-05-22T11:29:02Z","updated_at":"2018-05-23T10:52:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c23d9d4e674a3fb125799b4aca938a1090f082d5","assignee":null,"assignees":[],"requested_reviewers":[{"login":"ErikZigo","id":1726727,"avatar_url":"https://avatars2.githubusercontent.com/u/1726727?v=4","gravatar_id":"","url":"https://api.github.com/users/ErikZigo","html_url":"https://github.com/ErikZigo","followers_url":"https://api.github.com/users/ErikZigo/followers","following_url":"https://api.github.com/users/ErikZigo/following{/other_user}","gists_url":"https://api.github.com/users/ErikZigo/gists{/gist_id}","starred_url":"https://api.github.com/users/ErikZigo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ErikZigo/subscriptions","organizations_url":"https://api.github.com/users/ErikZigo/orgs","repos_url":"https://api.github.com/users/ErikZigo/repos","events_url":"https://api.github.com/users/ErikZigo/events{/privacy}","received_events_url":"https://api.github.com/users/ErikZigo/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/keboola/app-project-migrate/pulls/1/commits","review_comments_url":"https://api.github.com/repos/keboola/app-project-migrate/pulls/1/comments","review_comment_url":"https://api.github.com/repos/keboola/app-project-migrate/pulls/comments{/number}","comments_url":"https://api.github.com/repos/keboola/app-project-migrate/issues/1/comments","statuses_url":"https://api.github.com/repos/keboola/app-project-migrate/statuses/adaafe5d3d3751a9def845a77887a4120defe3da","head":{"label":"keboola:martin-init","ref":"martin-init","sha":"adaafe5d3d3751a9def845a77887a4120defe3da","user":{"login":"keboola","id":1424387,"avatar_url":"https://avatars1.githubusercontent.com/u/1424387?v=4","gravatar_id":"","url":"https://api.github.com/users/keboola","html_url":"https://github.com/keboola","followers_url":"https://api.github.com/users/keboola/followers","following_url":"https://api.github.com/users/keboola/following{/other_user}","gists_url":"https://api.github.com/users/keboola/gists{/gist_id}","starred_url":"https://api.github.com/users/keboola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keboola/subscriptions","organizations_url":"https://api.github.com/users/keboola/orgs","repos_url":"https://api.github.com/users/keboola/repos","events_url":"https://api.github.com/users/keboola/events{/privacy}","received_events_url":"https://api.github.com/users/keboola/received_events","type":"Organization","site_admin":false},"repo":{"id":134384383,"name":"app-project-migrate","full_name":"keboola/app-project-migrate","owner":{"login":"keboola","id":1424387,"avatar_url":"https://avatars1.githubusercontent.com/u/1424387?v=4","gravatar_id":"","url":"https://api.github.com/users/keboola","html_url":"https://github.com/keboola","followers_url":"https://api.github.com/users/keboola/followers","following_url":"https://api.github.com/users/keboola/following{/other_user}","gists_url":"https://api.github.com/users/keboola/gists{/gist_id}","starred_url":"https://api.github.com/users/keboola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keboola/subscriptions","organizations_url":"https://api.github.com/users/keboola/orgs","repos_url":"https://api.github.com/users/keboola/repos","events_url":"https://api.github.com/users/keboola/events{/privacy}","received_events_url":"https://api.github.com/users/keboola/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/keboola/app-project-migrate","description":"Project migration flow","fork":false,"url":"https://api.github.com/repos/keboola/app-project-migrate","forks_url":"https://api.github.com/repos/keboola/app-project-migrate/forks","keys_url":"https://api.github.com/repos/keboola/app-project-migrate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/keboola/app-project-migrate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/keboola/app-project-migrate/teams","hooks_url":"https://api.github.com/repos/keboola/app-project-migrate/hooks","issue_events_url":"https://api.github.com/repos/keboola/app-project-migrate/issues/events{/number}","events_url":"https://api.github.com/repos/keboola/app-project-migrate/events","assignees_url":"https://api.github.com/repos/keboola/app-project-migrate/assignees{/user}","branches_url":"https://api.github.com/repos/keboola/app-project-migrate/branches{/branch}","tags_url":"https://api.github.com/repos/keboola/app-project-migrate/tags","blobs_url":"https://api.github.com/repos/keboola/app-project-migrate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/keboola/app-project-migrate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/keboola/app-project-migrate/git/refs{/sha}","trees_url":"https://api.github.com/repos/keboola/app-project-migrate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/keboola/app-project-migrate/statuses/{sha}","languages_url":"https://api.github.com/repos/keboola/app-project-migrate/languages","stargazers_url":"https://api.github.com/repos/keboola/app-project-migrate/stargazers","contributors_url":"https://api.github.com/repos/keboola/app-project-migrate/contributors","subscribers_url":"https://api.github.com/repos/keboola/app-project-migrate/subscribers","subscription_url":"https://api.github.com/repos/keboola/app-project-migrate/subscription","commits_url":"https://api.github.com/repos/keboola/app-project-migrate/commits{/sha}","git_commits_url":"https://api.github.com/repos/keboola/app-project-migrate/git/commits{/sha}","comments_url":"https://api.github.com/repos/keboola/app-project-migrate/comments{/number}","issue_comment_url":"https://api.github.com/repos/keboola/app-project-migrate/issues/comments{/number}","contents_url":"https://api.github.com/repos/keboola/app-project-migrate/contents/{+path}","compare_url":"https://api.github.com/repos/keboola/app-project-migrate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/keboola/app-project-migrate/merges","archive_url":"https://api.github.com/repos/keboola/app-project-migrate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/keboola/app-project-migrate/downloads","issues_url":"https://api.github.com/repos/keboola/app-project-migrate/issues{/number}","pulls_url":"https://api.github.com/repos/keboola/app-project-migrate/pulls{/number}","milestones_url":"https://api.github.com/repos/keboola/app-project-migrate/milestones{/number}","notifications_url":"https://api.github.com/repos/keboola/app-project-migrate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/keboola/app-project-migrate/labels{/name}","releases_url":"https://api.github.com/repos/keboola/app-project-migrate/releases{/id}","deployments_url":"https://api.github.com/repos/keboola/app-project-migrate/deployments","created_at":"2018-05-22T08:27:29Z","updated_at":"2018-05-23T08:49:40Z","pushed_at":"2018-05-23T08:33:45Z","git_url":"git://github.com/keboola/app-project-migrate.git","ssh_url":"git@github.com:keboola/app-project-migrate.git","clone_url":"https://github.com/keboola/app-project-migrate.git","svn_url":"https://github.com/keboola/app-project-migrate","homepage":null,"size":78,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":6,"license":null,"forks":0,"open_issues":6,"watchers":0,"default_branch":"master"}},"base":{"label":"keboola:master","ref":"master","sha":"3cbcd71ce6edfe116e97adbf3c4f67444d933698","user":{"login":"keboola","id":1424387,"avatar_url":"https://avatars1.githubusercontent.com/u/1424387?v=4","gravatar_id":"","url":"https://api.github.com/users/keboola","html_url":"https://github.com/keboola","followers_url":"https://api.github.com/users/keboola/followers","following_url":"https://api.github.com/users/keboola/following{/other_user}","gists_url":"https://api.github.com/users/keboola/gists{/gist_id}","starred_url":"https://api.github.com/users/keboola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keboola/subscriptions","organizations_url":"https://api.github.com/users/keboola/orgs","repos_url":"https://api.github.com/users/keboola/repos","events_url":"https://api.github.com/users/keboola/events{/privacy}","received_events_url":"https://api.github.com/users/keboola/received_events","type":"Organization","site_admin":false},"repo":{"id":134384383,"name":"app-project-migrate","full_name":"keboola/app-project-migrate","owner":{"login":"keboola","id":1424387,"avatar_url":"https://avatars1.githubusercontent.com/u/1424387?v=4","gravatar_id":"","url":"https://api.github.com/users/keboola","html_url":"https://github.com/keboola","followers_url":"https://api.github.com/users/keboola/followers","following_url":"https://api.github.com/users/keboola/following{/other_user}","gists_url":"https://api.github.com/users/keboola/gists{/gist_id}","starred_url":"https://api.github.com/users/keboola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keboola/subscriptions","organizations_url":"https://api.github.com/users/keboola/orgs","repos_url":"https://api.github.com/users/keboola/repos","events_url":"https://api.github.com/users/keboola/events{/privacy}","received_events_url":"https://api.github.com/users/keboola/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/keboola/app-project-migrate","description":"Project migration flow","fork":false,"url":"https://api.github.com/repos/keboola/app-project-migrate","forks_url":"https://api.github.com/repos/keboola/app-project-migrate/forks","keys_url":"https://api.github.com/repos/keboola/app-project-migrate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/keboola/app-project-migrate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/keboola/app-project-migrate/teams","hooks_url":"https://api.github.com/repos/keboola/app-project-migrate/hooks","issue_events_url":"https://api.github.com/repos/keboola/app-project-migrate/issues/events{/number}","events_url":"https://api.github.com/repos/keboola/app-project-migrate/events","assignees_url":"https://api.github.com/repos/keboola/app-project-migrate/assignees{/user}","branches_url":"https://api.github.com/repos/keboola/app-project-migrate/branches{/branch}","tags_url":"https://api.github.com/repos/keboola/app-project-migrate/tags","blobs_url":"https://api.github.com/repos/keboola/app-project-migrate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/keboola/app-project-migrate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/keboola/app-project-migrate/git/refs{/sha}","trees_url":"https://api.github.com/repos/keboola/app-project-migrate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/keboola/app-project-migrate/statuses/{sha}","languages_url":"https://api.github.com/repos/keboola/app-project-migrate/languages","stargazers_url":"https://api.github.com/repos/keboola/app-project-migrate/stargazers","contributors_url":"https://api.github.com/repos/keboola/app-project-migrate/contributors","subscribers_url":"https://api.github.com/repos/keboola/app-project-migrate/subscribers","subscription_url":"https://api.github.com/repos/keboola/app-project-migrate/subscription","commits_url":"https://api.github.com/repos/keboola/app-project-migrate/commits{/sha}","git_commits_url":"https://api.github.com/repos/keboola/app-project-migrate/git/commits{/sha}","comments_url":"https://api.github.com/repos/keboola/app-project-migrate/comments{/number}","issue_comment_url":"https://api.github.com/repos/keboola/app-project-migrate/issues/comments{/number}","contents_url":"https://api.github.com/repos/keboola/app-project-migrate/contents/{+path}","compare_url":"https://api.github.com/repos/keboola/app-project-migrate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/keboola/app-project-migrate/merges","archive_url":"https://api.github.com/repos/keboola/app-project-migrate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/keboola/app-project-migrate/downloads","issues_url":"https://api.github.com/repos/keboola/app-project-migrate/issues{/number}","pulls_url":"https://api.github.com/repos/keboola/app-project-migrate/pulls{/number}","milestones_url":"https://api.github.com/repos/keboola/app-project-migrate/milestones{/number}","notifications_url":"https://api.github.com/repos/keboola/app-project-migrate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/keboola/app-project-migrate/labels{/name}","releases_url":"https://api.github.com/repos/keboola/app-project-migrate/releases{/id}","deployments_url":"https://api.github.com/repos/keboola/app-project-migrate/deployments","created_at":"2018-05-22T08:27:29Z","updated_at":"2018-05-23T08:49:40Z","pushed_at":"2018-05-23T08:33:45Z","git_url":"git://github.com/keboola/app-project-migrate.git","ssh_url":"git@github.com:keboola/app-project-migrate.git","clone_url":"https://github.com/keboola/app-project-migrate.git","svn_url":"https://github.com/keboola/app-project-migrate","homepage":null,"size":78,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":6,"license":null,"forks":0,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/keboola/app-project-migrate/pulls/1"},"html":{"href":"https://github.com/keboola/app-project-migrate/pull/1"},"issue":{"href":"https://api.github.com/repos/keboola/app-project-migrate/issues/1"},"comments":{"href":"https://api.github.com/repos/keboola/app-project-migrate/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/keboola/app-project-migrate/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/keboola/app-project-migrate/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/keboola/app-project-migrate/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/keboola/app-project-migrate/statuses/adaafe5d3d3751a9def845a77887a4120defe3da"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"Halama"}}