{"action":"created","comment":{"url":"https://api.github.com/repos/raccoongang/edx-proctoring/pulls/comments/71081933","id":71081933,"diff_hunk":"@@ -50,21 +59,75 @@ def start_exam_callback(request, attempt_code):  # pylint: disable=unused-argume\n \n     if attempt['status'] in [ProctoredExamStudentAttemptStatus.created,\n                              ProctoredExamStudentAttemptStatus.download_software_clicked]:\n-        mark_exam_attempt_as_ready(attempt['proctored_exam']['id'], attempt['user']['id'])\n+        mark_exam_attempt_as_ready(\n+            attempt['proctored_exam']['id'], attempt['user']['id']\n+        )\n \n-    template = loader.get_template('proctored_exam/proctoring_launch_callback.html')\n+    template = loader.get_template(\n+        'proctored_exam/proctoring_launch_callback.html'\n+    )\n \n     poll_url = reverse(\n         'edx_proctoring.anonymous.proctoring_poll_status',\n         args=[attempt_code]\n     )\n \n+    provider_name = get_provider_name_by_course_id(\n+        attempt['proctored_exam']['course_id']\n+    )\n+    proctoring_settings = get_proctoring_settings(provider_name)\n     return HttpResponse(\n         template.render(\n             Context({\n                 'exam_attempt_status_url': poll_url,\n                 'platform_name': settings.PLATFORM_NAME,\n-                'link_urls': settings.PROCTORING_SETTINGS.get('LINK_URLS', {})\n+                'link_urls': proctoring_settings.get('LINK_URLS', {})\n+            })\n+        )\n+    )\n+\n+\n+def bulk_start_exams_callback(request, attempt_codes):  # pylint: disable=unused-argument\n+    \"\"\"\n+    A callback when SoftwareSecure completes setup and the exams should be started.\n+    A callback endpoint which is called when SoftwareSecure completes\n+    the proctoring setup and the exams should be started.\n+    NOTE: This returns HTML as it will be displayed in an embedded browser\n+    This is an authenticated endpoint and comaseparated attempt codes is passed\n+    in as part of the URL path\n+    IMPORTANT: This is an unauthenticated endpoint, so be VERY CAREFUL about extending\n+    this endpoint\n+    \"\"\"\n+    code_list = attempt_codes.split(',')","path":"edx_proctoring/callbacks.py","position":70,"original_position":70,"commit_id":"250aa940a2db1723f45ca2069d5b125bb0a1d4cb","original_commit_id":"250aa940a2db1723f45ca2069d5b125bb0a1d4cb","user":{"login":"dorosh","id":350621,"avatar_url":"https://avatars.githubusercontent.com/u/350621?v=3","gravatar_id":"","url":"https://api.github.com/users/dorosh","html_url":"https://github.com/dorosh","followers_url":"https://api.github.com/users/dorosh/followers","following_url":"https://api.github.com/users/dorosh/following{/other_user}","gists_url":"https://api.github.com/users/dorosh/gists{/gist_id}","starred_url":"https://api.github.com/users/dorosh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dorosh/subscriptions","organizations_url":"https://api.github.com/users/dorosh/orgs","repos_url":"https://api.github.com/users/dorosh/repos","events_url":"https://api.github.com/users/dorosh/events{/privacy}","received_events_url":"https://api.github.com/users/dorosh/received_events","type":"User","site_admin":false},"body":"Doesn't have sence, \r\nnext step -  if idiots filter return [] and valid 404","created_at":"2016-07-17T12:57:45Z","updated_at":"2016-07-17T12:57:45Z","html_url":"https://github.com/raccoongang/edx-proctoring/pull/7#discussion_r71081933","pull_request_url":"https://api.github.com/repos/raccoongang/edx-proctoring/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/raccoongang/edx-proctoring/pulls/comments/71081933"},"html":{"href":"https://github.com/raccoongang/edx-proctoring/pull/7#discussion_r71081933"},"pull_request":{"href":"https://api.github.com/repos/raccoongang/edx-proctoring/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/raccoongang/edx-proctoring/pulls/7","id":76609944,"html_url":"https://github.com/raccoongang/edx-proctoring/pull/7","diff_url":"https://github.com/raccoongang/edx-proctoring/pull/7.diff","patch_url":"https://github.com/raccoongang/edx-proctoring/pull/7.patch","issue_url":"https://api.github.com/repos/raccoongang/edx-proctoring/issues/7","number":7,"state":"open","locked":false,"title":"Internal PR for code review","user":{"login":"maxsocl","id":877401,"avatar_url":"https://avatars.githubusercontent.com/u/877401?v=3","gravatar_id":"","url":"https://api.github.com/users/maxsocl","html_url":"https://github.com/maxsocl","followers_url":"https://api.github.com/users/maxsocl/followers","following_url":"https://api.github.com/users/maxsocl/following{/other_user}","gists_url":"https://api.github.com/users/maxsocl/gists{/gist_id}","starred_url":"https://api.github.com/users/maxsocl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxsocl/subscriptions","organizations_url":"https://api.github.com/users/maxsocl/orgs","repos_url":"https://api.github.com/users/maxsocl/repos","events_url":"https://api.github.com/users/maxsocl/events{/privacy}","received_events_url":"https://api.github.com/users/maxsocl/received_events","type":"User","site_admin":false},"body":"Dorosh/multi proctoring 0.12.21","created_at":"2016-07-07T14:56:49Z","updated_at":"2016-07-17T12:57:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d96320990311a121db5bea97cb62cb40f063cbd0","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/raccoongang/edx-proctoring/pulls/7/commits","review_comments_url":"https://api.github.com/repos/raccoongang/edx-proctoring/pulls/7/comments","review_comment_url":"https://api.github.com/repos/raccoongang/edx-proctoring/pulls/comments{/number}","comments_url":"https://api.github.com/repos/raccoongang/edx-proctoring/issues/7/comments","statuses_url":"https://api.github.com/repos/raccoongang/edx-proctoring/statuses/250aa940a2db1723f45ca2069d5b125bb0a1d4cb","head":{"label":"raccoongang:dorosh/multi-proctoring-0.12.21","ref":"dorosh/multi-proctoring-0.12.21","sha":"250aa940a2db1723f45ca2069d5b125bb0a1d4cb","user":{"login":"raccoongang","id":11388447,"avatar_url":"https://avatars.githubusercontent.com/u/11388447?v=3","gravatar_id":"","url":"https://api.github.com/users/raccoongang","html_url":"https://github.com/raccoongang","followers_url":"https://api.github.com/users/raccoongang/followers","following_url":"https://api.github.com/users/raccoongang/following{/other_user}","gists_url":"https://api.github.com/users/raccoongang/gists{/gist_id}","starred_url":"https://api.github.com/users/raccoongang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raccoongang/subscriptions","organizations_url":"https://api.github.com/users/raccoongang/orgs","repos_url":"https://api.github.com/users/raccoongang/repos","events_url":"https://api.github.com/users/raccoongang/events{/privacy}","received_events_url":"https://api.github.com/users/raccoongang/received_events","type":"Organization","site_admin":false},"repo":{"id":44605091,"name":"edx-proctoring","full_name":"raccoongang/edx-proctoring","owner":{"login":"raccoongang","id":11388447,"avatar_url":"https://avatars.githubusercontent.com/u/11388447?v=3","gravatar_id":"","url":"https://api.github.com/users/raccoongang","html_url":"https://github.com/raccoongang","followers_url":"https://api.github.com/users/raccoongang/followers","following_url":"https://api.github.com/users/raccoongang/following{/other_user}","gists_url":"https://api.github.com/users/raccoongang/gists{/gist_id}","starred_url":"https://api.github.com/users/raccoongang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raccoongang/subscriptions","organizations_url":"https://api.github.com/users/raccoongang/orgs","repos_url":"https://api.github.com/users/raccoongang/repos","events_url":"https://api.github.com/users/raccoongang/events{/privacy}","received_events_url":"https://api.github.com/users/raccoongang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/raccoongang/edx-proctoring","description":"","fork":true,"url":"https://api.github.com/repos/raccoongang/edx-proctoring","forks_url":"https://api.github.com/repos/raccoongang/edx-proctoring/forks","keys_url":"https://api.github.com/repos/raccoongang/edx-proctoring/keys{/key_id}","collaborators_url":"https://api.github.com/repos/raccoongang/edx-proctoring/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/raccoongang/edx-proctoring/teams","hooks_url":"https://api.github.com/repos/raccoongang/edx-proctoring/hooks","issue_events_url":"https://api.github.com/repos/raccoongang/edx-proctoring/issues/events{/number}","events_url":"https://api.github.com/repos/raccoongang/edx-proctoring/events","assignees_url":"https://api.github.com/repos/raccoongang/edx-proctoring/assignees{/user}","branches_url":"https://api.github.com/repos/raccoongang/edx-proctoring/branches{/branch}","tags_url":"https://api.github.com/repos/raccoongang/edx-proctoring/tags","blobs_url":"https://api.github.com/repos/raccoongang/edx-proctoring/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/raccoongang/edx-proctoring/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/raccoongang/edx-proctoring/git/refs{/sha}","trees_url":"https://api.github.com/repos/raccoongang/edx-proctoring/git/trees{/sha}","statuses_url":"https://api.github.com/repos/raccoongang/edx-proctoring/statuses/{sha}","languages_url":"https://api.github.com/repos/raccoongang/edx-proctoring/languages","stargazers_url":"https://api.github.com/repos/raccoongang/edx-proctoring/stargazers","contributors_url":"https://api.github.com/repos/raccoongang/edx-proctoring/contributors","subscribers_url":"https://api.github.com/repos/raccoongang/edx-proctoring/subscribers","subscription_url":"https://api.github.com/repos/raccoongang/edx-proctoring/subscription","commits_url":"https://api.github.com/repos/raccoongang/edx-proctoring/commits{/sha}","git_commits_url":"https://api.github.com/repos/raccoongang/edx-proctoring/git/commits{/sha}","comments_url":"https://api.github.com/repos/raccoongang/edx-proctoring/comments{/number}","issue_comment_url":"https://api.github.com/repos/raccoongang/edx-proctoring/issues/comments{/number}","contents_url":"https://api.github.com/repos/raccoongang/edx-proctoring/contents/{+path}","compare_url":"https://api.github.com/repos/raccoongang/edx-proctoring/compare/{base}...{head}","merges_url":"https://api.github.com/repos/raccoongang/edx-proctoring/merges","archive_url":"https://api.github.com/repos/raccoongang/edx-proctoring/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/raccoongang/edx-proctoring/downloads","issues_url":"https://api.github.com/repos/raccoongang/edx-proctoring/issues{/number}","pulls_url":"https://api.github.com/repos/raccoongang/edx-proctoring/pulls{/number}","milestones_url":"https://api.github.com/repos/raccoongang/edx-proctoring/milestones{/number}","notifications_url":"https://api.github.com/repos/raccoongang/edx-proctoring/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/raccoongang/edx-proctoring/labels{/name}","releases_url":"https://api.github.com/repos/raccoongang/edx-proctoring/releases{/id}","deployments_url":"https://api.github.com/repos/raccoongang/edx-proctoring/deployments","created_at":"2015-10-20T12:35:57Z","updated_at":"2016-01-11T15:36:00Z","pushed_at":"2016-07-07T14:56:50Z","git_url":"git://github.com/raccoongang/edx-proctoring.git","ssh_url":"git@github.com:raccoongang/edx-proctoring.git","clone_url":"https://github.com/raccoongang/edx-proctoring.git","svn_url":"https://github.com/raccoongang/edx-proctoring","homepage":null,"size":1376,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"raccoongang:master","ref":"master","sha":"e7ca75c2e0662a5b4ca669d6a3e0bb032ed2f720","user":{"login":"raccoongang","id":11388447,"avatar_url":"https://avatars.githubusercontent.com/u/11388447?v=3","gravatar_id":"","url":"https://api.github.com/users/raccoongang","html_url":"https://github.com/raccoongang","followers_url":"https://api.github.com/users/raccoongang/followers","following_url":"https://api.github.com/users/raccoongang/following{/other_user}","gists_url":"https://api.github.com/users/raccoongang/gists{/gist_id}","starred_url":"https://api.github.com/users/raccoongang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raccoongang/subscriptions","organizations_url":"https://api.github.com/users/raccoongang/orgs","repos_url":"https://api.github.com/users/raccoongang/repos","events_url":"https://api.github.com/users/raccoongang/events{/privacy}","received_events_url":"https://api.github.com/users/raccoongang/received_events","type":"Organization","site_admin":false},"repo":{"id":44605091,"name":"edx-proctoring","full_name":"raccoongang/edx-proctoring","owner":{"login":"raccoongang","id":11388447,"avatar_url":"https://avatars.githubusercontent.com/u/11388447?v=3","gravatar_id":"","url":"https://api.github.com/users/raccoongang","html_url":"https://github.com/raccoongang","followers_url":"https://api.github.com/users/raccoongang/followers","following_url":"https://api.github.com/users/raccoongang/following{/other_user}","gists_url":"https://api.github.com/users/raccoongang/gists{/gist_id}","starred_url":"https://api.github.com/users/raccoongang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raccoongang/subscriptions","organizations_url":"https://api.github.com/users/raccoongang/orgs","repos_url":"https://api.github.com/users/raccoongang/repos","events_url":"https://api.github.com/users/raccoongang/events{/privacy}","received_events_url":"https://api.github.com/users/raccoongang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/raccoongang/edx-proctoring","description":"","fork":true,"url":"https://api.github.com/repos/raccoongang/edx-proctoring","forks_url":"https://api.github.com/repos/raccoongang/edx-proctoring/forks","keys_url":"https://api.github.com/repos/raccoongang/edx-proctoring/keys{/key_id}","collaborators_url":"https://api.github.com/repos/raccoongang/edx-proctoring/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/raccoongang/edx-proctoring/teams","hooks_url":"https://api.github.com/repos/raccoongang/edx-proctoring/hooks","issue_events_url":"https://api.github.com/repos/raccoongang/edx-proctoring/issues/events{/number}","events_url":"https://api.github.com/repos/raccoongang/edx-proctoring/events","assignees_url":"https://api.github.com/repos/raccoongang/edx-proctoring/assignees{/user}","branches_url":"https://api.github.com/repos/raccoongang/edx-proctoring/branches{/branch}","tags_url":"https://api.github.com/repos/raccoongang/edx-proctoring/tags","blobs_url":"https://api.github.com/repos/raccoongang/edx-proctoring/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/raccoongang/edx-proctoring/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/raccoongang/edx-proctoring/git/refs{/sha}","trees_url":"https://api.github.com/repos/raccoongang/edx-proctoring/git/trees{/sha}","statuses_url":"https://api.github.com/repos/raccoongang/edx-proctoring/statuses/{sha}","languages_url":"https://api.github.com/repos/raccoongang/edx-proctoring/languages","stargazers_url":"https://api.github.com/repos/raccoongang/edx-proctoring/stargazers","contributors_url":"https://api.github.com/repos/raccoongang/edx-proctoring/contributors","subscribers_url":"https://api.github.com/repos/raccoongang/edx-proctoring/subscribers","subscription_url":"https://api.github.com/repos/raccoongang/edx-proctoring/subscription","commits_url":"https://api.github.com/repos/raccoongang/edx-proctoring/commits{/sha}","git_commits_url":"https://api.github.com/repos/raccoongang/edx-proctoring/git/commits{/sha}","comments_url":"https://api.github.com/repos/raccoongang/edx-proctoring/comments{/number}","issue_comment_url":"https://api.github.com/repos/raccoongang/edx-proctoring/issues/comments{/number}","contents_url":"https://api.github.com/repos/raccoongang/edx-proctoring/contents/{+path}","compare_url":"https://api.github.com/repos/raccoongang/edx-proctoring/compare/{base}...{head}","merges_url":"https://api.github.com/repos/raccoongang/edx-proctoring/merges","archive_url":"https://api.github.com/repos/raccoongang/edx-proctoring/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/raccoongang/edx-proctoring/downloads","issues_url":"https://api.github.com/repos/raccoongang/edx-proctoring/issues{/number}","pulls_url":"https://api.github.com/repos/raccoongang/edx-proctoring/pulls{/number}","milestones_url":"https://api.github.com/repos/raccoongang/edx-proctoring/milestones{/number}","notifications_url":"https://api.github.com/repos/raccoongang/edx-proctoring/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/raccoongang/edx-proctoring/labels{/name}","releases_url":"https://api.github.com/repos/raccoongang/edx-proctoring/releases{/id}","deployments_url":"https://api.github.com/repos/raccoongang/edx-proctoring/deployments","created_at":"2015-10-20T12:35:57Z","updated_at":"2016-01-11T15:36:00Z","pushed_at":"2016-07-07T14:56:50Z","git_url":"git://github.com/raccoongang/edx-proctoring.git","ssh_url":"git@github.com:raccoongang/edx-proctoring.git","clone_url":"https://github.com/raccoongang/edx-proctoring.git","svn_url":"https://github.com/raccoongang/edx-proctoring","homepage":null,"size":1376,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/raccoongang/edx-proctoring/pulls/7"},"html":{"href":"https://github.com/raccoongang/edx-proctoring/pull/7"},"issue":{"href":"https://api.github.com/repos/raccoongang/edx-proctoring/issues/7"},"comments":{"href":"https://api.github.com/repos/raccoongang/edx-proctoring/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/raccoongang/edx-proctoring/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/raccoongang/edx-proctoring/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/raccoongang/edx-proctoring/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/raccoongang/edx-proctoring/statuses/250aa940a2db1723f45ca2069d5b125bb0a1d4cb"}}}}
{"actor":{"display_login":"dorosh"}}