{"action":"created","comment":{"url":"https://api.github.com/repos/iesl/openreview-py/pulls/comments/212421372","pull_request_review_id":149052172,"id":212421372,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMjQyMTM3Mg==","diff_hunk":"@@ -61,9 +71,9 @@ def create_profile(client, email, first, last, middle = None, allow_duplicates =\n             return profile\n \n         else:\n-            raise openreview.OpenReviewException('There is already a profile with this first: {0}, middle: {1}, last name: {2}'.format(first, middle, last))\n+            raise openreview.OpenReviewException('There is already a profile with this first and last name: \\\"{first} {last}\\\"'.format(first=first, last=last))\n     else:\n-        return profile\n+        raise openreview.OpenReviewException('There is already a profile with this email address: {}'.format(email))","path":"openreview/tools.py","position":32,"original_position":32,"commit_id":"908be47137563b478117dd3b534739745ad91577","original_commit_id":"908be47137563b478117dd3b534739745ad91577","user":{"login":"melisabok","id":545506,"node_id":"MDQ6VXNlcjU0NTUwNg==","avatar_url":"https://avatars0.githubusercontent.com/u/545506?v=4","gravatar_id":"","url":"https://api.github.com/users/melisabok","html_url":"https://github.com/melisabok","followers_url":"https://api.github.com/users/melisabok/followers","following_url":"https://api.github.com/users/melisabok/following{/other_user}","gists_url":"https://api.github.com/users/melisabok/gists{/gist_id}","starred_url":"https://api.github.com/users/melisabok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/melisabok/subscriptions","organizations_url":"https://api.github.com/users/melisabok/orgs","repos_url":"https://api.github.com/users/melisabok/repos","events_url":"https://api.github.com/users/melisabok/events{/privacy}","received_events_url":"https://api.github.com/users/melisabok/received_events","type":"User","site_admin":false},"body":"You are right, we should raise the exception. ","created_at":"2018-08-23T18:58:38Z","updated_at":"2018-08-23T18:58:38Z","html_url":"https://github.com/iesl/openreview-py/pull/153#discussion_r212421372","pull_request_url":"https://api.github.com/repos/iesl/openreview-py/pulls/153","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/iesl/openreview-py/pulls/comments/212421372"},"html":{"href":"https://github.com/iesl/openreview-py/pull/153#discussion_r212421372"},"pull_request":{"href":"https://api.github.com/repos/iesl/openreview-py/pulls/153"}}},"pull_request":{"url":"https://api.github.com/repos/iesl/openreview-py/pulls/153","id":210525364,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEwNTI1MzY0","html_url":"https://github.com/iesl/openreview-py/pull/153","diff_url":"https://github.com/iesl/openreview-py/pull/153.diff","patch_url":"https://github.com/iesl/openreview-py/pull/153.patch","issue_url":"https://api.github.com/repos/iesl/openreview-py/issues/153","number":153,"state":"open","locked":false,"title":"remove middlename validation in create_profile","user":{"login":"mspector","id":5531017,"node_id":"MDQ6VXNlcjU1MzEwMTc=","avatar_url":"https://avatars3.githubusercontent.com/u/5531017?v=4","gravatar_id":"","url":"https://api.github.com/users/mspector","html_url":"https://github.com/mspector","followers_url":"https://api.github.com/users/mspector/followers","following_url":"https://api.github.com/users/mspector/following{/other_user}","gists_url":"https://api.github.com/users/mspector/gists{/gist_id}","starred_url":"https://api.github.com/users/mspector/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mspector/subscriptions","organizations_url":"https://api.github.com/users/mspector/orgs","repos_url":"https://api.github.com/users/mspector/repos","events_url":"https://api.github.com/users/mspector/events{/privacy}","received_events_url":"https://api.github.com/users/mspector/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-08-23T17:46:01Z","updated_at":"2018-08-23T18:58:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"032c2ac928327cae33be9b7042da7ec72709a9df","assignee":null,"assignees":[],"requested_reviewers":[{"login":"sarankrishna920","id":32112875,"node_id":"MDQ6VXNlcjMyMTEyODc1","avatar_url":"https://avatars2.githubusercontent.com/u/32112875?v=4","gravatar_id":"","url":"https://api.github.com/users/sarankrishna920","html_url":"https://github.com/sarankrishna920","followers_url":"https://api.github.com/users/sarankrishna920/followers","following_url":"https://api.github.com/users/sarankrishna920/following{/other_user}","gists_url":"https://api.github.com/users/sarankrishna920/gists{/gist_id}","starred_url":"https://api.github.com/users/sarankrishna920/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarankrishna920/subscriptions","organizations_url":"https://api.github.com/users/sarankrishna920/orgs","repos_url":"https://api.github.com/users/sarankrishna920/repos","events_url":"https://api.github.com/users/sarankrishna920/events{/privacy}","received_events_url":"https://api.github.com/users/sarankrishna920/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/iesl/openreview-py/pulls/153/commits","review_comments_url":"https://api.github.com/repos/iesl/openreview-py/pulls/153/comments","review_comment_url":"https://api.github.com/repos/iesl/openreview-py/pulls/comments{/number}","comments_url":"https://api.github.com/repos/iesl/openreview-py/issues/153/comments","statuses_url":"https://api.github.com/repos/iesl/openreview-py/statuses/908be47137563b478117dd3b534739745ad91577","head":{"label":"iesl:feature/remove-middlename-validation","ref":"feature/remove-middlename-validation","sha":"908be47137563b478117dd3b534739745ad91577","user":{"login":"iesl","id":1295730,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyOTU3MzA=","avatar_url":"https://avatars1.githubusercontent.com/u/1295730?v=4","gravatar_id":"","url":"https://api.github.com/users/iesl","html_url":"https://github.com/iesl","followers_url":"https://api.github.com/users/iesl/followers","following_url":"https://api.github.com/users/iesl/following{/other_user}","gists_url":"https://api.github.com/users/iesl/gists{/gist_id}","starred_url":"https://api.github.com/users/iesl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iesl/subscriptions","organizations_url":"https://api.github.com/users/iesl/orgs","repos_url":"https://api.github.com/users/iesl/repos","events_url":"https://api.github.com/users/iesl/events{/privacy}","received_events_url":"https://api.github.com/users/iesl/received_events","type":"Organization","site_admin":false},"repo":{"id":64843981,"node_id":"MDEwOlJlcG9zaXRvcnk2NDg0Mzk4MQ==","name":"openreview-py","full_name":"iesl/openreview-py","owner":{"login":"iesl","id":1295730,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyOTU3MzA=","avatar_url":"https://avatars1.githubusercontent.com/u/1295730?v=4","gravatar_id":"","url":"https://api.github.com/users/iesl","html_url":"https://github.com/iesl","followers_url":"https://api.github.com/users/iesl/followers","following_url":"https://api.github.com/users/iesl/following{/other_user}","gists_url":"https://api.github.com/users/iesl/gists{/gist_id}","starred_url":"https://api.github.com/users/iesl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iesl/subscriptions","organizations_url":"https://api.github.com/users/iesl/orgs","repos_url":"https://api.github.com/users/iesl/repos","events_url":"https://api.github.com/users/iesl/events{/privacy}","received_events_url":"https://api.github.com/users/iesl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/iesl/openreview-py","description":null,"fork":false,"url":"https://api.github.com/repos/iesl/openreview-py","forks_url":"https://api.github.com/repos/iesl/openreview-py/forks","keys_url":"https://api.github.com/repos/iesl/openreview-py/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iesl/openreview-py/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iesl/openreview-py/teams","hooks_url":"https://api.github.com/repos/iesl/openreview-py/hooks","issue_events_url":"https://api.github.com/repos/iesl/openreview-py/issues/events{/number}","events_url":"https://api.github.com/repos/iesl/openreview-py/events","assignees_url":"https://api.github.com/repos/iesl/openreview-py/assignees{/user}","branches_url":"https://api.github.com/repos/iesl/openreview-py/branches{/branch}","tags_url":"https://api.github.com/repos/iesl/openreview-py/tags","blobs_url":"https://api.github.com/repos/iesl/openreview-py/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iesl/openreview-py/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iesl/openreview-py/git/refs{/sha}","trees_url":"https://api.github.com/repos/iesl/openreview-py/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iesl/openreview-py/statuses/{sha}","languages_url":"https://api.github.com/repos/iesl/openreview-py/languages","stargazers_url":"https://api.github.com/repos/iesl/openreview-py/stargazers","contributors_url":"https://api.github.com/repos/iesl/openreview-py/contributors","subscribers_url":"https://api.github.com/repos/iesl/openreview-py/subscribers","subscription_url":"https://api.github.com/repos/iesl/openreview-py/subscription","commits_url":"https://api.github.com/repos/iesl/openreview-py/commits{/sha}","git_commits_url":"https://api.github.com/repos/iesl/openreview-py/git/commits{/sha}","comments_url":"https://api.github.com/repos/iesl/openreview-py/comments{/number}","issue_comment_url":"https://api.github.com/repos/iesl/openreview-py/issues/comments{/number}","contents_url":"https://api.github.com/repos/iesl/openreview-py/contents/{+path}","compare_url":"https://api.github.com/repos/iesl/openreview-py/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iesl/openreview-py/merges","archive_url":"https://api.github.com/repos/iesl/openreview-py/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iesl/openreview-py/downloads","issues_url":"https://api.github.com/repos/iesl/openreview-py/issues{/number}","pulls_url":"https://api.github.com/repos/iesl/openreview-py/pulls{/number}","milestones_url":"https://api.github.com/repos/iesl/openreview-py/milestones{/number}","notifications_url":"https://api.github.com/repos/iesl/openreview-py/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iesl/openreview-py/labels{/name}","releases_url":"https://api.github.com/repos/iesl/openreview-py/releases{/id}","deployments_url":"https://api.github.com/repos/iesl/openreview-py/deployments","created_at":"2016-08-03T12:22:06Z","updated_at":"2018-08-23T18:36:53Z","pushed_at":"2018-08-23T18:36:55Z","git_url":"git://github.com/iesl/openreview-py.git","ssh_url":"git@github.com:iesl/openreview-py.git","clone_url":"https://github.com/iesl/openreview-py.git","svn_url":"https://github.com/iesl/openreview-py","homepage":null,"size":2209,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":16,"license":null,"forks":1,"open_issues":16,"watchers":5,"default_branch":"master"}},"base":{"label":"iesl:master","ref":"master","sha":"634ae6ab6b86d8a8a725de4c354b756e52489513","user":{"login":"iesl","id":1295730,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyOTU3MzA=","avatar_url":"https://avatars1.githubusercontent.com/u/1295730?v=4","gravatar_id":"","url":"https://api.github.com/users/iesl","html_url":"https://github.com/iesl","followers_url":"https://api.github.com/users/iesl/followers","following_url":"https://api.github.com/users/iesl/following{/other_user}","gists_url":"https://api.github.com/users/iesl/gists{/gist_id}","starred_url":"https://api.github.com/users/iesl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iesl/subscriptions","organizations_url":"https://api.github.com/users/iesl/orgs","repos_url":"https://api.github.com/users/iesl/repos","events_url":"https://api.github.com/users/iesl/events{/privacy}","received_events_url":"https://api.github.com/users/iesl/received_events","type":"Organization","site_admin":false},"repo":{"id":64843981,"node_id":"MDEwOlJlcG9zaXRvcnk2NDg0Mzk4MQ==","name":"openreview-py","full_name":"iesl/openreview-py","owner":{"login":"iesl","id":1295730,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyOTU3MzA=","avatar_url":"https://avatars1.githubusercontent.com/u/1295730?v=4","gravatar_id":"","url":"https://api.github.com/users/iesl","html_url":"https://github.com/iesl","followers_url":"https://api.github.com/users/iesl/followers","following_url":"https://api.github.com/users/iesl/following{/other_user}","gists_url":"https://api.github.com/users/iesl/gists{/gist_id}","starred_url":"https://api.github.com/users/iesl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iesl/subscriptions","organizations_url":"https://api.github.com/users/iesl/orgs","repos_url":"https://api.github.com/users/iesl/repos","events_url":"https://api.github.com/users/iesl/events{/privacy}","received_events_url":"https://api.github.com/users/iesl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/iesl/openreview-py","description":null,"fork":false,"url":"https://api.github.com/repos/iesl/openreview-py","forks_url":"https://api.github.com/repos/iesl/openreview-py/forks","keys_url":"https://api.github.com/repos/iesl/openreview-py/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iesl/openreview-py/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iesl/openreview-py/teams","hooks_url":"https://api.github.com/repos/iesl/openreview-py/hooks","issue_events_url":"https://api.github.com/repos/iesl/openreview-py/issues/events{/number}","events_url":"https://api.github.com/repos/iesl/openreview-py/events","assignees_url":"https://api.github.com/repos/iesl/openreview-py/assignees{/user}","branches_url":"https://api.github.com/repos/iesl/openreview-py/branches{/branch}","tags_url":"https://api.github.com/repos/iesl/openreview-py/tags","blobs_url":"https://api.github.com/repos/iesl/openreview-py/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iesl/openreview-py/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iesl/openreview-py/git/refs{/sha}","trees_url":"https://api.github.com/repos/iesl/openreview-py/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iesl/openreview-py/statuses/{sha}","languages_url":"https://api.github.com/repos/iesl/openreview-py/languages","stargazers_url":"https://api.github.com/repos/iesl/openreview-py/stargazers","contributors_url":"https://api.github.com/repos/iesl/openreview-py/contributors","subscribers_url":"https://api.github.com/repos/iesl/openreview-py/subscribers","subscription_url":"https://api.github.com/repos/iesl/openreview-py/subscription","commits_url":"https://api.github.com/repos/iesl/openreview-py/commits{/sha}","git_commits_url":"https://api.github.com/repos/iesl/openreview-py/git/commits{/sha}","comments_url":"https://api.github.com/repos/iesl/openreview-py/comments{/number}","issue_comment_url":"https://api.github.com/repos/iesl/openreview-py/issues/comments{/number}","contents_url":"https://api.github.com/repos/iesl/openreview-py/contents/{+path}","compare_url":"https://api.github.com/repos/iesl/openreview-py/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iesl/openreview-py/merges","archive_url":"https://api.github.com/repos/iesl/openreview-py/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iesl/openreview-py/downloads","issues_url":"https://api.github.com/repos/iesl/openreview-py/issues{/number}","pulls_url":"https://api.github.com/repos/iesl/openreview-py/pulls{/number}","milestones_url":"https://api.github.com/repos/iesl/openreview-py/milestones{/number}","notifications_url":"https://api.github.com/repos/iesl/openreview-py/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iesl/openreview-py/labels{/name}","releases_url":"https://api.github.com/repos/iesl/openreview-py/releases{/id}","deployments_url":"https://api.github.com/repos/iesl/openreview-py/deployments","created_at":"2016-08-03T12:22:06Z","updated_at":"2018-08-23T18:36:53Z","pushed_at":"2018-08-23T18:36:55Z","git_url":"git://github.com/iesl/openreview-py.git","ssh_url":"git@github.com:iesl/openreview-py.git","clone_url":"https://github.com/iesl/openreview-py.git","svn_url":"https://github.com/iesl/openreview-py","homepage":null,"size":2209,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":16,"license":null,"forks":1,"open_issues":16,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/iesl/openreview-py/pulls/153"},"html":{"href":"https://github.com/iesl/openreview-py/pull/153"},"issue":{"href":"https://api.github.com/repos/iesl/openreview-py/issues/153"},"comments":{"href":"https://api.github.com/repos/iesl/openreview-py/issues/153/comments"},"review_comments":{"href":"https://api.github.com/repos/iesl/openreview-py/pulls/153/comments"},"review_comment":{"href":"https://api.github.com/repos/iesl/openreview-py/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/iesl/openreview-py/pulls/153/commits"},"statuses":{"href":"https://api.github.com/repos/iesl/openreview-py/statuses/908be47137563b478117dd3b534739745ad91577"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"melisabok"}}