{"action":"created","comment":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/comments/39079208","id":39079208,"diff_hunk":"@@ -123,6 +127,19 @@ def add_poster_by_email(conference, message):\n         presentation_type=message.conference_category.lower(),\n         is_spam=message.is_spam,\n     )\n+    if node_created and user_created:\n+        osfstorage = node.get_addon('osfstorage')","path":"website/conferences/views.py","position":35,"original_position":35,"commit_id":"811269d93d01702b0576d0cbb6d1182939f2cb14","original_commit_id":"811269d93d01702b0576d0cbb6d1182939f2cb14","user":{"login":"HarryRybacki","id":2614670,"avatar_url":"https://avatars.githubusercontent.com/u/2614670?v=3","gravatar_id":"","url":"https://api.github.com/users/HarryRybacki","html_url":"https://github.com/HarryRybacki","followers_url":"https://api.github.com/users/HarryRybacki/followers","following_url":"https://api.github.com/users/HarryRybacki/following{/other_user}","gists_url":"https://api.github.com/users/HarryRybacki/gists{/gist_id}","starred_url":"https://api.github.com/users/HarryRybacki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HarryRybacki/subscriptions","organizations_url":"https://api.github.com/users/HarryRybacki/orgs","repos_url":"https://api.github.com/users/HarryRybacki/repos","events_url":"https://api.github.com/users/HarryRybacki/events{/privacy}","received_events_url":"https://api.github.com/users/HarryRybacki/received_events","type":"User","site_admin":false},"body":"Will this ever raise an exception? If so, let's wrap it. If not, let's just turn the `root_id` into a single line assignment as `osfstorage` isn't reused","created_at":"2015-09-09T18:32:33Z","updated_at":"2015-09-09T18:32:33Z","html_url":"https://github.com/CenterForOpenScience/osf.io/pull/4186#discussion_r39079208","pull_request_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/4186","_links":{"self":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/comments/39079208"},"html":{"href":"https://github.com/CenterForOpenScience/osf.io/pull/4186#discussion_r39079208"},"pull_request":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/4186"}}},"pull_request":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/4186","id":43438271,"html_url":"https://github.com/CenterForOpenScience/osf.io/pull/4186","diff_url":"https://github.com/CenterForOpenScience/osf.io/pull/4186.diff","patch_url":"https://github.com/CenterForOpenScience/osf.io/pull/4186.patch","issue_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/4186","number":4186,"state":"open","locked":false,"title":"[Ready to Review] Engagement Emails","user":{"login":"hmoco","id":6268982,"avatar_url":"https://avatars.githubusercontent.com/u/6268982?v=3","gravatar_id":"","url":"https://api.github.com/users/hmoco","html_url":"https://github.com/hmoco","followers_url":"https://api.github.com/users/hmoco/followers","following_url":"https://api.github.com/users/hmoco/following{/other_user}","gists_url":"https://api.github.com/users/hmoco/gists{/gist_id}","starred_url":"https://api.github.com/users/hmoco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmoco/subscriptions","organizations_url":"https://api.github.com/users/hmoco/orgs","repos_url":"https://api.github.com/users/hmoco/repos","events_url":"https://api.github.com/users/hmoco/events{/privacy}","received_events_url":"https://api.github.com/users/hmoco/received_events","type":"User","site_admin":false},"body":"## Purpose\r\nUsers of the OSF who have not unsubscribed from emails for “Open Science Framework Help”, should receive engagement emails at certain intervals based on their status and activity in the OSF. General requirements are:\r\n - Internally we should have a log of emails sent to each user\r\n - After the initial sign-up week (where multiple emails are sent), users should not receive more than 1  -   OSF engagement email a week (7 day period)\r\n - Users who have unsubscribed from emails for “Open Science Framework Help” should not receive these emails\r\n\r\nThe current triggered emails are:\r\n1.     Send user email 24 hours after making their first non-OSF4M project public\t.\r\n2.\tSend OSF for Meetings users a welcome email 2 weeks after presentation upload\r\n3.\tSend OSF users an email if they haven't connected an add-on after 2 months of sign-up\r\n4.\tSend OSF an email if they have had no logins for one month\r\n\r\n## Changes\r\n- Mailing Lists api endpoints now communicate with both the osf_mailing_list (currently only this, named OSF Help), and mailchimp_mailing_lists (currently only OSF General)\r\n- Users will receive additional emails if they are triggered by default. To stop receiving these emails, uncheck the option on user settings\r\n\r\n## Side Effects\r\n- Extra daily script\r\n- Mailing list now refers to both osf_mailing_lists and mailchimp_mailing_lists, with the latter currently implemented as mailing_lists","created_at":"2015-08-26T18:57:08Z","updated_at":"2015-09-09T18:32:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ef680e93d20752638ff6ca75d512b7f237e21e08","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/4186/commits","review_comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/4186/comments","review_comment_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/4186/comments","statuses_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/statuses/811269d93d01702b0576d0cbb6d1182939f2cb14","head":{"label":"hmoco:feature/mail","ref":"feature/mail","sha":"811269d93d01702b0576d0cbb6d1182939f2cb14","user":{"login":"hmoco","id":6268982,"avatar_url":"https://avatars.githubusercontent.com/u/6268982?v=3","gravatar_id":"","url":"https://api.github.com/users/hmoco","html_url":"https://github.com/hmoco","followers_url":"https://api.github.com/users/hmoco/followers","following_url":"https://api.github.com/users/hmoco/following{/other_user}","gists_url":"https://api.github.com/users/hmoco/gists{/gist_id}","starred_url":"https://api.github.com/users/hmoco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmoco/subscriptions","organizations_url":"https://api.github.com/users/hmoco/orgs","repos_url":"https://api.github.com/users/hmoco/repos","events_url":"https://api.github.com/users/hmoco/events{/privacy}","received_events_url":"https://api.github.com/users/hmoco/received_events","type":"User","site_admin":false},"repo":{"id":36302791,"name":"osf.io","full_name":"hmoco/osf.io","owner":{"login":"hmoco","id":6268982,"avatar_url":"https://avatars.githubusercontent.com/u/6268982?v=3","gravatar_id":"","url":"https://api.github.com/users/hmoco","html_url":"https://github.com/hmoco","followers_url":"https://api.github.com/users/hmoco/followers","following_url":"https://api.github.com/users/hmoco/following{/other_user}","gists_url":"https://api.github.com/users/hmoco/gists{/gist_id}","starred_url":"https://api.github.com/users/hmoco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmoco/subscriptions","organizations_url":"https://api.github.com/users/hmoco/orgs","repos_url":"https://api.github.com/users/hmoco/repos","events_url":"https://api.github.com/users/hmoco/events{/privacy}","received_events_url":"https://api.github.com/users/hmoco/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hmoco/osf.io","description":"Facilitating Open Science","fork":true,"url":"https://api.github.com/repos/hmoco/osf.io","forks_url":"https://api.github.com/repos/hmoco/osf.io/forks","keys_url":"https://api.github.com/repos/hmoco/osf.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hmoco/osf.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hmoco/osf.io/teams","hooks_url":"https://api.github.com/repos/hmoco/osf.io/hooks","issue_events_url":"https://api.github.com/repos/hmoco/osf.io/issues/events{/number}","events_url":"https://api.github.com/repos/hmoco/osf.io/events","assignees_url":"https://api.github.com/repos/hmoco/osf.io/assignees{/user}","branches_url":"https://api.github.com/repos/hmoco/osf.io/branches{/branch}","tags_url":"https://api.github.com/repos/hmoco/osf.io/tags","blobs_url":"https://api.github.com/repos/hmoco/osf.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hmoco/osf.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hmoco/osf.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/hmoco/osf.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hmoco/osf.io/statuses/{sha}","languages_url":"https://api.github.com/repos/hmoco/osf.io/languages","stargazers_url":"https://api.github.com/repos/hmoco/osf.io/stargazers","contributors_url":"https://api.github.com/repos/hmoco/osf.io/contributors","subscribers_url":"https://api.github.com/repos/hmoco/osf.io/subscribers","subscription_url":"https://api.github.com/repos/hmoco/osf.io/subscription","commits_url":"https://api.github.com/repos/hmoco/osf.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/hmoco/osf.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/hmoco/osf.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/hmoco/osf.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/hmoco/osf.io/contents/{+path}","compare_url":"https://api.github.com/repos/hmoco/osf.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hmoco/osf.io/merges","archive_url":"https://api.github.com/repos/hmoco/osf.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hmoco/osf.io/downloads","issues_url":"https://api.github.com/repos/hmoco/osf.io/issues{/number}","pulls_url":"https://api.github.com/repos/hmoco/osf.io/pulls{/number}","milestones_url":"https://api.github.com/repos/hmoco/osf.io/milestones{/number}","notifications_url":"https://api.github.com/repos/hmoco/osf.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hmoco/osf.io/labels{/name}","releases_url":"https://api.github.com/repos/hmoco/osf.io/releases{/id}","created_at":"2015-05-26T14:49:58Z","updated_at":"2015-05-26T14:50:02Z","pushed_at":"2015-09-09T13:59:29Z","git_url":"git://github.com/hmoco/osf.io.git","ssh_url":"git@github.com:hmoco/osf.io.git","clone_url":"https://github.com/hmoco/osf.io.git","svn_url":"https://github.com/hmoco/osf.io","homepage":"http://osf.io","size":101468,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"CenterForOpenScience:develop","ref":"develop","sha":"1e3448a74de2ea0562a58ebd6b6bee2e4969dadc","user":{"login":"CenterForOpenScience","id":3344584,"avatar_url":"https://avatars.githubusercontent.com/u/3344584?v=3","gravatar_id":"","url":"https://api.github.com/users/CenterForOpenScience","html_url":"https://github.com/CenterForOpenScience","followers_url":"https://api.github.com/users/CenterForOpenScience/followers","following_url":"https://api.github.com/users/CenterForOpenScience/following{/other_user}","gists_url":"https://api.github.com/users/CenterForOpenScience/gists{/gist_id}","starred_url":"https://api.github.com/users/CenterForOpenScience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CenterForOpenScience/subscriptions","organizations_url":"https://api.github.com/users/CenterForOpenScience/orgs","repos_url":"https://api.github.com/users/CenterForOpenScience/repos","events_url":"https://api.github.com/users/CenterForOpenScience/events{/privacy}","received_events_url":"https://api.github.com/users/CenterForOpenScience/received_events","type":"Organization","site_admin":false},"repo":{"id":10199599,"name":"osf.io","full_name":"CenterForOpenScience/osf.io","owner":{"login":"CenterForOpenScience","id":3344584,"avatar_url":"https://avatars.githubusercontent.com/u/3344584?v=3","gravatar_id":"","url":"https://api.github.com/users/CenterForOpenScience","html_url":"https://github.com/CenterForOpenScience","followers_url":"https://api.github.com/users/CenterForOpenScience/followers","following_url":"https://api.github.com/users/CenterForOpenScience/following{/other_user}","gists_url":"https://api.github.com/users/CenterForOpenScience/gists{/gist_id}","starred_url":"https://api.github.com/users/CenterForOpenScience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CenterForOpenScience/subscriptions","organizations_url":"https://api.github.com/users/CenterForOpenScience/orgs","repos_url":"https://api.github.com/users/CenterForOpenScience/repos","events_url":"https://api.github.com/users/CenterForOpenScience/events{/privacy}","received_events_url":"https://api.github.com/users/CenterForOpenScience/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CenterForOpenScience/osf.io","description":"Facilitating Open Science","fork":false,"url":"https://api.github.com/repos/CenterForOpenScience/osf.io","forks_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/forks","keys_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/teams","hooks_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/hooks","issue_events_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/events{/number}","events_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/events","assignees_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/assignees{/user}","branches_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/branches{/branch}","tags_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/tags","blobs_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/statuses/{sha}","languages_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/languages","stargazers_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/stargazers","contributors_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/contributors","subscribers_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/subscribers","subscription_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/subscription","commits_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/contents/{+path}","compare_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/merges","archive_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/downloads","issues_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues{/number}","pulls_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls{/number}","milestones_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/milestones{/number}","notifications_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/labels{/name}","releases_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/releases{/id}","created_at":"2013-05-21T15:53:37Z","updated_at":"2015-09-08T23:20:40Z","pushed_at":"2015-09-09T18:11:46Z","git_url":"git://github.com/CenterForOpenScience/osf.io.git","ssh_url":"git@github.com:CenterForOpenScience/osf.io.git","clone_url":"https://github.com/CenterForOpenScience/osf.io.git","svn_url":"https://github.com/CenterForOpenScience/osf.io","homepage":"http://osf.io","size":228867,"stargazers_count":134,"watchers_count":134,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":115,"mirror_url":null,"open_issues_count":417,"forks":115,"open_issues":417,"watchers":134,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/4186"},"html":{"href":"https://github.com/CenterForOpenScience/osf.io/pull/4186"},"issue":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/4186"},"comments":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/4186/comments"},"review_comments":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/4186/comments"},"review_comment":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/4186/commits"},"statuses":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/statuses/811269d93d01702b0576d0cbb6d1182939f2cb14"}}}}