{"action":"created","comment":{"url":"https://api.github.com/repos/denverstartupweek/dsw-site/pulls/comments/76552871","id":76552871,"diff_hunk":"@@ -240,6 +240,23 @@ def send_confirmation_notice\n   end\n \n   def subscribe_to_list\n-    ListSubscriptionJob.perform_async(contact_email)\n+    [ contact_email, submitter.email ].compact.uniq.each do |email|\n+      submitted_years = Submission.\n+        joins(:submitter).\n+        where('contact_email = :email OR users.email = :email', email: email).\n+        pluck(:year).\n+        sort.\n+        map(&:to_s)\n+      confirmed_years = Submission.\n+        confirmed.\n+        joins(:submitter).\n+        where('contact_email = :email OR users.email = :email', email: email).\n+        pluck(:year).","path":"app/models/submission.rb","position":25,"original_position":25,"commit_id":"be5ad366aaf4602ed87a56f6141eba705750e913","original_commit_id":"be5ad366aaf4602ed87a56f6141eba705750e913","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Align `pluck` with `Submission.` on line 250.","created_at":"2016-08-29T04:48:14Z","updated_at":"2016-08-29T04:48:14Z","html_url":"https://github.com/denverstartupweek/dsw-site/pull/45#discussion_r76552871","pull_request_url":"https://api.github.com/repos/denverstartupweek/dsw-site/pulls/45","_links":{"self":{"href":"https://api.github.com/repos/denverstartupweek/dsw-site/pulls/comments/76552871"},"html":{"href":"https://github.com/denverstartupweek/dsw-site/pull/45#discussion_r76552871"},"pull_request":{"href":"https://api.github.com/repos/denverstartupweek/dsw-site/pulls/45"}}},"pull_request":{"url":"https://api.github.com/repos/denverstartupweek/dsw-site/pulls/45","id":83044224,"html_url":"https://github.com/denverstartupweek/dsw-site/pull/45","diff_url":"https://github.com/denverstartupweek/dsw-site/pull/45.diff","patch_url":"https://github.com/denverstartupweek/dsw-site/pull/45.patch","issue_url":"https://api.github.com/repos/denverstartupweek/dsw-site/issues/45","number":45,"state":"open","locked":false,"title":"Assign extra attributes to submitters in Emma","user":{"login":"jayzes","id":22783,"avatar_url":"https://avatars.githubusercontent.com/u/22783?v=3","gravatar_id":"","url":"https://api.github.com/users/jayzes","html_url":"https://github.com/jayzes","followers_url":"https://api.github.com/users/jayzes/followers","following_url":"https://api.github.com/users/jayzes/following{/other_user}","gists_url":"https://api.github.com/users/jayzes/gists{/gist_id}","starred_url":"https://api.github.com/users/jayzes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayzes/subscriptions","organizations_url":"https://api.github.com/users/jayzes/orgs","repos_url":"https://api.github.com/users/jayzes/repos","events_url":"https://api.github.com/users/jayzes/events{/privacy}","received_events_url":"https://api.github.com/users/jayzes/received_events","type":"User","site_admin":false},"body":"- `submittedyears` and `confirmedyears` (Emma is goofy about assigned field names, sigh)\r\n- Sync both the submitter e-mail and the contact e-mail\r\n- Bring in FactoryGirl to start to simplify test setup\r\n\r\nFixes #41","created_at":"2016-08-29T04:48:09Z","updated_at":"2016-08-29T04:48:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4335ec3c75f196d7aecc5ffbb52a8545a3b18fa2","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/denverstartupweek/dsw-site/pulls/45/commits","review_comments_url":"https://api.github.com/repos/denverstartupweek/dsw-site/pulls/45/comments","review_comment_url":"https://api.github.com/repos/denverstartupweek/dsw-site/pulls/comments{/number}","comments_url":"https://api.github.com/repos/denverstartupweek/dsw-site/issues/45/comments","statuses_url":"https://api.github.com/repos/denverstartupweek/dsw-site/statuses/be5ad366aaf4602ed87a56f6141eba705750e913","head":{"label":"denverstartupweek:jz-submitter-email-segment","ref":"jz-submitter-email-segment","sha":"be5ad366aaf4602ed87a56f6141eba705750e913","user":{"login":"denverstartupweek","id":8466643,"avatar_url":"https://avatars.githubusercontent.com/u/8466643?v=3","gravatar_id":"","url":"https://api.github.com/users/denverstartupweek","html_url":"https://github.com/denverstartupweek","followers_url":"https://api.github.com/users/denverstartupweek/followers","following_url":"https://api.github.com/users/denverstartupweek/following{/other_user}","gists_url":"https://api.github.com/users/denverstartupweek/gists{/gist_id}","starred_url":"https://api.github.com/users/denverstartupweek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denverstartupweek/subscriptions","organizations_url":"https://api.github.com/users/denverstartupweek/orgs","repos_url":"https://api.github.com/users/denverstartupweek/repos","events_url":"https://api.github.com/users/denverstartupweek/events{/privacy}","received_events_url":"https://api.github.com/users/denverstartupweek/received_events","type":"Organization","site_admin":false},"repo":{"id":51704309,"name":"dsw-site","full_name":"denverstartupweek/dsw-site","owner":{"login":"denverstartupweek","id":8466643,"avatar_url":"https://avatars.githubusercontent.com/u/8466643?v=3","gravatar_id":"","url":"https://api.github.com/users/denverstartupweek","html_url":"https://github.com/denverstartupweek","followers_url":"https://api.github.com/users/denverstartupweek/followers","following_url":"https://api.github.com/users/denverstartupweek/following{/other_user}","gists_url":"https://api.github.com/users/denverstartupweek/gists{/gist_id}","starred_url":"https://api.github.com/users/denverstartupweek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denverstartupweek/subscriptions","organizations_url":"https://api.github.com/users/denverstartupweek/orgs","repos_url":"https://api.github.com/users/denverstartupweek/repos","events_url":"https://api.github.com/users/denverstartupweek/events{/privacy}","received_events_url":"https://api.github.com/users/denverstartupweek/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/denverstartupweek/dsw-site","description":"Denver Startup Week Website, Panel Picker, and Registration","fork":false,"url":"https://api.github.com/repos/denverstartupweek/dsw-site","forks_url":"https://api.github.com/repos/denverstartupweek/dsw-site/forks","keys_url":"https://api.github.com/repos/denverstartupweek/dsw-site/keys{/key_id}","collaborators_url":"https://api.github.com/repos/denverstartupweek/dsw-site/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/denverstartupweek/dsw-site/teams","hooks_url":"https://api.github.com/repos/denverstartupweek/dsw-site/hooks","issue_events_url":"https://api.github.com/repos/denverstartupweek/dsw-site/issues/events{/number}","events_url":"https://api.github.com/repos/denverstartupweek/dsw-site/events","assignees_url":"https://api.github.com/repos/denverstartupweek/dsw-site/assignees{/user}","branches_url":"https://api.github.com/repos/denverstartupweek/dsw-site/branches{/branch}","tags_url":"https://api.github.com/repos/denverstartupweek/dsw-site/tags","blobs_url":"https://api.github.com/repos/denverstartupweek/dsw-site/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/denverstartupweek/dsw-site/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/denverstartupweek/dsw-site/git/refs{/sha}","trees_url":"https://api.github.com/repos/denverstartupweek/dsw-site/git/trees{/sha}","statuses_url":"https://api.github.com/repos/denverstartupweek/dsw-site/statuses/{sha}","languages_url":"https://api.github.com/repos/denverstartupweek/dsw-site/languages","stargazers_url":"https://api.github.com/repos/denverstartupweek/dsw-site/stargazers","contributors_url":"https://api.github.com/repos/denverstartupweek/dsw-site/contributors","subscribers_url":"https://api.github.com/repos/denverstartupweek/dsw-site/subscribers","subscription_url":"https://api.github.com/repos/denverstartupweek/dsw-site/subscription","commits_url":"https://api.github.com/repos/denverstartupweek/dsw-site/commits{/sha}","git_commits_url":"https://api.github.com/repos/denverstartupweek/dsw-site/git/commits{/sha}","comments_url":"https://api.github.com/repos/denverstartupweek/dsw-site/comments{/number}","issue_comment_url":"https://api.github.com/repos/denverstartupweek/dsw-site/issues/comments{/number}","contents_url":"https://api.github.com/repos/denverstartupweek/dsw-site/contents/{+path}","compare_url":"https://api.github.com/repos/denverstartupweek/dsw-site/compare/{base}...{head}","merges_url":"https://api.github.com/repos/denverstartupweek/dsw-site/merges","archive_url":"https://api.github.com/repos/denverstartupweek/dsw-site/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/denverstartupweek/dsw-site/downloads","issues_url":"https://api.github.com/repos/denverstartupweek/dsw-site/issues{/number}","pulls_url":"https://api.github.com/repos/denverstartupweek/dsw-site/pulls{/number}","milestones_url":"https://api.github.com/repos/denverstartupweek/dsw-site/milestones{/number}","notifications_url":"https://api.github.com/repos/denverstartupweek/dsw-site/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/denverstartupweek/dsw-site/labels{/name}","releases_url":"https://api.github.com/repos/denverstartupweek/dsw-site/releases{/id}","deployments_url":"https://api.github.com/repos/denverstartupweek/dsw-site/deployments","created_at":"2016-02-14T17:17:42Z","updated_at":"2016-02-14T17:21:29Z","pushed_at":"2016-08-29T04:48:10Z","git_url":"git://github.com/denverstartupweek/dsw-site.git","ssh_url":"git@github.com:denverstartupweek/dsw-site.git","clone_url":"https://github.com/denverstartupweek/dsw-site.git","svn_url":"https://github.com/denverstartupweek/dsw-site","homepage":"http://www.denverstartupweek.org/","size":39438,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":12,"forks":0,"open_issues":12,"watchers":0,"default_branch":"master"}},"base":{"label":"denverstartupweek:master","ref":"master","sha":"af45e2c73d71655ebfa3981b4b7999c8c557a9c7","user":{"login":"denverstartupweek","id":8466643,"avatar_url":"https://avatars.githubusercontent.com/u/8466643?v=3","gravatar_id":"","url":"https://api.github.com/users/denverstartupweek","html_url":"https://github.com/denverstartupweek","followers_url":"https://api.github.com/users/denverstartupweek/followers","following_url":"https://api.github.com/users/denverstartupweek/following{/other_user}","gists_url":"https://api.github.com/users/denverstartupweek/gists{/gist_id}","starred_url":"https://api.github.com/users/denverstartupweek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denverstartupweek/subscriptions","organizations_url":"https://api.github.com/users/denverstartupweek/orgs","repos_url":"https://api.github.com/users/denverstartupweek/repos","events_url":"https://api.github.com/users/denverstartupweek/events{/privacy}","received_events_url":"https://api.github.com/users/denverstartupweek/received_events","type":"Organization","site_admin":false},"repo":{"id":51704309,"name":"dsw-site","full_name":"denverstartupweek/dsw-site","owner":{"login":"denverstartupweek","id":8466643,"avatar_url":"https://avatars.githubusercontent.com/u/8466643?v=3","gravatar_id":"","url":"https://api.github.com/users/denverstartupweek","html_url":"https://github.com/denverstartupweek","followers_url":"https://api.github.com/users/denverstartupweek/followers","following_url":"https://api.github.com/users/denverstartupweek/following{/other_user}","gists_url":"https://api.github.com/users/denverstartupweek/gists{/gist_id}","starred_url":"https://api.github.com/users/denverstartupweek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denverstartupweek/subscriptions","organizations_url":"https://api.github.com/users/denverstartupweek/orgs","repos_url":"https://api.github.com/users/denverstartupweek/repos","events_url":"https://api.github.com/users/denverstartupweek/events{/privacy}","received_events_url":"https://api.github.com/users/denverstartupweek/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/denverstartupweek/dsw-site","description":"Denver Startup Week Website, Panel Picker, and Registration","fork":false,"url":"https://api.github.com/repos/denverstartupweek/dsw-site","forks_url":"https://api.github.com/repos/denverstartupweek/dsw-site/forks","keys_url":"https://api.github.com/repos/denverstartupweek/dsw-site/keys{/key_id}","collaborators_url":"https://api.github.com/repos/denverstartupweek/dsw-site/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/denverstartupweek/dsw-site/teams","hooks_url":"https://api.github.com/repos/denverstartupweek/dsw-site/hooks","issue_events_url":"https://api.github.com/repos/denverstartupweek/dsw-site/issues/events{/number}","events_url":"https://api.github.com/repos/denverstartupweek/dsw-site/events","assignees_url":"https://api.github.com/repos/denverstartupweek/dsw-site/assignees{/user}","branches_url":"https://api.github.com/repos/denverstartupweek/dsw-site/branches{/branch}","tags_url":"https://api.github.com/repos/denverstartupweek/dsw-site/tags","blobs_url":"https://api.github.com/repos/denverstartupweek/dsw-site/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/denverstartupweek/dsw-site/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/denverstartupweek/dsw-site/git/refs{/sha}","trees_url":"https://api.github.com/repos/denverstartupweek/dsw-site/git/trees{/sha}","statuses_url":"https://api.github.com/repos/denverstartupweek/dsw-site/statuses/{sha}","languages_url":"https://api.github.com/repos/denverstartupweek/dsw-site/languages","stargazers_url":"https://api.github.com/repos/denverstartupweek/dsw-site/stargazers","contributors_url":"https://api.github.com/repos/denverstartupweek/dsw-site/contributors","subscribers_url":"https://api.github.com/repos/denverstartupweek/dsw-site/subscribers","subscription_url":"https://api.github.com/repos/denverstartupweek/dsw-site/subscription","commits_url":"https://api.github.com/repos/denverstartupweek/dsw-site/commits{/sha}","git_commits_url":"https://api.github.com/repos/denverstartupweek/dsw-site/git/commits{/sha}","comments_url":"https://api.github.com/repos/denverstartupweek/dsw-site/comments{/number}","issue_comment_url":"https://api.github.com/repos/denverstartupweek/dsw-site/issues/comments{/number}","contents_url":"https://api.github.com/repos/denverstartupweek/dsw-site/contents/{+path}","compare_url":"https://api.github.com/repos/denverstartupweek/dsw-site/compare/{base}...{head}","merges_url":"https://api.github.com/repos/denverstartupweek/dsw-site/merges","archive_url":"https://api.github.com/repos/denverstartupweek/dsw-site/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/denverstartupweek/dsw-site/downloads","issues_url":"https://api.github.com/repos/denverstartupweek/dsw-site/issues{/number}","pulls_url":"https://api.github.com/repos/denverstartupweek/dsw-site/pulls{/number}","milestones_url":"https://api.github.com/repos/denverstartupweek/dsw-site/milestones{/number}","notifications_url":"https://api.github.com/repos/denverstartupweek/dsw-site/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/denverstartupweek/dsw-site/labels{/name}","releases_url":"https://api.github.com/repos/denverstartupweek/dsw-site/releases{/id}","deployments_url":"https://api.github.com/repos/denverstartupweek/dsw-site/deployments","created_at":"2016-02-14T17:17:42Z","updated_at":"2016-02-14T17:21:29Z","pushed_at":"2016-08-29T04:48:10Z","git_url":"git://github.com/denverstartupweek/dsw-site.git","ssh_url":"git@github.com:denverstartupweek/dsw-site.git","clone_url":"https://github.com/denverstartupweek/dsw-site.git","svn_url":"https://github.com/denverstartupweek/dsw-site","homepage":"http://www.denverstartupweek.org/","size":39438,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":12,"forks":0,"open_issues":12,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/denverstartupweek/dsw-site/pulls/45"},"html":{"href":"https://github.com/denverstartupweek/dsw-site/pull/45"},"issue":{"href":"https://api.github.com/repos/denverstartupweek/dsw-site/issues/45"},"comments":{"href":"https://api.github.com/repos/denverstartupweek/dsw-site/issues/45/comments"},"review_comments":{"href":"https://api.github.com/repos/denverstartupweek/dsw-site/pulls/45/comments"},"review_comment":{"href":"https://api.github.com/repos/denverstartupweek/dsw-site/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/denverstartupweek/dsw-site/pulls/45/commits"},"statuses":{"href":"https://api.github.com/repos/denverstartupweek/dsw-site/statuses/be5ad366aaf4602ed87a56f6141eba705750e913"}}}}
{"actor":{"display_login":"houndci-bot"}}