{"action":"created","comment":{"url":"https://api.github.com/repos/fle-internal/content-curation/pulls/comments/88775240","pull_request_review_id":9341529,"id":88775240,"diff_hunk":"@@ -299,6 +298,15 @@ def convert_channel_thumbnail(thumbnail):\n         encoding = base64.b64encode(file_obj.read()).decode('utf-8')\n     return \"data:image/png;base64,\" + encoding\n \n+def map_tags_to_node(kolibrinode, ccnode):\n+    tags_to_add = []\n+\n+    for tag in ccnode.tags.all():\n+        tags_to_add.append(kolibrimodels.ContentTag.objects.get(pk=tag.pk))\n+\n+    kolibrinode.tags = tags_to_add","path":"contentcuration/contentcuration/management/commands/exportchannel.py","position":27,"original_position":27,"commit_id":"1b0e5313df19ef9ea3b46aa56923a0ea0be040cc","original_commit_id":"126f8fc4740b1ca6bb24d311a045949514c2d251","user":{"login":"aronasorman","id":191955,"avatar_url":"https://avatars.githubusercontent.com/u/191955?v=3","gravatar_id":"","url":"https://api.github.com/users/aronasorman","html_url":"https://github.com/aronasorman","followers_url":"https://api.github.com/users/aronasorman/followers","following_url":"https://api.github.com/users/aronasorman/following{/other_user}","gists_url":"https://api.github.com/users/aronasorman/gists{/gist_id}","starred_url":"https://api.github.com/users/aronasorman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aronasorman/subscriptions","organizations_url":"https://api.github.com/users/aronasorman/orgs","repos_url":"https://api.github.com/users/aronasorman/repos","events_url":"https://api.github.com/users/aronasorman/events{/privacy}","received_events_url":"https://api.github.com/users/aronasorman/received_events","type":"User","site_admin":false},"body":"Hmm this function can be made more succinct, but after writing it out it's harder to read. Let's use this simpler version :)","created_at":"2016-11-19T08:08:00Z","updated_at":"2016-11-19T08:11:41Z","html_url":"https://github.com/fle-internal/content-curation/pull/104#discussion_r88775240","pull_request_url":"https://api.github.com/repos/fle-internal/content-curation/pulls/104","_links":{"self":{"href":"https://api.github.com/repos/fle-internal/content-curation/pulls/comments/88775240"},"html":{"href":"https://github.com/fle-internal/content-curation/pull/104#discussion_r88775240"},"pull_request":{"href":"https://api.github.com/repos/fle-internal/content-curation/pulls/104"}}},"pull_request":{"url":"https://api.github.com/repos/fle-internal/content-curation/pulls/104","id":94474166,"html_url":"https://github.com/fle-internal/content-curation/pull/104","diff_url":"https://github.com/fle-internal/content-curation/pull/104.diff","patch_url":"https://github.com/fle-internal/content-curation/pull/104.patch","issue_url":"https://api.github.com/repos/fle-internal/content-curation/issues/104","number":104,"state":"open","locked":false,"title":"Restore channel command added","user":{"login":"jayoshih","id":7447496,"avatar_url":"https://avatars.githubusercontent.com/u/7447496?v=3","gravatar_id":"","url":"https://api.github.com/users/jayoshih","html_url":"https://github.com/jayoshih","followers_url":"https://api.github.com/users/jayoshih/followers","following_url":"https://api.github.com/users/jayoshih/following{/other_user}","gists_url":"https://api.github.com/users/jayoshih/gists{/gist_id}","starred_url":"https://api.github.com/users/jayoshih/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayoshih/subscriptions","organizations_url":"https://api.github.com/users/jayoshih/orgs","repos_url":"https://api.github.com/users/jayoshih/repos","events_url":"https://api.github.com/users/jayoshih/events{/privacy}","received_events_url":"https://api.github.com/users/jayoshih/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-19T07:32:04Z","updated_at":"2016-11-19T08:11:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2a34f2cb5a3c4876f536eef1a2488315c337c04a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/fle-internal/content-curation/pulls/104/commits","review_comments_url":"https://api.github.com/repos/fle-internal/content-curation/pulls/104/comments","review_comment_url":"https://api.github.com/repos/fle-internal/content-curation/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fle-internal/content-curation/issues/104/comments","statuses_url":"https://api.github.com/repos/fle-internal/content-curation/statuses/1b0e5313df19ef9ea3b46aa56923a0ea0be040cc","head":{"label":"jayoshih:restore","ref":"restore","sha":"1b0e5313df19ef9ea3b46aa56923a0ea0be040cc","user":{"login":"jayoshih","id":7447496,"avatar_url":"https://avatars.githubusercontent.com/u/7447496?v=3","gravatar_id":"","url":"https://api.github.com/users/jayoshih","html_url":"https://github.com/jayoshih","followers_url":"https://api.github.com/users/jayoshih/followers","following_url":"https://api.github.com/users/jayoshih/following{/other_user}","gists_url":"https://api.github.com/users/jayoshih/gists{/gist_id}","starred_url":"https://api.github.com/users/jayoshih/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayoshih/subscriptions","organizations_url":"https://api.github.com/users/jayoshih/orgs","repos_url":"https://api.github.com/users/jayoshih/repos","events_url":"https://api.github.com/users/jayoshih/events{/privacy}","received_events_url":"https://api.github.com/users/jayoshih/received_events","type":"User","site_admin":false},"repo":{"id":38459600,"name":"content-curation","full_name":"jayoshih/content-curation","owner":{"login":"jayoshih","id":7447496,"avatar_url":"https://avatars.githubusercontent.com/u/7447496?v=3","gravatar_id":"","url":"https://api.github.com/users/jayoshih","html_url":"https://github.com/jayoshih","followers_url":"https://api.github.com/users/jayoshih/followers","following_url":"https://api.github.com/users/jayoshih/following{/other_user}","gists_url":"https://api.github.com/users/jayoshih/gists{/gist_id}","starred_url":"https://api.github.com/users/jayoshih/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayoshih/subscriptions","organizations_url":"https://api.github.com/users/jayoshih/orgs","repos_url":"https://api.github.com/users/jayoshih/repos","events_url":"https://api.github.com/users/jayoshih/events{/privacy}","received_events_url":"https://api.github.com/users/jayoshih/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jayoshih/content-curation","description":null,"fork":true,"url":"https://api.github.com/repos/jayoshih/content-curation","forks_url":"https://api.github.com/repos/jayoshih/content-curation/forks","keys_url":"https://api.github.com/repos/jayoshih/content-curation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jayoshih/content-curation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jayoshih/content-curation/teams","hooks_url":"https://api.github.com/repos/jayoshih/content-curation/hooks","issue_events_url":"https://api.github.com/repos/jayoshih/content-curation/issues/events{/number}","events_url":"https://api.github.com/repos/jayoshih/content-curation/events","assignees_url":"https://api.github.com/repos/jayoshih/content-curation/assignees{/user}","branches_url":"https://api.github.com/repos/jayoshih/content-curation/branches{/branch}","tags_url":"https://api.github.com/repos/jayoshih/content-curation/tags","blobs_url":"https://api.github.com/repos/jayoshih/content-curation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jayoshih/content-curation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jayoshih/content-curation/git/refs{/sha}","trees_url":"https://api.github.com/repos/jayoshih/content-curation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jayoshih/content-curation/statuses/{sha}","languages_url":"https://api.github.com/repos/jayoshih/content-curation/languages","stargazers_url":"https://api.github.com/repos/jayoshih/content-curation/stargazers","contributors_url":"https://api.github.com/repos/jayoshih/content-curation/contributors","subscribers_url":"https://api.github.com/repos/jayoshih/content-curation/subscribers","subscription_url":"https://api.github.com/repos/jayoshih/content-curation/subscription","commits_url":"https://api.github.com/repos/jayoshih/content-curation/commits{/sha}","git_commits_url":"https://api.github.com/repos/jayoshih/content-curation/git/commits{/sha}","comments_url":"https://api.github.com/repos/jayoshih/content-curation/comments{/number}","issue_comment_url":"https://api.github.com/repos/jayoshih/content-curation/issues/comments{/number}","contents_url":"https://api.github.com/repos/jayoshih/content-curation/contents/{+path}","compare_url":"https://api.github.com/repos/jayoshih/content-curation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jayoshih/content-curation/merges","archive_url":"https://api.github.com/repos/jayoshih/content-curation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jayoshih/content-curation/downloads","issues_url":"https://api.github.com/repos/jayoshih/content-curation/issues{/number}","pulls_url":"https://api.github.com/repos/jayoshih/content-curation/pulls{/number}","milestones_url":"https://api.github.com/repos/jayoshih/content-curation/milestones{/number}","notifications_url":"https://api.github.com/repos/jayoshih/content-curation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jayoshih/content-curation/labels{/name}","releases_url":"https://api.github.com/repos/jayoshih/content-curation/releases{/id}","deployments_url":"https://api.github.com/repos/jayoshih/content-curation/deployments","created_at":"2015-07-02T22:18:07Z","updated_at":"2016-11-09T20:10:37Z","pushed_at":"2016-11-19T07:59:40Z","git_url":"git://github.com/jayoshih/content-curation.git","ssh_url":"git@github.com:jayoshih/content-curation.git","clone_url":"https://github.com/jayoshih/content-curation.git","svn_url":"https://github.com/jayoshih/content-curation","homepage":null,"size":150378,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"fle-internal:unicef_demo","ref":"unicef_demo","sha":"36dc976f8f24620f18bf7491acd504a0552b0872","user":{"login":"fle-internal","id":6564452,"avatar_url":"https://avatars.githubusercontent.com/u/6564452?v=3","gravatar_id":"","url":"https://api.github.com/users/fle-internal","html_url":"https://github.com/fle-internal","followers_url":"https://api.github.com/users/fle-internal/followers","following_url":"https://api.github.com/users/fle-internal/following{/other_user}","gists_url":"https://api.github.com/users/fle-internal/gists{/gist_id}","starred_url":"https://api.github.com/users/fle-internal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fle-internal/subscriptions","organizations_url":"https://api.github.com/users/fle-internal/orgs","repos_url":"https://api.github.com/users/fle-internal/repos","events_url":"https://api.github.com/users/fle-internal/events{/privacy}","received_events_url":"https://api.github.com/users/fle-internal/received_events","type":"Organization","site_admin":false},"repo":{"id":35178170,"name":"content-curation","full_name":"fle-internal/content-curation","owner":{"login":"fle-internal","id":6564452,"avatar_url":"https://avatars.githubusercontent.com/u/6564452?v=3","gravatar_id":"","url":"https://api.github.com/users/fle-internal","html_url":"https://github.com/fle-internal","followers_url":"https://api.github.com/users/fle-internal/followers","following_url":"https://api.github.com/users/fle-internal/following{/other_user}","gists_url":"https://api.github.com/users/fle-internal/gists{/gist_id}","starred_url":"https://api.github.com/users/fle-internal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fle-internal/subscriptions","organizations_url":"https://api.github.com/users/fle-internal/orgs","repos_url":"https://api.github.com/users/fle-internal/repos","events_url":"https://api.github.com/users/fle-internal/events{/privacy}","received_events_url":"https://api.github.com/users/fle-internal/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fle-internal/content-curation","description":null,"fork":false,"url":"https://api.github.com/repos/fle-internal/content-curation","forks_url":"https://api.github.com/repos/fle-internal/content-curation/forks","keys_url":"https://api.github.com/repos/fle-internal/content-curation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fle-internal/content-curation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fle-internal/content-curation/teams","hooks_url":"https://api.github.com/repos/fle-internal/content-curation/hooks","issue_events_url":"https://api.github.com/repos/fle-internal/content-curation/issues/events{/number}","events_url":"https://api.github.com/repos/fle-internal/content-curation/events","assignees_url":"https://api.github.com/repos/fle-internal/content-curation/assignees{/user}","branches_url":"https://api.github.com/repos/fle-internal/content-curation/branches{/branch}","tags_url":"https://api.github.com/repos/fle-internal/content-curation/tags","blobs_url":"https://api.github.com/repos/fle-internal/content-curation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fle-internal/content-curation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fle-internal/content-curation/git/refs{/sha}","trees_url":"https://api.github.com/repos/fle-internal/content-curation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fle-internal/content-curation/statuses/{sha}","languages_url":"https://api.github.com/repos/fle-internal/content-curation/languages","stargazers_url":"https://api.github.com/repos/fle-internal/content-curation/stargazers","contributors_url":"https://api.github.com/repos/fle-internal/content-curation/contributors","subscribers_url":"https://api.github.com/repos/fle-internal/content-curation/subscribers","subscription_url":"https://api.github.com/repos/fle-internal/content-curation/subscription","commits_url":"https://api.github.com/repos/fle-internal/content-curation/commits{/sha}","git_commits_url":"https://api.github.com/repos/fle-internal/content-curation/git/commits{/sha}","comments_url":"https://api.github.com/repos/fle-internal/content-curation/comments{/number}","issue_comment_url":"https://api.github.com/repos/fle-internal/content-curation/issues/comments{/number}","contents_url":"https://api.github.com/repos/fle-internal/content-curation/contents/{+path}","compare_url":"https://api.github.com/repos/fle-internal/content-curation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fle-internal/content-curation/merges","archive_url":"https://api.github.com/repos/fle-internal/content-curation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fle-internal/content-curation/downloads","issues_url":"https://api.github.com/repos/fle-internal/content-curation/issues{/number}","pulls_url":"https://api.github.com/repos/fle-internal/content-curation/pulls{/number}","milestones_url":"https://api.github.com/repos/fle-internal/content-curation/milestones{/number}","notifications_url":"https://api.github.com/repos/fle-internal/content-curation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fle-internal/content-curation/labels{/name}","releases_url":"https://api.github.com/repos/fle-internal/content-curation/releases{/id}","deployments_url":"https://api.github.com/repos/fle-internal/content-curation/deployments","created_at":"2015-05-06T19:18:28Z","updated_at":"2016-02-05T15:08:29Z","pushed_at":"2016-11-19T07:59:41Z","git_url":"git://github.com/fle-internal/content-curation.git","ssh_url":"git@github.com:fle-internal/content-curation.git","clone_url":"https://github.com/fle-internal/content-curation.git","svn_url":"https://github.com/fle-internal/content-curation","homepage":null,"size":150353,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":4,"forks":13,"open_issues":4,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fle-internal/content-curation/pulls/104"},"html":{"href":"https://github.com/fle-internal/content-curation/pull/104"},"issue":{"href":"https://api.github.com/repos/fle-internal/content-curation/issues/104"},"comments":{"href":"https://api.github.com/repos/fle-internal/content-curation/issues/104/comments"},"review_comments":{"href":"https://api.github.com/repos/fle-internal/content-curation/pulls/104/comments"},"review_comment":{"href":"https://api.github.com/repos/fle-internal/content-curation/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fle-internal/content-curation/pulls/104/commits"},"statuses":{"href":"https://api.github.com/repos/fle-internal/content-curation/statuses/1b0e5313df19ef9ea3b46aa56923a0ea0be040cc"}}}}
{"actor":{"display_login":"aronasorman"}}