{"action":"created","comment":{"url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/pulls/comments/61352811","id":61352811,"diff_hunk":"@@ -61,10 +61,11 @@ def home():\n def create_auth_token():\n     # get server token from header (convert to str to fix weird encoding issue on production)\n     server_token = request.headers.get('X-Server-Token', type=str)\n-    user = str(request.get_json()['user'])\n-    name = str(request.get_json()['name'])\n-    email = str(request.get_json()['email'])\n-    duration = int(request.get_json()['duration'])\n+    json_data = request.get_json()\n+    user = str(json_data['user'])\n+    name = str(json_data['name'])\n+    email = str(json_data['email'])\n+    duration = int(json_data['duration'])","path":"server/views.py","position":59,"original_position":12,"commit_id":"e37665886a7bb309aad0b8875c9c18b8eaea31dd","original_commit_id":"e37665886a7bb309aad0b8875c9c18b8eaea31dd","user":{"login":"buske","id":4251264,"avatar_url":"https://avatars.githubusercontent.com/u/4251264?v=3","gravatar_id":"","url":"https://api.github.com/users/buske","html_url":"https://github.com/buske","followers_url":"https://api.github.com/users/buske/followers","following_url":"https://api.github.com/users/buske/following{/other_user}","gists_url":"https://api.github.com/users/buske/gists{/gist_id}","starred_url":"https://api.github.com/users/buske/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buske/subscriptions","organizations_url":"https://api.github.com/users/buske/orgs","repos_url":"https://api.github.com/users/buske/repos","events_url":"https://api.github.com/users/buske/events{/privacy}","received_events_url":"https://api.github.com/users/buske/received_events","type":"User","site_admin":false},"body":"Does this gracefully handle the case that one of these arguments is left out (e.g. duration)?","created_at":"2016-04-27T23:16:34Z","updated_at":"2016-04-27T23:16:34Z","html_url":"https://github.com/sickkids-ccm/dcc-file-transfer/pull/6#discussion_r61352811","pull_request_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/pulls/comments/61352811"},"html":{"href":"https://github.com/sickkids-ccm/dcc-file-transfer/pull/6#discussion_r61352811"},"pull_request":{"href":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/pulls/6","id":67571546,"html_url":"https://github.com/sickkids-ccm/dcc-file-transfer/pull/6","diff_url":"https://github.com/sickkids-ccm/dcc-file-transfer/pull/6.diff","patch_url":"https://github.com/sickkids-ccm/dcc-file-transfer/pull/6.patch","issue_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/issues/6","number":6,"state":"open","locked":false,"title":"Adds users into schema","user":{"login":"ManaseD","id":16751722,"avatar_url":"https://avatars.githubusercontent.com/u/16751722?v=3","gravatar_id":"","url":"https://api.github.com/users/ManaseD","html_url":"https://github.com/ManaseD","followers_url":"https://api.github.com/users/ManaseD/followers","following_url":"https://api.github.com/users/ManaseD/following{/other_user}","gists_url":"https://api.github.com/users/ManaseD/gists{/gist_id}","starred_url":"https://api.github.com/users/ManaseD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ManaseD/subscriptions","organizations_url":"https://api.github.com/users/ManaseD/orgs","repos_url":"https://api.github.com/users/ManaseD/repos","events_url":"https://api.github.com/users/ManaseD/events{/privacy}","received_events_url":"https://api.github.com/users/ManaseD/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-22T20:53:50Z","updated_at":"2016-04-27T23:16:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e450cbd692d29a3e930520ff5628bc376078da95","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/pulls/6/commits","review_comments_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/pulls/6/comments","review_comment_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/issues/6/comments","statuses_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/statuses/e37665886a7bb309aad0b8875c9c18b8eaea31dd","head":{"label":"sickkids-ccm:add-users","ref":"add-users","sha":"e37665886a7bb309aad0b8875c9c18b8eaea31dd","user":{"login":"sickkids-ccm","id":17131344,"avatar_url":"https://avatars.githubusercontent.com/u/17131344?v=3","gravatar_id":"","url":"https://api.github.com/users/sickkids-ccm","html_url":"https://github.com/sickkids-ccm","followers_url":"https://api.github.com/users/sickkids-ccm/followers","following_url":"https://api.github.com/users/sickkids-ccm/following{/other_user}","gists_url":"https://api.github.com/users/sickkids-ccm/gists{/gist_id}","starred_url":"https://api.github.com/users/sickkids-ccm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sickkids-ccm/subscriptions","organizations_url":"https://api.github.com/users/sickkids-ccm/orgs","repos_url":"https://api.github.com/users/sickkids-ccm/repos","events_url":"https://api.github.com/users/sickkids-ccm/events{/privacy}","received_events_url":"https://api.github.com/users/sickkids-ccm/received_events","type":"Organization","site_admin":false},"repo":{"id":51331691,"name":"dcc-file-transfer","full_name":"sickkids-ccm/dcc-file-transfer","owner":{"login":"sickkids-ccm","id":17131344,"avatar_url":"https://avatars.githubusercontent.com/u/17131344?v=3","gravatar_id":"","url":"https://api.github.com/users/sickkids-ccm","html_url":"https://github.com/sickkids-ccm","followers_url":"https://api.github.com/users/sickkids-ccm/followers","following_url":"https://api.github.com/users/sickkids-ccm/following{/other_user}","gists_url":"https://api.github.com/users/sickkids-ccm/gists{/gist_id}","starred_url":"https://api.github.com/users/sickkids-ccm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sickkids-ccm/subscriptions","organizations_url":"https://api.github.com/users/sickkids-ccm/orgs","repos_url":"https://api.github.com/users/sickkids-ccm/repos","events_url":"https://api.github.com/users/sickkids-ccm/events{/privacy}","received_events_url":"https://api.github.com/users/sickkids-ccm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sickkids-ccm/dcc-file-transfer","description":"Server and client for transferring large files to the CCM's Data Coordination Centre (DCC)","fork":false,"url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer","forks_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/forks","keys_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/teams","hooks_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/hooks","issue_events_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/issues/events{/number}","events_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/events","assignees_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/assignees{/user}","branches_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/branches{/branch}","tags_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/tags","blobs_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/git/refs{/sha}","trees_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/statuses/{sha}","languages_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/languages","stargazers_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/stargazers","contributors_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/contributors","subscribers_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/subscribers","subscription_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/subscription","commits_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/commits{/sha}","git_commits_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/git/commits{/sha}","comments_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/comments{/number}","issue_comment_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/issues/comments{/number}","contents_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/contents/{+path}","compare_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/merges","archive_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/downloads","issues_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/issues{/number}","pulls_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/pulls{/number}","milestones_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/milestones{/number}","notifications_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/labels{/name}","releases_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/releases{/id}","deployments_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/deployments","created_at":"2016-02-08T22:24:16Z","updated_at":"2016-02-09T20:17:47Z","pushed_at":"2016-04-27T22:57:15Z","git_url":"git://github.com/sickkids-ccm/dcc-file-transfer.git","ssh_url":"git@github.com:sickkids-ccm/dcc-file-transfer.git","clone_url":"https://github.com/sickkids-ccm/dcc-file-transfer.git","svn_url":"https://github.com/sickkids-ccm/dcc-file-transfer","homepage":"","size":180,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"sickkids-ccm:master","ref":"master","sha":"38eb90c04fdb7d6b98c5d8920b870d79cc1e3741","user":{"login":"sickkids-ccm","id":17131344,"avatar_url":"https://avatars.githubusercontent.com/u/17131344?v=3","gravatar_id":"","url":"https://api.github.com/users/sickkids-ccm","html_url":"https://github.com/sickkids-ccm","followers_url":"https://api.github.com/users/sickkids-ccm/followers","following_url":"https://api.github.com/users/sickkids-ccm/following{/other_user}","gists_url":"https://api.github.com/users/sickkids-ccm/gists{/gist_id}","starred_url":"https://api.github.com/users/sickkids-ccm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sickkids-ccm/subscriptions","organizations_url":"https://api.github.com/users/sickkids-ccm/orgs","repos_url":"https://api.github.com/users/sickkids-ccm/repos","events_url":"https://api.github.com/users/sickkids-ccm/events{/privacy}","received_events_url":"https://api.github.com/users/sickkids-ccm/received_events","type":"Organization","site_admin":false},"repo":{"id":51331691,"name":"dcc-file-transfer","full_name":"sickkids-ccm/dcc-file-transfer","owner":{"login":"sickkids-ccm","id":17131344,"avatar_url":"https://avatars.githubusercontent.com/u/17131344?v=3","gravatar_id":"","url":"https://api.github.com/users/sickkids-ccm","html_url":"https://github.com/sickkids-ccm","followers_url":"https://api.github.com/users/sickkids-ccm/followers","following_url":"https://api.github.com/users/sickkids-ccm/following{/other_user}","gists_url":"https://api.github.com/users/sickkids-ccm/gists{/gist_id}","starred_url":"https://api.github.com/users/sickkids-ccm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sickkids-ccm/subscriptions","organizations_url":"https://api.github.com/users/sickkids-ccm/orgs","repos_url":"https://api.github.com/users/sickkids-ccm/repos","events_url":"https://api.github.com/users/sickkids-ccm/events{/privacy}","received_events_url":"https://api.github.com/users/sickkids-ccm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sickkids-ccm/dcc-file-transfer","description":"Server and client for transferring large files to the CCM's Data Coordination Centre (DCC)","fork":false,"url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer","forks_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/forks","keys_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/teams","hooks_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/hooks","issue_events_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/issues/events{/number}","events_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/events","assignees_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/assignees{/user}","branches_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/branches{/branch}","tags_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/tags","blobs_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/git/refs{/sha}","trees_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/statuses/{sha}","languages_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/languages","stargazers_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/stargazers","contributors_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/contributors","subscribers_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/subscribers","subscription_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/subscription","commits_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/commits{/sha}","git_commits_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/git/commits{/sha}","comments_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/comments{/number}","issue_comment_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/issues/comments{/number}","contents_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/contents/{+path}","compare_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/merges","archive_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/downloads","issues_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/issues{/number}","pulls_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/pulls{/number}","milestones_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/milestones{/number}","notifications_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/labels{/name}","releases_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/releases{/id}","deployments_url":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/deployments","created_at":"2016-02-08T22:24:16Z","updated_at":"2016-02-09T20:17:47Z","pushed_at":"2016-04-27T22:57:15Z","git_url":"git://github.com/sickkids-ccm/dcc-file-transfer.git","ssh_url":"git@github.com:sickkids-ccm/dcc-file-transfer.git","clone_url":"https://github.com/sickkids-ccm/dcc-file-transfer.git","svn_url":"https://github.com/sickkids-ccm/dcc-file-transfer","homepage":"","size":180,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/pulls/6"},"html":{"href":"https://github.com/sickkids-ccm/dcc-file-transfer/pull/6"},"issue":{"href":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/issues/6"},"comments":{"href":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/sickkids-ccm/dcc-file-transfer/statuses/e37665886a7bb309aad0b8875c9c18b8eaea31dd"}}}}