{"action":"created","comment":{"url":"https://api.github.com/repos/Murali-group/GraphSpace/pulls/comments/166675880","pull_request_review_id":94777660,"id":166675880,"diff_hunk":"@@ -89,8 +92,15 @@ var groupsPage = {\n                 },\n                 errorCallback = function (xhr, status, errorThrown) {\n                     // This method is called when  error occurs while adding group.\n-                    alert(xhr.responseText);\n+                    if(xhr.responseJSON.error_message.includes('duplicate key')) {\n+                        alert('Group name ' + group['name'] + ' already exists!')\n+                    }\n+                    else {\n+                        alert(xhr.responseText);\n+                    }\n                 });\n+\n+            $('#CreateGroupBtn').attr('disabled', false);","path":"static/js/groups_page.js","position":30,"original_position":30,"commit_id":"eabf299f0f8d19dea264ee81eba453efb62131e3","original_commit_id":"eabf299f0f8d19dea264ee81eba453efb62131e3","user":{"login":"adbharadwaj","id":3481095,"avatar_url":"https://avatars2.githubusercontent.com/u/3481095?v=4","gravatar_id":"","url":"https://api.github.com/users/adbharadwaj","html_url":"https://github.com/adbharadwaj","followers_url":"https://api.github.com/users/adbharadwaj/followers","following_url":"https://api.github.com/users/adbharadwaj/following{/other_user}","gists_url":"https://api.github.com/users/adbharadwaj/gists{/gist_id}","starred_url":"https://api.github.com/users/adbharadwaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adbharadwaj/subscriptions","organizations_url":"https://api.github.com/users/adbharadwaj/orgs","repos_url":"https://api.github.com/users/adbharadwaj/repos","events_url":"https://api.github.com/users/adbharadwaj/events{/privacy}","received_events_url":"https://api.github.com/users/adbharadwaj/received_events","type":"User","site_admin":false},"body":"@HitRam What are the different scenarios when this line will be called?","created_at":"2018-02-07T16:35:13Z","updated_at":"2018-02-07T16:40:11Z","html_url":"https://github.com/Murali-group/GraphSpace/pull/338#discussion_r166675880","pull_request_url":"https://api.github.com/repos/Murali-group/GraphSpace/pulls/338","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/Murali-group/GraphSpace/pulls/comments/166675880"},"html":{"href":"https://github.com/Murali-group/GraphSpace/pull/338#discussion_r166675880"},"pull_request":{"href":"https://api.github.com/repos/Murali-group/GraphSpace/pulls/338"}}},"pull_request":{"url":"https://api.github.com/repos/Murali-group/GraphSpace/pulls/338","id":166191979,"html_url":"https://github.com/Murali-group/GraphSpace/pull/338","diff_url":"https://github.com/Murali-group/GraphSpace/pull/338.diff","patch_url":"https://github.com/Murali-group/GraphSpace/pull/338.patch","issue_url":"https://api.github.com/repos/Murali-group/GraphSpace/issues/338","number":338,"state":"open","locked":false,"title":"Disable buttons on submit and give proper error message.","user":{"login":"HitRam","id":19632768,"avatar_url":"https://avatars3.githubusercontent.com/u/19632768?v=4","gravatar_id":"","url":"https://api.github.com/users/HitRam","html_url":"https://github.com/HitRam","followers_url":"https://api.github.com/users/HitRam/followers","following_url":"https://api.github.com/users/HitRam/following{/other_user}","gists_url":"https://api.github.com/users/HitRam/gists{/gist_id}","starred_url":"https://api.github.com/users/HitRam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HitRam/subscriptions","organizations_url":"https://api.github.com/users/HitRam/orgs","repos_url":"https://api.github.com/users/HitRam/repos","events_url":"https://api.github.com/users/HitRam/events{/privacy}","received_events_url":"https://api.github.com/users/HitRam/received_events","type":"User","site_admin":false},"body":"The buttons were disabled on 'Create Group' and\r\n'Update Group'. Also the error message was changed\r\nto 'Group name <group_name> already exists!'\r\n\r\nfixes #323 ","created_at":"2018-01-31T08:18:04Z","updated_at":"2018-02-07T16:40:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3d5a411b7fdbd95b05c7c1b84c31e8bb5b913b8a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/Murali-group/GraphSpace/pulls/338/commits","review_comments_url":"https://api.github.com/repos/Murali-group/GraphSpace/pulls/338/comments","review_comment_url":"https://api.github.com/repos/Murali-group/GraphSpace/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Murali-group/GraphSpace/issues/338/comments","statuses_url":"https://api.github.com/repos/Murali-group/GraphSpace/statuses/eabf299f0f8d19dea264ee81eba453efb62131e3","head":{"label":"HitRam:fix-buttons","ref":"fix-buttons","sha":"eabf299f0f8d19dea264ee81eba453efb62131e3","user":{"login":"HitRam","id":19632768,"avatar_url":"https://avatars3.githubusercontent.com/u/19632768?v=4","gravatar_id":"","url":"https://api.github.com/users/HitRam","html_url":"https://github.com/HitRam","followers_url":"https://api.github.com/users/HitRam/followers","following_url":"https://api.github.com/users/HitRam/following{/other_user}","gists_url":"https://api.github.com/users/HitRam/gists{/gist_id}","starred_url":"https://api.github.com/users/HitRam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HitRam/subscriptions","organizations_url":"https://api.github.com/users/HitRam/orgs","repos_url":"https://api.github.com/users/HitRam/repos","events_url":"https://api.github.com/users/HitRam/events{/privacy}","received_events_url":"https://api.github.com/users/HitRam/received_events","type":"User","site_admin":false},"repo":{"id":119648206,"name":"GraphSpace","full_name":"HitRam/GraphSpace","owner":{"login":"HitRam","id":19632768,"avatar_url":"https://avatars3.githubusercontent.com/u/19632768?v=4","gravatar_id":"","url":"https://api.github.com/users/HitRam","html_url":"https://github.com/HitRam","followers_url":"https://api.github.com/users/HitRam/followers","following_url":"https://api.github.com/users/HitRam/following{/other_user}","gists_url":"https://api.github.com/users/HitRam/gists{/gist_id}","starred_url":"https://api.github.com/users/HitRam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HitRam/subscriptions","organizations_url":"https://api.github.com/users/HitRam/orgs","repos_url":"https://api.github.com/users/HitRam/repos","events_url":"https://api.github.com/users/HitRam/events{/privacy}","received_events_url":"https://api.github.com/users/HitRam/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/HitRam/GraphSpace","description":"The interactive graph sharing website. ","fork":true,"url":"https://api.github.com/repos/HitRam/GraphSpace","forks_url":"https://api.github.com/repos/HitRam/GraphSpace/forks","keys_url":"https://api.github.com/repos/HitRam/GraphSpace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HitRam/GraphSpace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HitRam/GraphSpace/teams","hooks_url":"https://api.github.com/repos/HitRam/GraphSpace/hooks","issue_events_url":"https://api.github.com/repos/HitRam/GraphSpace/issues/events{/number}","events_url":"https://api.github.com/repos/HitRam/GraphSpace/events","assignees_url":"https://api.github.com/repos/HitRam/GraphSpace/assignees{/user}","branches_url":"https://api.github.com/repos/HitRam/GraphSpace/branches{/branch}","tags_url":"https://api.github.com/repos/HitRam/GraphSpace/tags","blobs_url":"https://api.github.com/repos/HitRam/GraphSpace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HitRam/GraphSpace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HitRam/GraphSpace/git/refs{/sha}","trees_url":"https://api.github.com/repos/HitRam/GraphSpace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HitRam/GraphSpace/statuses/{sha}","languages_url":"https://api.github.com/repos/HitRam/GraphSpace/languages","stargazers_url":"https://api.github.com/repos/HitRam/GraphSpace/stargazers","contributors_url":"https://api.github.com/repos/HitRam/GraphSpace/contributors","subscribers_url":"https://api.github.com/repos/HitRam/GraphSpace/subscribers","subscription_url":"https://api.github.com/repos/HitRam/GraphSpace/subscription","commits_url":"https://api.github.com/repos/HitRam/GraphSpace/commits{/sha}","git_commits_url":"https://api.github.com/repos/HitRam/GraphSpace/git/commits{/sha}","comments_url":"https://api.github.com/repos/HitRam/GraphSpace/comments{/number}","issue_comment_url":"https://api.github.com/repos/HitRam/GraphSpace/issues/comments{/number}","contents_url":"https://api.github.com/repos/HitRam/GraphSpace/contents/{+path}","compare_url":"https://api.github.com/repos/HitRam/GraphSpace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HitRam/GraphSpace/merges","archive_url":"https://api.github.com/repos/HitRam/GraphSpace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HitRam/GraphSpace/downloads","issues_url":"https://api.github.com/repos/HitRam/GraphSpace/issues{/number}","pulls_url":"https://api.github.com/repos/HitRam/GraphSpace/pulls{/number}","milestones_url":"https://api.github.com/repos/HitRam/GraphSpace/milestones{/number}","notifications_url":"https://api.github.com/repos/HitRam/GraphSpace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HitRam/GraphSpace/labels{/name}","releases_url":"https://api.github.com/repos/HitRam/GraphSpace/releases{/id}","deployments_url":"https://api.github.com/repos/HitRam/GraphSpace/deployments","created_at":"2018-01-31T07:01:44Z","updated_at":"2018-01-31T07:01:46Z","pushed_at":"2018-02-03T12:35:44Z","git_url":"git://github.com/HitRam/GraphSpace.git","ssh_url":"git@github.com:HitRam/GraphSpace.git","clone_url":"https://github.com/HitRam/GraphSpace.git","svn_url":"https://github.com/HitRam/GraphSpace","homepage":"http://graphspace.org","size":327290,"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":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Murali-group:develop","ref":"develop","sha":"96bdff30dd7e3e3aef85088d9026a6bdc5e533f5","user":{"login":"Murali-group","id":13351601,"avatar_url":"https://avatars2.githubusercontent.com/u/13351601?v=4","gravatar_id":"","url":"https://api.github.com/users/Murali-group","html_url":"https://github.com/Murali-group","followers_url":"https://api.github.com/users/Murali-group/followers","following_url":"https://api.github.com/users/Murali-group/following{/other_user}","gists_url":"https://api.github.com/users/Murali-group/gists{/gist_id}","starred_url":"https://api.github.com/users/Murali-group/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Murali-group/subscriptions","organizations_url":"https://api.github.com/users/Murali-group/orgs","repos_url":"https://api.github.com/users/Murali-group/repos","events_url":"https://api.github.com/users/Murali-group/events{/privacy}","received_events_url":"https://api.github.com/users/Murali-group/received_events","type":"Organization","site_admin":false},"repo":{"id":26179496,"name":"GraphSpace","full_name":"Murali-group/GraphSpace","owner":{"login":"Murali-group","id":13351601,"avatar_url":"https://avatars2.githubusercontent.com/u/13351601?v=4","gravatar_id":"","url":"https://api.github.com/users/Murali-group","html_url":"https://github.com/Murali-group","followers_url":"https://api.github.com/users/Murali-group/followers","following_url":"https://api.github.com/users/Murali-group/following{/other_user}","gists_url":"https://api.github.com/users/Murali-group/gists{/gist_id}","starred_url":"https://api.github.com/users/Murali-group/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Murali-group/subscriptions","organizations_url":"https://api.github.com/users/Murali-group/orgs","repos_url":"https://api.github.com/users/Murali-group/repos","events_url":"https://api.github.com/users/Murali-group/events{/privacy}","received_events_url":"https://api.github.com/users/Murali-group/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Murali-group/GraphSpace","description":"The interactive graph sharing website. ","fork":false,"url":"https://api.github.com/repos/Murali-group/GraphSpace","forks_url":"https://api.github.com/repos/Murali-group/GraphSpace/forks","keys_url":"https://api.github.com/repos/Murali-group/GraphSpace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Murali-group/GraphSpace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Murali-group/GraphSpace/teams","hooks_url":"https://api.github.com/repos/Murali-group/GraphSpace/hooks","issue_events_url":"https://api.github.com/repos/Murali-group/GraphSpace/issues/events{/number}","events_url":"https://api.github.com/repos/Murali-group/GraphSpace/events","assignees_url":"https://api.github.com/repos/Murali-group/GraphSpace/assignees{/user}","branches_url":"https://api.github.com/repos/Murali-group/GraphSpace/branches{/branch}","tags_url":"https://api.github.com/repos/Murali-group/GraphSpace/tags","blobs_url":"https://api.github.com/repos/Murali-group/GraphSpace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Murali-group/GraphSpace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Murali-group/GraphSpace/git/refs{/sha}","trees_url":"https://api.github.com/repos/Murali-group/GraphSpace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Murali-group/GraphSpace/statuses/{sha}","languages_url":"https://api.github.com/repos/Murali-group/GraphSpace/languages","stargazers_url":"https://api.github.com/repos/Murali-group/GraphSpace/stargazers","contributors_url":"https://api.github.com/repos/Murali-group/GraphSpace/contributors","subscribers_url":"https://api.github.com/repos/Murali-group/GraphSpace/subscribers","subscription_url":"https://api.github.com/repos/Murali-group/GraphSpace/subscription","commits_url":"https://api.github.com/repos/Murali-group/GraphSpace/commits{/sha}","git_commits_url":"https://api.github.com/repos/Murali-group/GraphSpace/git/commits{/sha}","comments_url":"https://api.github.com/repos/Murali-group/GraphSpace/comments{/number}","issue_comment_url":"https://api.github.com/repos/Murali-group/GraphSpace/issues/comments{/number}","contents_url":"https://api.github.com/repos/Murali-group/GraphSpace/contents/{+path}","compare_url":"https://api.github.com/repos/Murali-group/GraphSpace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Murali-group/GraphSpace/merges","archive_url":"https://api.github.com/repos/Murali-group/GraphSpace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Murali-group/GraphSpace/downloads","issues_url":"https://api.github.com/repos/Murali-group/GraphSpace/issues{/number}","pulls_url":"https://api.github.com/repos/Murali-group/GraphSpace/pulls{/number}","milestones_url":"https://api.github.com/repos/Murali-group/GraphSpace/milestones{/number}","notifications_url":"https://api.github.com/repos/Murali-group/GraphSpace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Murali-group/GraphSpace/labels{/name}","releases_url":"https://api.github.com/repos/Murali-group/GraphSpace/releases{/id}","deployments_url":"https://api.github.com/repos/Murali-group/GraphSpace/deployments","created_at":"2014-11-04T17:13:27Z","updated_at":"2018-02-07T16:32:05Z","pushed_at":"2018-02-07T12:57:26Z","git_url":"git://github.com/Murali-group/GraphSpace.git","ssh_url":"git@github.com:Murali-group/GraphSpace.git","clone_url":"https://github.com/Murali-group/GraphSpace.git","svn_url":"https://github.com/Murali-group/GraphSpace","homepage":"http://graphspace.org","size":327289,"stargazers_count":15,"watchers_count":15,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":24,"mirror_url":null,"archived":false,"open_issues_count":74,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0"},"forks":24,"open_issues":74,"watchers":15,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Murali-group/GraphSpace/pulls/338"},"html":{"href":"https://github.com/Murali-group/GraphSpace/pull/338"},"issue":{"href":"https://api.github.com/repos/Murali-group/GraphSpace/issues/338"},"comments":{"href":"https://api.github.com/repos/Murali-group/GraphSpace/issues/338/comments"},"review_comments":{"href":"https://api.github.com/repos/Murali-group/GraphSpace/pulls/338/comments"},"review_comment":{"href":"https://api.github.com/repos/Murali-group/GraphSpace/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Murali-group/GraphSpace/pulls/338/commits"},"statuses":{"href":"https://api.github.com/repos/Murali-group/GraphSpace/statuses/eabf299f0f8d19dea264ee81eba453efb62131e3"}},"author_association":"NONE"}}
{"actor":{"display_login":"adbharadwaj"}}