{"action":"created","comment":{"url":"https://api.github.com/repos/dswarm/dswarm-backoffice-web/pulls/comments/42485052","id":42485052,"diff_hunk":"@@ -0,0 +1,37 @@\n+<div>\n+    <div class=\"modal-header\">\n+        <h3>Copy or Migrate Mappings</h3>\n+        <div class=\"navbar-collapse collapse\">\n+            <ul class=\"nav navbar-nav navbar-right modal-dswarm-tools-navbar\">\n+                <li>\n+                    <a href=\"#\" class=\"dropdown-toggle\" data-toggle=\"dropdown\" ng-click=\"showHelp()\">Help</a>\n+                </li>\n+            </ul>\n+        </div>\n+    </div>\n+    <div class=\"modal-body\">\n+\n+        <div class=\"alert alert-dismissable\" ng-repeat=\"alert in alerts\" ng-class=\"'alert-'+alert.type\">\n+            <button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-hidden=\"true\" ng-click=\"closeAlert($index)\">&times;</button>\n+            {{alert.msg}}\n+        </div>\n+\n+        <div class=\"modal-content\">\n+\n+            <h3>Data Models</h3>\n+\n+            <div class=\"gridStyle\" ng-grid=\"dataModelGridContent\" id=\"modal-data-model-grid\"></div>\n+\n+            <h3>Projects</h3>\n+\n+            <div class=\"gridStyle\" ng-grid=\"projectGridContent\" id=\"modal-project-grid\"></div>\n+\n+        </div>\n+    </div>\n+    <div class=\"modal-footer\">\n+        <button class=\"btn btn-warning cancel\" ng-click=\"copyMappings()\" ng-if=\"selectedProject && selectedProject.length > 0\">Copy Mappings</button>\n+        <button class=\"btn btn-warning cancel\" ng-click=\"migrateMappings()\" ng-if=\"selectedDataModel && selectedDataModel.length > 0 && selectedProject && selectedProject.length > 0\">Migrate Mappings</button>","path":"yo/app/views/directives/copy-or-migrate-mappings.html","position":33,"original_position":33,"commit_id":"21078059002dfdb253bd3c83569dc376eddcb219","original_commit_id":"21078059002dfdb253bd3c83569dc376eddcb219","user":{"login":"knutwalker","id":633183,"avatar_url":"https://avatars.githubusercontent.com/u/633183?v=3","gravatar_id":"","url":"https://api.github.com/users/knutwalker","html_url":"https://github.com/knutwalker","followers_url":"https://api.github.com/users/knutwalker/followers","following_url":"https://api.github.com/users/knutwalker/following{/other_user}","gists_url":"https://api.github.com/users/knutwalker/gists{/gist_id}","starred_url":"https://api.github.com/users/knutwalker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knutwalker/subscriptions","organizations_url":"https://api.github.com/users/knutwalker/orgs","repos_url":"https://api.github.com/users/knutwalker/repos","events_url":"https://api.github.com/users/knutwalker/events{/privacy}","received_events_url":"https://api.github.com/users/knutwalker/received_events","type":"User","site_admin":false},"body":"just `.length` instead of `.length > 0` is also fine (and shorter)","created_at":"2015-10-20T11:50:07Z","updated_at":"2015-10-20T11:50:07Z","html_url":"https://github.com/dswarm/dswarm-backoffice-web/pull/54#discussion_r42485052","pull_request_url":"https://api.github.com/repos/dswarm/dswarm-backoffice-web/pulls/54","_links":{"self":{"href":"https://api.github.com/repos/dswarm/dswarm-backoffice-web/pulls/comments/42485052"},"html":{"href":"https://github.com/dswarm/dswarm-backoffice-web/pull/54#discussion_r42485052"},"pull_request":{"href":"https://api.github.com/repos/dswarm/dswarm-backoffice-web/pulls/54"}}},"pull_request":{"url":"https://api.github.com/repos/dswarm/dswarm-backoffice-web/pulls/54","id":48188355,"html_url":"https://github.com/dswarm/dswarm-backoffice-web/pull/54","diff_url":"https://github.com/dswarm/dswarm-backoffice-web/pull/54.diff","patch_url":"https://github.com/dswarm/dswarm-backoffice-web/pull/54.patch","issue_url":"https://api.github.com/repos/dswarm/dswarm-backoffice-web/issues/54","number":54,"state":"open","locked":false,"title":"[DD-1232] copy mapping set to new project via FE","user":{"login":"zazi","id":281172,"avatar_url":"https://avatars.githubusercontent.com/u/281172?v=3","gravatar_id":"","url":"https://api.github.com/users/zazi","html_url":"https://github.com/zazi","followers_url":"https://api.github.com/users/zazi/followers","following_url":"https://api.github.com/users/zazi/following{/other_user}","gists_url":"https://api.github.com/users/zazi/gists{/gist_id}","starred_url":"https://api.github.com/users/zazi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zazi/subscriptions","organizations_url":"https://api.github.com/users/zazi/orgs","repos_url":"https://api.github.com/users/zazi/repos","events_url":"https://api.github.com/users/zazi/events{/privacy}","received_events_url":"https://api.github.com/users/zazi/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-20T11:33:48Z","updated_at":"2015-10-20T11:50:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a1389e9165c16267487705cd3b32f97336d35cb9","assignee":{"login":"knutwalker","id":633183,"avatar_url":"https://avatars.githubusercontent.com/u/633183?v=3","gravatar_id":"","url":"https://api.github.com/users/knutwalker","html_url":"https://github.com/knutwalker","followers_url":"https://api.github.com/users/knutwalker/followers","following_url":"https://api.github.com/users/knutwalker/following{/other_user}","gists_url":"https://api.github.com/users/knutwalker/gists{/gist_id}","starred_url":"https://api.github.com/users/knutwalker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knutwalker/subscriptions","organizations_url":"https://api.github.com/users/knutwalker/orgs","repos_url":"https://api.github.com/users/knutwalker/repos","events_url":"https://api.github.com/users/knutwalker/events{/privacy}","received_events_url":"https://api.github.com/users/knutwalker/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/dswarm/dswarm-backoffice-web/pulls/54/commits","review_comments_url":"https://api.github.com/repos/dswarm/dswarm-backoffice-web/pulls/54/comments","review_comment_url":"https://api.github.com/repos/dswarm/dswarm-backoffice-web/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dswarm/dswarm-backoffice-web/issues/54/comments","statuses_url":"https://api.github.com/repos/dswarm/dswarm-backoffice-web/statuses/21078059002dfdb253bd3c83569dc376eddcb219","head":{"label":"zazi:sprint-48/dd-1232","ref":"sprint-48/dd-1232","sha":"21078059002dfdb253bd3c83569dc376eddcb219","user":{"login":"zazi","id":281172,"avatar_url":"https://avatars.githubusercontent.com/u/281172?v=3","gravatar_id":"","url":"https://api.github.com/users/zazi","html_url":"https://github.com/zazi","followers_url":"https://api.github.com/users/zazi/followers","following_url":"https://api.github.com/users/zazi/following{/other_user}","gists_url":"https://api.github.com/users/zazi/gists{/gist_id}","starred_url":"https://api.github.com/users/zazi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zazi/subscriptions","organizations_url":"https://api.github.com/users/zazi/orgs","repos_url":"https://api.github.com/users/zazi/repos","events_url":"https://api.github.com/users/zazi/events{/privacy}","received_events_url":"https://api.github.com/users/zazi/received_events","type":"User","site_admin":false},"repo":{"id":43435500,"name":"dswarm-backoffice-web","full_name":"zazi/dswarm-backoffice-web","owner":{"login":"zazi","id":281172,"avatar_url":"https://avatars.githubusercontent.com/u/281172?v=3","gravatar_id":"","url":"https://api.github.com/users/zazi","html_url":"https://github.com/zazi","followers_url":"https://api.github.com/users/zazi/followers","following_url":"https://api.github.com/users/zazi/following{/other_user}","gists_url":"https://api.github.com/users/zazi/gists{/gist_id}","starred_url":"https://api.github.com/users/zazi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zazi/subscriptions","organizations_url":"https://api.github.com/users/zazi/orgs","repos_url":"https://api.github.com/users/zazi/repos","events_url":"https://api.github.com/users/zazi/events{/privacy}","received_events_url":"https://api.github.com/users/zazi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zazi/dswarm-backoffice-web","description":"The backoffice web application of d:swarm.","fork":true,"url":"https://api.github.com/repos/zazi/dswarm-backoffice-web","forks_url":"https://api.github.com/repos/zazi/dswarm-backoffice-web/forks","keys_url":"https://api.github.com/repos/zazi/dswarm-backoffice-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zazi/dswarm-backoffice-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zazi/dswarm-backoffice-web/teams","hooks_url":"https://api.github.com/repos/zazi/dswarm-backoffice-web/hooks","issue_events_url":"https://api.github.com/repos/zazi/dswarm-backoffice-web/issues/events{/number}","events_url":"https://api.github.com/repos/zazi/dswarm-backoffice-web/events","assignees_url":"https://api.github.com/repos/zazi/dswarm-backoffice-web/assignees{/user}","branches_url":"https://api.github.com/repos/zazi/dswarm-backoffice-web/branches{/branch}","tags_url":"https://api.github.com/repos/zazi/dswarm-backoffice-web/tags","blobs_url":"https://api.github.com/repos/zazi/dswarm-backoffice-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zazi/dswarm-backoffice-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zazi/dswarm-backoffice-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/zazi/dswarm-backoffice-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zazi/dswarm-backoffice-web/statuses/{sha}","languages_url":"https://api.github.com/repos/zazi/dswarm-backoffice-web/languages","stargazers_url":"https://api.github.com/repos/zazi/dswarm-backoffice-web/stargazers","contributors_url":"https://api.github.com/repos/zazi/dswarm-backoffice-web/contributors","subscribers_url":"https://api.github.com/repos/zazi/dswarm-backoffice-web/subscribers","subscription_url":"https://api.github.com/repos/zazi/dswarm-backoffice-web/subscription","commits_url":"https://api.github.com/repos/zazi/dswarm-backoffice-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/zazi/dswarm-backoffice-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/zazi/dswarm-backoffice-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/zazi/dswarm-backoffice-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/zazi/dswarm-backoffice-web/contents/{+path}","compare_url":"https://api.github.com/repos/zazi/dswarm-backoffice-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zazi/dswarm-backoffice-web/merges","archive_url":"https://api.github.com/repos/zazi/dswarm-backoffice-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zazi/dswarm-backoffice-web/downloads","issues_url":"https://api.github.com/repos/zazi/dswarm-backoffice-web/issues{/number}","pulls_url":"https://api.github.com/repos/zazi/dswarm-backoffice-web/pulls{/number}","milestones_url":"https://api.github.com/repos/zazi/dswarm-backoffice-web/milestones{/number}","notifications_url":"https://api.github.com/repos/zazi/dswarm-backoffice-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zazi/dswarm-backoffice-web/labels{/name}","releases_url":"https://api.github.com/repos/zazi/dswarm-backoffice-web/releases{/id}","created_at":"2015-09-30T13:46:54Z","updated_at":"2015-09-30T13:46:55Z","pushed_at":"2015-10-20T11:32:45Z","git_url":"git://github.com/zazi/dswarm-backoffice-web.git","ssh_url":"git@github.com:zazi/dswarm-backoffice-web.git","clone_url":"https://github.com/zazi/dswarm-backoffice-web.git","svn_url":"https://github.com/zazi/dswarm-backoffice-web","homepage":null,"size":1554,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"builds/unstable"}},"base":{"label":"dswarm:builds/unstable","ref":"builds/unstable","sha":"2236a43a45c8f0ab16dea1476a2c63b7d1e9d9d5","user":{"login":"dswarm","id":9085679,"avatar_url":"https://avatars.githubusercontent.com/u/9085679?v=3","gravatar_id":"","url":"https://api.github.com/users/dswarm","html_url":"https://github.com/dswarm","followers_url":"https://api.github.com/users/dswarm/followers","following_url":"https://api.github.com/users/dswarm/following{/other_user}","gists_url":"https://api.github.com/users/dswarm/gists{/gist_id}","starred_url":"https://api.github.com/users/dswarm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dswarm/subscriptions","organizations_url":"https://api.github.com/users/dswarm/orgs","repos_url":"https://api.github.com/users/dswarm/repos","events_url":"https://api.github.com/users/dswarm/events{/privacy}","received_events_url":"https://api.github.com/users/dswarm/received_events","type":"Organization","site_admin":false},"repo":{"id":25154972,"name":"dswarm-backoffice-web","full_name":"dswarm/dswarm-backoffice-web","owner":{"login":"dswarm","id":9085679,"avatar_url":"https://avatars.githubusercontent.com/u/9085679?v=3","gravatar_id":"","url":"https://api.github.com/users/dswarm","html_url":"https://github.com/dswarm","followers_url":"https://api.github.com/users/dswarm/followers","following_url":"https://api.github.com/users/dswarm/following{/other_user}","gists_url":"https://api.github.com/users/dswarm/gists{/gist_id}","starred_url":"https://api.github.com/users/dswarm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dswarm/subscriptions","organizations_url":"https://api.github.com/users/dswarm/orgs","repos_url":"https://api.github.com/users/dswarm/repos","events_url":"https://api.github.com/users/dswarm/events{/privacy}","received_events_url":"https://api.github.com/users/dswarm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dswarm/dswarm-backoffice-web","description":"The backoffice web application of d:swarm.","fork":false,"url":"https://api.github.com/repos/dswarm/dswarm-backoffice-web","forks_url":"https://api.github.com/repos/dswarm/dswarm-backoffice-web/forks","keys_url":"https://api.github.com/repos/dswarm/dswarm-backoffice-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dswarm/dswarm-backoffice-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dswarm/dswarm-backoffice-web/teams","hooks_url":"https://api.github.com/repos/dswarm/dswarm-backoffice-web/hooks","issue_events_url":"https://api.github.com/repos/dswarm/dswarm-backoffice-web/issues/events{/number}","events_url":"https://api.github.com/repos/dswarm/dswarm-backoffice-web/events","assignees_url":"https://api.github.com/repos/dswarm/dswarm-backoffice-web/assignees{/user}","branches_url":"https://api.github.com/repos/dswarm/dswarm-backoffice-web/branches{/branch}","tags_url":"https://api.github.com/repos/dswarm/dswarm-backoffice-web/tags","blobs_url":"https://api.github.com/repos/dswarm/dswarm-backoffice-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dswarm/dswarm-backoffice-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dswarm/dswarm-backoffice-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/dswarm/dswarm-backoffice-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dswarm/dswarm-backoffice-web/statuses/{sha}","languages_url":"https://api.github.com/repos/dswarm/dswarm-backoffice-web/languages","stargazers_url":"https://api.github.com/repos/dswarm/dswarm-backoffice-web/stargazers","contributors_url":"https://api.github.com/repos/dswarm/dswarm-backoffice-web/contributors","subscribers_url":"https://api.github.com/repos/dswarm/dswarm-backoffice-web/subscribers","subscription_url":"https://api.github.com/repos/dswarm/dswarm-backoffice-web/subscription","commits_url":"https://api.github.com/repos/dswarm/dswarm-backoffice-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/dswarm/dswarm-backoffice-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/dswarm/dswarm-backoffice-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/dswarm/dswarm-backoffice-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/dswarm/dswarm-backoffice-web/contents/{+path}","compare_url":"https://api.github.com/repos/dswarm/dswarm-backoffice-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dswarm/dswarm-backoffice-web/merges","archive_url":"https://api.github.com/repos/dswarm/dswarm-backoffice-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dswarm/dswarm-backoffice-web/downloads","issues_url":"https://api.github.com/repos/dswarm/dswarm-backoffice-web/issues{/number}","pulls_url":"https://api.github.com/repos/dswarm/dswarm-backoffice-web/pulls{/number}","milestones_url":"https://api.github.com/repos/dswarm/dswarm-backoffice-web/milestones{/number}","notifications_url":"https://api.github.com/repos/dswarm/dswarm-backoffice-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dswarm/dswarm-backoffice-web/labels{/name}","releases_url":"https://api.github.com/repos/dswarm/dswarm-backoffice-web/releases{/id}","created_at":"2014-10-13T10:59:02Z","updated_at":"2015-09-14T08:26:49Z","pushed_at":"2015-10-20T11:33:48Z","git_url":"git://github.com/dswarm/dswarm-backoffice-web.git","ssh_url":"git@github.com:dswarm/dswarm-backoffice-web.git","clone_url":"https://github.com/dswarm/dswarm-backoffice-web.git","svn_url":"https://github.com/dswarm/dswarm-backoffice-web","homepage":null,"size":2054,"stargazers_count":7,"watchers_count":7,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":1,"forks":7,"open_issues":1,"watchers":7,"default_branch":"builds/unstable"}},"_links":{"self":{"href":"https://api.github.com/repos/dswarm/dswarm-backoffice-web/pulls/54"},"html":{"href":"https://github.com/dswarm/dswarm-backoffice-web/pull/54"},"issue":{"href":"https://api.github.com/repos/dswarm/dswarm-backoffice-web/issues/54"},"comments":{"href":"https://api.github.com/repos/dswarm/dswarm-backoffice-web/issues/54/comments"},"review_comments":{"href":"https://api.github.com/repos/dswarm/dswarm-backoffice-web/pulls/54/comments"},"review_comment":{"href":"https://api.github.com/repos/dswarm/dswarm-backoffice-web/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dswarm/dswarm-backoffice-web/pulls/54/commits"},"statuses":{"href":"https://api.github.com/repos/dswarm/dswarm-backoffice-web/statuses/21078059002dfdb253bd3c83569dc376eddcb219"}}}}