{"action":"opened","number":344,"pull_request":{"url":"https://api.github.com/repos/openstax/accounts/pulls/344","id":84148961,"html_url":"https://github.com/openstax/accounts/pull/344","diff_url":"https://github.com/openstax/accounts/pull/344.diff","patch_url":"https://github.com/openstax/accounts/pull/344.patch","issue_url":"https://api.github.com/repos/openstax/accounts/issues/344","number":344,"state":"open","locked":false,"title":"Disable Click to verify button on click","user":{"login":"BryanEliDimas","id":6620941,"avatar_url":"https://avatars.githubusercontent.com/u/6620941?v=3","gravatar_id":"","url":"https://api.github.com/users/BryanEliDimas","html_url":"https://github.com/BryanEliDimas","followers_url":"https://api.github.com/users/BryanEliDimas/followers","following_url":"https://api.github.com/users/BryanEliDimas/following{/other_user}","gists_url":"https://api.github.com/users/BryanEliDimas/gists{/gist_id}","starred_url":"https://api.github.com/users/BryanEliDimas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BryanEliDimas/subscriptions","organizations_url":"https://api.github.com/users/BryanEliDimas/orgs","repos_url":"https://api.github.com/users/BryanEliDimas/repos","events_url":"https://api.github.com/users/BryanEliDimas/events{/privacy}","received_events_url":"https://api.github.com/users/BryanEliDimas/received_events","type":"User","site_admin":false},"body":"This PR helps prevent bots from clicking the `Click to verify` button (or in other words, following the URL) which sends emails to verify the logged in user's email address. The problem it presents otherwise is that the database will give the following error:\r\n`An ActiveRecord::StatementInvalid occurred in contact_infos#resend_confirmation:\r\n\r\n  PG::InFailedSqlTransaction: ERROR:  current transaction is aborted, commands ignored until end of transaction block\r\n: SET SESSION CHARACTERISTICS AS TRANSACTION ISOLATION LEVEL READ COMMITTED\r\n  activerecord (3.2.22) lib/active_record/connection_adapters/postgresql_adapter.rb:650:in `async_exec'`","created_at":"2016-09-06T15:56:37Z","updated_at":"2016-09-06T15:56:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"651b1a726c393ae1f8c4380ba6d924d7a43328ab","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/openstax/accounts/pulls/344/commits","review_comments_url":"https://api.github.com/repos/openstax/accounts/pulls/344/comments","review_comment_url":"https://api.github.com/repos/openstax/accounts/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openstax/accounts/issues/344/comments","statuses_url":"https://api.github.com/repos/openstax/accounts/statuses/31ec0645d13cd65b15beb5ebe94a47f02e277568","head":{"label":"openstax:fix_click_to_verify_button","ref":"fix_click_to_verify_button","sha":"31ec0645d13cd65b15beb5ebe94a47f02e277568","user":{"login":"openstax","id":3805549,"avatar_url":"https://avatars.githubusercontent.com/u/3805549?v=3","gravatar_id":"","url":"https://api.github.com/users/openstax","html_url":"https://github.com/openstax","followers_url":"https://api.github.com/users/openstax/followers","following_url":"https://api.github.com/users/openstax/following{/other_user}","gists_url":"https://api.github.com/users/openstax/gists{/gist_id}","starred_url":"https://api.github.com/users/openstax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openstax/subscriptions","organizations_url":"https://api.github.com/users/openstax/orgs","repos_url":"https://api.github.com/users/openstax/repos","events_url":"https://api.github.com/users/openstax/events{/privacy}","received_events_url":"https://api.github.com/users/openstax/received_events","type":"Organization","site_admin":false},"repo":{"id":11300066,"name":"accounts","full_name":"openstax/accounts","owner":{"login":"openstax","id":3805549,"avatar_url":"https://avatars.githubusercontent.com/u/3805549?v=3","gravatar_id":"","url":"https://api.github.com/users/openstax","html_url":"https://github.com/openstax","followers_url":"https://api.github.com/users/openstax/followers","following_url":"https://api.github.com/users/openstax/following{/other_user}","gists_url":"https://api.github.com/users/openstax/gists{/gist_id}","starred_url":"https://api.github.com/users/openstax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openstax/subscriptions","organizations_url":"https://api.github.com/users/openstax/orgs","repos_url":"https://api.github.com/users/openstax/repos","events_url":"https://api.github.com/users/openstax/events{/privacy}","received_events_url":"https://api.github.com/users/openstax/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openstax/accounts","description":"OpenStax centralized authentication and accounts service","fork":false,"url":"https://api.github.com/repos/openstax/accounts","forks_url":"https://api.github.com/repos/openstax/accounts/forks","keys_url":"https://api.github.com/repos/openstax/accounts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openstax/accounts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openstax/accounts/teams","hooks_url":"https://api.github.com/repos/openstax/accounts/hooks","issue_events_url":"https://api.github.com/repos/openstax/accounts/issues/events{/number}","events_url":"https://api.github.com/repos/openstax/accounts/events","assignees_url":"https://api.github.com/repos/openstax/accounts/assignees{/user}","branches_url":"https://api.github.com/repos/openstax/accounts/branches{/branch}","tags_url":"https://api.github.com/repos/openstax/accounts/tags","blobs_url":"https://api.github.com/repos/openstax/accounts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openstax/accounts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openstax/accounts/git/refs{/sha}","trees_url":"https://api.github.com/repos/openstax/accounts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openstax/accounts/statuses/{sha}","languages_url":"https://api.github.com/repos/openstax/accounts/languages","stargazers_url":"https://api.github.com/repos/openstax/accounts/stargazers","contributors_url":"https://api.github.com/repos/openstax/accounts/contributors","subscribers_url":"https://api.github.com/repos/openstax/accounts/subscribers","subscription_url":"https://api.github.com/repos/openstax/accounts/subscription","commits_url":"https://api.github.com/repos/openstax/accounts/commits{/sha}","git_commits_url":"https://api.github.com/repos/openstax/accounts/git/commits{/sha}","comments_url":"https://api.github.com/repos/openstax/accounts/comments{/number}","issue_comment_url":"https://api.github.com/repos/openstax/accounts/issues/comments{/number}","contents_url":"https://api.github.com/repos/openstax/accounts/contents/{+path}","compare_url":"https://api.github.com/repos/openstax/accounts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openstax/accounts/merges","archive_url":"https://api.github.com/repos/openstax/accounts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openstax/accounts/downloads","issues_url":"https://api.github.com/repos/openstax/accounts/issues{/number}","pulls_url":"https://api.github.com/repos/openstax/accounts/pulls{/number}","milestones_url":"https://api.github.com/repos/openstax/accounts/milestones{/number}","notifications_url":"https://api.github.com/repos/openstax/accounts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openstax/accounts/labels{/name}","releases_url":"https://api.github.com/repos/openstax/accounts/releases{/id}","deployments_url":"https://api.github.com/repos/openstax/accounts/deployments","created_at":"2013-07-10T02:36:07Z","updated_at":"2016-04-09T11:24:58Z","pushed_at":"2016-09-06T15:56:37Z","git_url":"git://github.com/openstax/accounts.git","ssh_url":"git@github.com:openstax/accounts.git","clone_url":"https://github.com/openstax/accounts.git","svn_url":"https://github.com/openstax/accounts","homepage":"","size":2225,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":28,"forks":5,"open_issues":28,"watchers":5,"default_branch":"master"}},"base":{"label":"openstax:master","ref":"master","sha":"4cbad2f5c29f7f451f7685cf9a590a7061dbfb35","user":{"login":"openstax","id":3805549,"avatar_url":"https://avatars.githubusercontent.com/u/3805549?v=3","gravatar_id":"","url":"https://api.github.com/users/openstax","html_url":"https://github.com/openstax","followers_url":"https://api.github.com/users/openstax/followers","following_url":"https://api.github.com/users/openstax/following{/other_user}","gists_url":"https://api.github.com/users/openstax/gists{/gist_id}","starred_url":"https://api.github.com/users/openstax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openstax/subscriptions","organizations_url":"https://api.github.com/users/openstax/orgs","repos_url":"https://api.github.com/users/openstax/repos","events_url":"https://api.github.com/users/openstax/events{/privacy}","received_events_url":"https://api.github.com/users/openstax/received_events","type":"Organization","site_admin":false},"repo":{"id":11300066,"name":"accounts","full_name":"openstax/accounts","owner":{"login":"openstax","id":3805549,"avatar_url":"https://avatars.githubusercontent.com/u/3805549?v=3","gravatar_id":"","url":"https://api.github.com/users/openstax","html_url":"https://github.com/openstax","followers_url":"https://api.github.com/users/openstax/followers","following_url":"https://api.github.com/users/openstax/following{/other_user}","gists_url":"https://api.github.com/users/openstax/gists{/gist_id}","starred_url":"https://api.github.com/users/openstax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openstax/subscriptions","organizations_url":"https://api.github.com/users/openstax/orgs","repos_url":"https://api.github.com/users/openstax/repos","events_url":"https://api.github.com/users/openstax/events{/privacy}","received_events_url":"https://api.github.com/users/openstax/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openstax/accounts","description":"OpenStax centralized authentication and accounts service","fork":false,"url":"https://api.github.com/repos/openstax/accounts","forks_url":"https://api.github.com/repos/openstax/accounts/forks","keys_url":"https://api.github.com/repos/openstax/accounts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openstax/accounts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openstax/accounts/teams","hooks_url":"https://api.github.com/repos/openstax/accounts/hooks","issue_events_url":"https://api.github.com/repos/openstax/accounts/issues/events{/number}","events_url":"https://api.github.com/repos/openstax/accounts/events","assignees_url":"https://api.github.com/repos/openstax/accounts/assignees{/user}","branches_url":"https://api.github.com/repos/openstax/accounts/branches{/branch}","tags_url":"https://api.github.com/repos/openstax/accounts/tags","blobs_url":"https://api.github.com/repos/openstax/accounts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openstax/accounts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openstax/accounts/git/refs{/sha}","trees_url":"https://api.github.com/repos/openstax/accounts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openstax/accounts/statuses/{sha}","languages_url":"https://api.github.com/repos/openstax/accounts/languages","stargazers_url":"https://api.github.com/repos/openstax/accounts/stargazers","contributors_url":"https://api.github.com/repos/openstax/accounts/contributors","subscribers_url":"https://api.github.com/repos/openstax/accounts/subscribers","subscription_url":"https://api.github.com/repos/openstax/accounts/subscription","commits_url":"https://api.github.com/repos/openstax/accounts/commits{/sha}","git_commits_url":"https://api.github.com/repos/openstax/accounts/git/commits{/sha}","comments_url":"https://api.github.com/repos/openstax/accounts/comments{/number}","issue_comment_url":"https://api.github.com/repos/openstax/accounts/issues/comments{/number}","contents_url":"https://api.github.com/repos/openstax/accounts/contents/{+path}","compare_url":"https://api.github.com/repos/openstax/accounts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openstax/accounts/merges","archive_url":"https://api.github.com/repos/openstax/accounts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openstax/accounts/downloads","issues_url":"https://api.github.com/repos/openstax/accounts/issues{/number}","pulls_url":"https://api.github.com/repos/openstax/accounts/pulls{/number}","milestones_url":"https://api.github.com/repos/openstax/accounts/milestones{/number}","notifications_url":"https://api.github.com/repos/openstax/accounts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openstax/accounts/labels{/name}","releases_url":"https://api.github.com/repos/openstax/accounts/releases{/id}","deployments_url":"https://api.github.com/repos/openstax/accounts/deployments","created_at":"2013-07-10T02:36:07Z","updated_at":"2016-04-09T11:24:58Z","pushed_at":"2016-09-06T15:56:37Z","git_url":"git://github.com/openstax/accounts.git","ssh_url":"git@github.com:openstax/accounts.git","clone_url":"https://github.com/openstax/accounts.git","svn_url":"https://github.com/openstax/accounts","homepage":"","size":2225,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":28,"forks":5,"open_issues":28,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openstax/accounts/pulls/344"},"html":{"href":"https://github.com/openstax/accounts/pull/344"},"issue":{"href":"https://api.github.com/repos/openstax/accounts/issues/344"},"comments":{"href":"https://api.github.com/repos/openstax/accounts/issues/344/comments"},"review_comments":{"href":"https://api.github.com/repos/openstax/accounts/pulls/344/comments"},"review_comment":{"href":"https://api.github.com/repos/openstax/accounts/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openstax/accounts/pulls/344/commits"},"statuses":{"href":"https://api.github.com/repos/openstax/accounts/statuses/31ec0645d13cd65b15beb5ebe94a47f02e277568"}},"merged":false,"mergeable":true,"mergeable_state":"unstable","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":12,"deletions":3,"changed_files":4}}
{"actor":{"display_login":"BryanEliDimas"}}