{"action":"created","comment":{"url":"https://api.github.com/repos/DigitalCampus/django-oppia/pulls/comments/229852554","pull_request_review_id":170453283,"id":229852554,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyOTg1MjU1NA==","diff_hunk":"@@ -276,8 +276,8 @@ def upload_step2(request, course_id, editing=False):\n                                'editing': editing,\n                                'title': page_title})\n \n-def add_course_tags(form, course):\n-    tags = form.cleaned_data.get(\"tags\").strip().split(\",\")\n+def add_course_tags(form, course, user):\n+    tags = form.cleaned_data.get(\"tags\", \"\").strip().split(\",\")","path":"oppia/views.py","position":16,"original_position":16,"commit_id":"e243b500b83cfae56fb5d7ddb9456d35572ae989","original_commit_id":"e243b500b83cfae56fb5d7ddb9456d35572ae989","user":{"login":"bennylope","id":102509,"node_id":"MDQ6VXNlcjEwMjUwOQ==","avatar_url":"https://avatars2.githubusercontent.com/u/102509?v=4","gravatar_id":"","url":"https://api.github.com/users/bennylope","html_url":"https://github.com/bennylope","followers_url":"https://api.github.com/users/bennylope/followers","following_url":"https://api.github.com/users/bennylope/following{/other_user}","gists_url":"https://api.github.com/users/bennylope/gists{/gist_id}","starred_url":"https://api.github.com/users/bennylope/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bennylope/subscriptions","organizations_url":"https://api.github.com/users/bennylope/orgs","repos_url":"https://api.github.com/users/bennylope/repos","events_url":"https://api.github.com/users/bennylope/events{/privacy}","received_events_url":"https://api.github.com/users/bennylope/received_events","type":"User","site_admin":false},"body":"Also updated this line because the `dict.get` method returns `None` if no other default is provided if the key is not present, and that would result in an `AttributeError`.","created_at":"2018-10-31T20:18:48Z","updated_at":"2018-10-31T20:18:48Z","html_url":"https://github.com/DigitalCampus/django-oppia/pull/513#discussion_r229852554","pull_request_url":"https://api.github.com/repos/DigitalCampus/django-oppia/pulls/513","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/DigitalCampus/django-oppia/pulls/comments/229852554"},"html":{"href":"https://github.com/DigitalCampus/django-oppia/pull/513#discussion_r229852554"},"pull_request":{"href":"https://api.github.com/repos/DigitalCampus/django-oppia/pulls/513"}}},"pull_request":{"url":"https://api.github.com/repos/DigitalCampus/django-oppia/pulls/513","id":227427893,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI3NDI3ODkz","html_url":"https://github.com/DigitalCampus/django-oppia/pull/513","diff_url":"https://github.com/DigitalCampus/django-oppia/pull/513.diff","patch_url":"https://github.com/DigitalCampus/django-oppia/pull/513.patch","issue_url":"https://api.github.com/repos/DigitalCampus/django-oppia/issues/513","number":513,"state":"open","locked":false,"title":"Add user to add_course_tags function","user":{"login":"bennylope","id":102509,"node_id":"MDQ6VXNlcjEwMjUwOQ==","avatar_url":"https://avatars2.githubusercontent.com/u/102509?v=4","gravatar_id":"","url":"https://api.github.com/users/bennylope","html_url":"https://github.com/bennylope","followers_url":"https://api.github.com/users/bennylope/followers","following_url":"https://api.github.com/users/bennylope/following{/other_user}","gists_url":"https://api.github.com/users/bennylope/gists{/gist_id}","starred_url":"https://api.github.com/users/bennylope/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bennylope/subscriptions","organizations_url":"https://api.github.com/users/bennylope/orgs","repos_url":"https://api.github.com/users/bennylope/repos","events_url":"https://api.github.com/users/bennylope/events{/privacy}","received_events_url":"https://api.github.com/users/bennylope/received_events","type":"User","site_admin":false},"body":"`request` was not previously passed to the `add_course_tags` function\r\nand results in a NameError being raised when that code is run.","created_at":"2018-10-31T20:17:04Z","updated_at":"2018-10-31T20:18:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"11364598cf61b5697c8ac08c417bea2c12fe3a42","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/DigitalCampus/django-oppia/pulls/513/commits","review_comments_url":"https://api.github.com/repos/DigitalCampus/django-oppia/pulls/513/comments","review_comment_url":"https://api.github.com/repos/DigitalCampus/django-oppia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DigitalCampus/django-oppia/issues/513/comments","statuses_url":"https://api.github.com/repos/DigitalCampus/django-oppia/statuses/e243b500b83cfae56fb5d7ddb9456d35572ae989","head":{"label":"bennylope:fix/add-course-tags","ref":"fix/add-course-tags","sha":"e243b500b83cfae56fb5d7ddb9456d35572ae989","user":{"login":"bennylope","id":102509,"node_id":"MDQ6VXNlcjEwMjUwOQ==","avatar_url":"https://avatars2.githubusercontent.com/u/102509?v=4","gravatar_id":"","url":"https://api.github.com/users/bennylope","html_url":"https://github.com/bennylope","followers_url":"https://api.github.com/users/bennylope/followers","following_url":"https://api.github.com/users/bennylope/following{/other_user}","gists_url":"https://api.github.com/users/bennylope/gists{/gist_id}","starred_url":"https://api.github.com/users/bennylope/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bennylope/subscriptions","organizations_url":"https://api.github.com/users/bennylope/orgs","repos_url":"https://api.github.com/users/bennylope/repos","events_url":"https://api.github.com/users/bennylope/events{/privacy}","received_events_url":"https://api.github.com/users/bennylope/received_events","type":"User","site_admin":false},"repo":{"id":155617846,"node_id":"MDEwOlJlcG9zaXRvcnkxNTU2MTc4NDY=","name":"django-oppia","full_name":"bennylope/django-oppia","private":false,"owner":{"login":"bennylope","id":102509,"node_id":"MDQ6VXNlcjEwMjUwOQ==","avatar_url":"https://avatars2.githubusercontent.com/u/102509?v=4","gravatar_id":"","url":"https://api.github.com/users/bennylope","html_url":"https://github.com/bennylope","followers_url":"https://api.github.com/users/bennylope/followers","following_url":"https://api.github.com/users/bennylope/following{/other_user}","gists_url":"https://api.github.com/users/bennylope/gists{/gist_id}","starred_url":"https://api.github.com/users/bennylope/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bennylope/subscriptions","organizations_url":"https://api.github.com/users/bennylope/orgs","repos_url":"https://api.github.com/users/bennylope/repos","events_url":"https://api.github.com/users/bennylope/events{/privacy}","received_events_url":"https://api.github.com/users/bennylope/received_events","type":"User","site_admin":false},"html_url":"https://github.com/bennylope/django-oppia","description":"OppiaMobile learning server","fork":true,"url":"https://api.github.com/repos/bennylope/django-oppia","forks_url":"https://api.github.com/repos/bennylope/django-oppia/forks","keys_url":"https://api.github.com/repos/bennylope/django-oppia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bennylope/django-oppia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bennylope/django-oppia/teams","hooks_url":"https://api.github.com/repos/bennylope/django-oppia/hooks","issue_events_url":"https://api.github.com/repos/bennylope/django-oppia/issues/events{/number}","events_url":"https://api.github.com/repos/bennylope/django-oppia/events","assignees_url":"https://api.github.com/repos/bennylope/django-oppia/assignees{/user}","branches_url":"https://api.github.com/repos/bennylope/django-oppia/branches{/branch}","tags_url":"https://api.github.com/repos/bennylope/django-oppia/tags","blobs_url":"https://api.github.com/repos/bennylope/django-oppia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bennylope/django-oppia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bennylope/django-oppia/git/refs{/sha}","trees_url":"https://api.github.com/repos/bennylope/django-oppia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bennylope/django-oppia/statuses/{sha}","languages_url":"https://api.github.com/repos/bennylope/django-oppia/languages","stargazers_url":"https://api.github.com/repos/bennylope/django-oppia/stargazers","contributors_url":"https://api.github.com/repos/bennylope/django-oppia/contributors","subscribers_url":"https://api.github.com/repos/bennylope/django-oppia/subscribers","subscription_url":"https://api.github.com/repos/bennylope/django-oppia/subscription","commits_url":"https://api.github.com/repos/bennylope/django-oppia/commits{/sha}","git_commits_url":"https://api.github.com/repos/bennylope/django-oppia/git/commits{/sha}","comments_url":"https://api.github.com/repos/bennylope/django-oppia/comments{/number}","issue_comment_url":"https://api.github.com/repos/bennylope/django-oppia/issues/comments{/number}","contents_url":"https://api.github.com/repos/bennylope/django-oppia/contents/{+path}","compare_url":"https://api.github.com/repos/bennylope/django-oppia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bennylope/django-oppia/merges","archive_url":"https://api.github.com/repos/bennylope/django-oppia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bennylope/django-oppia/downloads","issues_url":"https://api.github.com/repos/bennylope/django-oppia/issues{/number}","pulls_url":"https://api.github.com/repos/bennylope/django-oppia/pulls{/number}","milestones_url":"https://api.github.com/repos/bennylope/django-oppia/milestones{/number}","notifications_url":"https://api.github.com/repos/bennylope/django-oppia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bennylope/django-oppia/labels{/name}","releases_url":"https://api.github.com/repos/bennylope/django-oppia/releases{/id}","deployments_url":"https://api.github.com/repos/bennylope/django-oppia/deployments","created_at":"2018-10-31T20:15:47Z","updated_at":"2018-10-31T20:15:50Z","pushed_at":"2018-10-31T20:16:20Z","git_url":"git://github.com/bennylope/django-oppia.git","ssh_url":"git@github.com:bennylope/django-oppia.git","clone_url":"https://github.com/bennylope/django-oppia.git","svn_url":"https://github.com/bennylope/django-oppia","homepage":"https://digital-campus.org/oppiamobile/overview/","size":4278,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"DigitalCampus:master","ref":"master","sha":"a6ee93f723ff08dd3a2fbac68a7f3052e4caf52f","user":{"login":"DigitalCampus","id":2911301,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5MTEzMDE=","avatar_url":"https://avatars0.githubusercontent.com/u/2911301?v=4","gravatar_id":"","url":"https://api.github.com/users/DigitalCampus","html_url":"https://github.com/DigitalCampus","followers_url":"https://api.github.com/users/DigitalCampus/followers","following_url":"https://api.github.com/users/DigitalCampus/following{/other_user}","gists_url":"https://api.github.com/users/DigitalCampus/gists{/gist_id}","starred_url":"https://api.github.com/users/DigitalCampus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DigitalCampus/subscriptions","organizations_url":"https://api.github.com/users/DigitalCampus/orgs","repos_url":"https://api.github.com/users/DigitalCampus/repos","events_url":"https://api.github.com/users/DigitalCampus/events{/privacy}","received_events_url":"https://api.github.com/users/DigitalCampus/received_events","type":"Organization","site_admin":false},"repo":{"id":10770151,"node_id":"MDEwOlJlcG9zaXRvcnkxMDc3MDE1MQ==","name":"django-oppia","full_name":"DigitalCampus/django-oppia","private":false,"owner":{"login":"DigitalCampus","id":2911301,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5MTEzMDE=","avatar_url":"https://avatars0.githubusercontent.com/u/2911301?v=4","gravatar_id":"","url":"https://api.github.com/users/DigitalCampus","html_url":"https://github.com/DigitalCampus","followers_url":"https://api.github.com/users/DigitalCampus/followers","following_url":"https://api.github.com/users/DigitalCampus/following{/other_user}","gists_url":"https://api.github.com/users/DigitalCampus/gists{/gist_id}","starred_url":"https://api.github.com/users/DigitalCampus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DigitalCampus/subscriptions","organizations_url":"https://api.github.com/users/DigitalCampus/orgs","repos_url":"https://api.github.com/users/DigitalCampus/repos","events_url":"https://api.github.com/users/DigitalCampus/events{/privacy}","received_events_url":"https://api.github.com/users/DigitalCampus/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/DigitalCampus/django-oppia","description":"OppiaMobile learning server","fork":false,"url":"https://api.github.com/repos/DigitalCampus/django-oppia","forks_url":"https://api.github.com/repos/DigitalCampus/django-oppia/forks","keys_url":"https://api.github.com/repos/DigitalCampus/django-oppia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DigitalCampus/django-oppia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DigitalCampus/django-oppia/teams","hooks_url":"https://api.github.com/repos/DigitalCampus/django-oppia/hooks","issue_events_url":"https://api.github.com/repos/DigitalCampus/django-oppia/issues/events{/number}","events_url":"https://api.github.com/repos/DigitalCampus/django-oppia/events","assignees_url":"https://api.github.com/repos/DigitalCampus/django-oppia/assignees{/user}","branches_url":"https://api.github.com/repos/DigitalCampus/django-oppia/branches{/branch}","tags_url":"https://api.github.com/repos/DigitalCampus/django-oppia/tags","blobs_url":"https://api.github.com/repos/DigitalCampus/django-oppia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DigitalCampus/django-oppia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DigitalCampus/django-oppia/git/refs{/sha}","trees_url":"https://api.github.com/repos/DigitalCampus/django-oppia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DigitalCampus/django-oppia/statuses/{sha}","languages_url":"https://api.github.com/repos/DigitalCampus/django-oppia/languages","stargazers_url":"https://api.github.com/repos/DigitalCampus/django-oppia/stargazers","contributors_url":"https://api.github.com/repos/DigitalCampus/django-oppia/contributors","subscribers_url":"https://api.github.com/repos/DigitalCampus/django-oppia/subscribers","subscription_url":"https://api.github.com/repos/DigitalCampus/django-oppia/subscription","commits_url":"https://api.github.com/repos/DigitalCampus/django-oppia/commits{/sha}","git_commits_url":"https://api.github.com/repos/DigitalCampus/django-oppia/git/commits{/sha}","comments_url":"https://api.github.com/repos/DigitalCampus/django-oppia/comments{/number}","issue_comment_url":"https://api.github.com/repos/DigitalCampus/django-oppia/issues/comments{/number}","contents_url":"https://api.github.com/repos/DigitalCampus/django-oppia/contents/{+path}","compare_url":"https://api.github.com/repos/DigitalCampus/django-oppia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DigitalCampus/django-oppia/merges","archive_url":"https://api.github.com/repos/DigitalCampus/django-oppia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DigitalCampus/django-oppia/downloads","issues_url":"https://api.github.com/repos/DigitalCampus/django-oppia/issues{/number}","pulls_url":"https://api.github.com/repos/DigitalCampus/django-oppia/pulls{/number}","milestones_url":"https://api.github.com/repos/DigitalCampus/django-oppia/milestones{/number}","notifications_url":"https://api.github.com/repos/DigitalCampus/django-oppia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DigitalCampus/django-oppia/labels{/name}","releases_url":"https://api.github.com/repos/DigitalCampus/django-oppia/releases{/id}","deployments_url":"https://api.github.com/repos/DigitalCampus/django-oppia/deployments","created_at":"2013-06-18T18:19:34Z","updated_at":"2018-07-09T16:53:16Z","pushed_at":"2018-10-31T20:17:04Z","git_url":"git://github.com/DigitalCampus/django-oppia.git","ssh_url":"git@github.com:DigitalCampus/django-oppia.git","clone_url":"https://github.com/DigitalCampus/django-oppia.git","svn_url":"https://github.com/DigitalCampus/django-oppia","homepage":"https://digital-campus.org/oppiamobile/overview/","size":4278,"stargazers_count":9,"watchers_count":9,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":27,"mirror_url":null,"archived":false,"open_issues_count":92,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":27,"open_issues":92,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DigitalCampus/django-oppia/pulls/513"},"html":{"href":"https://github.com/DigitalCampus/django-oppia/pull/513"},"issue":{"href":"https://api.github.com/repos/DigitalCampus/django-oppia/issues/513"},"comments":{"href":"https://api.github.com/repos/DigitalCampus/django-oppia/issues/513/comments"},"review_comments":{"href":"https://api.github.com/repos/DigitalCampus/django-oppia/pulls/513/comments"},"review_comment":{"href":"https://api.github.com/repos/DigitalCampus/django-oppia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DigitalCampus/django-oppia/pulls/513/commits"},"statuses":{"href":"https://api.github.com/repos/DigitalCampus/django-oppia/statuses/e243b500b83cfae56fb5d7ddb9456d35572ae989"}},"author_association":"NONE"}}
{"actor":{"display_login":"bennylope"}}