{"action":"created","comment":{"url":"https://api.github.com/repos/oppia/oppia/pulls/comments/94273929","pull_request_review_id":14804397,"id":94273929,"diff_hunk":"@@ -544,6 +547,59 @@ def send_role_notification_email(\n         sender_name=inviter_user_settings.username)\n \n \n+def send_emails_to_subscribers(creator_id, exploration_id, exploration_title):\n+    \"\"\"Sends an email to all the subscribers of the creators when the creator\n+    publishes an exploration.\n+\n+    Args:\n+        creator_id: str. The id of the creator who has published an exploration\n+            and to whose subscribers we are sending emails.\n+        exploration_id: str. The id of the exploration which the creator has\n+            published.\n+        exploration_title: str. The title of the exploration which the creator\n+            has published.\n+    \"\"\"\n+\n+    creator_name = user_services.get_username(creator_id)\n+    email_subject = ('%s has published another exploration!' % creator_name)","path":"core/domain/email_manager.py","position":null,"original_position":35,"commit_id":"5ceaa8965d5225a28db31ef7724669eeab2992e5","original_commit_id":"4e4e415ef1251baab4c32057fbd6aecc71d5aef9","user":{"login":"Arunabh98","id":13691317,"avatar_url":"https://avatars.githubusercontent.com/u/13691317?v=3","gravatar_id":"","url":"https://api.github.com/users/Arunabh98","html_url":"https://github.com/Arunabh98","followers_url":"https://api.github.com/users/Arunabh98/followers","following_url":"https://api.github.com/users/Arunabh98/following{/other_user}","gists_url":"https://api.github.com/users/Arunabh98/gists{/gist_id}","starred_url":"https://api.github.com/users/Arunabh98/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arunabh98/subscriptions","organizations_url":"https://api.github.com/users/Arunabh98/orgs","repos_url":"https://api.github.com/users/Arunabh98/repos","events_url":"https://api.github.com/users/Arunabh98/events{/privacy}","received_events_url":"https://api.github.com/users/Arunabh98/received_events","type":"User","site_admin":false},"body":"Done!","created_at":"2016-12-31T13:48:37Z","updated_at":"2016-12-31T13:48:37Z","html_url":"https://github.com/oppia/oppia/pull/2878#discussion_r94273929","pull_request_url":"https://api.github.com/repos/oppia/oppia/pulls/2878","_links":{"self":{"href":"https://api.github.com/repos/oppia/oppia/pulls/comments/94273929"},"html":{"href":"https://github.com/oppia/oppia/pull/2878#discussion_r94273929"},"pull_request":{"href":"https://api.github.com/repos/oppia/oppia/pulls/2878"}}},"pull_request":{"url":"https://api.github.com/repos/oppia/oppia/pulls/2878","id":99521259,"html_url":"https://github.com/oppia/oppia/pull/2878","diff_url":"https://github.com/oppia/oppia/pull/2878.diff","patch_url":"https://github.com/oppia/oppia/pull/2878.patch","issue_url":"https://api.github.com/repos/oppia/oppia/issues/2878","number":2878,"state":"open","locked":false,"title":"Fix part of #2287: Add functionality to send emails to subscribers","user":{"login":"Arunabh98","id":13691317,"avatar_url":"https://avatars.githubusercontent.com/u/13691317?v=3","gravatar_id":"","url":"https://api.github.com/users/Arunabh98","html_url":"https://github.com/Arunabh98","followers_url":"https://api.github.com/users/Arunabh98/followers","following_url":"https://api.github.com/users/Arunabh98/following{/other_user}","gists_url":"https://api.github.com/users/Arunabh98/gists{/gist_id}","starred_url":"https://api.github.com/users/Arunabh98/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arunabh98/subscriptions","organizations_url":"https://api.github.com/users/Arunabh98/orgs","repos_url":"https://api.github.com/users/Arunabh98/repos","events_url":"https://api.github.com/users/Arunabh98/events{/privacy}","received_events_url":"https://api.github.com/users/Arunabh98/received_events","type":"User","site_admin":false},"body":"For details on what should be accomplished in second milestone, refer to the design doc [here](https://docs.google.com/document/d/1BkQ3E_ELdp6fs93mgx84TZgpXWaN2_iCO5SoJH3vZKQ/edit?usp=sharing).\r\n","created_at":"2016-12-28T08:21:39Z","updated_at":"2016-12-31T13:48:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d1b4a900e6d7cfb49fe113a50693bc29bbdc98de","assignee":{"login":"prasanna08","id":8678373,"avatar_url":"https://avatars.githubusercontent.com/u/8678373?v=3","gravatar_id":"","url":"https://api.github.com/users/prasanna08","html_url":"https://github.com/prasanna08","followers_url":"https://api.github.com/users/prasanna08/followers","following_url":"https://api.github.com/users/prasanna08/following{/other_user}","gists_url":"https://api.github.com/users/prasanna08/gists{/gist_id}","starred_url":"https://api.github.com/users/prasanna08/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prasanna08/subscriptions","organizations_url":"https://api.github.com/users/prasanna08/orgs","repos_url":"https://api.github.com/users/prasanna08/repos","events_url":"https://api.github.com/users/prasanna08/events{/privacy}","received_events_url":"https://api.github.com/users/prasanna08/received_events","type":"User","site_admin":false},"assignees":[{"login":"prasanna08","id":8678373,"avatar_url":"https://avatars.githubusercontent.com/u/8678373?v=3","gravatar_id":"","url":"https://api.github.com/users/prasanna08","html_url":"https://github.com/prasanna08","followers_url":"https://api.github.com/users/prasanna08/followers","following_url":"https://api.github.com/users/prasanna08/following{/other_user}","gists_url":"https://api.github.com/users/prasanna08/gists{/gist_id}","starred_url":"https://api.github.com/users/prasanna08/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prasanna08/subscriptions","organizations_url":"https://api.github.com/users/prasanna08/orgs","repos_url":"https://api.github.com/users/prasanna08/repos","events_url":"https://api.github.com/users/prasanna08/events{/privacy}","received_events_url":"https://api.github.com/users/prasanna08/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/oppia/oppia/pulls/2878/commits","review_comments_url":"https://api.github.com/repos/oppia/oppia/pulls/2878/comments","review_comment_url":"https://api.github.com/repos/oppia/oppia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/oppia/oppia/issues/2878/comments","statuses_url":"https://api.github.com/repos/oppia/oppia/statuses/5ceaa8965d5225a28db31ef7724669eeab2992e5","head":{"label":"Arunabh98:final-subscribers-project","ref":"final-subscribers-project","sha":"5ceaa8965d5225a28db31ef7724669eeab2992e5","user":{"login":"Arunabh98","id":13691317,"avatar_url":"https://avatars.githubusercontent.com/u/13691317?v=3","gravatar_id":"","url":"https://api.github.com/users/Arunabh98","html_url":"https://github.com/Arunabh98","followers_url":"https://api.github.com/users/Arunabh98/followers","following_url":"https://api.github.com/users/Arunabh98/following{/other_user}","gists_url":"https://api.github.com/users/Arunabh98/gists{/gist_id}","starred_url":"https://api.github.com/users/Arunabh98/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arunabh98/subscriptions","organizations_url":"https://api.github.com/users/Arunabh98/orgs","repos_url":"https://api.github.com/users/Arunabh98/repos","events_url":"https://api.github.com/users/Arunabh98/events{/privacy}","received_events_url":"https://api.github.com/users/Arunabh98/received_events","type":"User","site_admin":false},"repo":{"id":63477087,"name":"oppia","full_name":"Arunabh98/oppia","owner":{"login":"Arunabh98","id":13691317,"avatar_url":"https://avatars.githubusercontent.com/u/13691317?v=3","gravatar_id":"","url":"https://api.github.com/users/Arunabh98","html_url":"https://github.com/Arunabh98","followers_url":"https://api.github.com/users/Arunabh98/followers","following_url":"https://api.github.com/users/Arunabh98/following{/other_user}","gists_url":"https://api.github.com/users/Arunabh98/gists{/gist_id}","starred_url":"https://api.github.com/users/Arunabh98/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arunabh98/subscriptions","organizations_url":"https://api.github.com/users/Arunabh98/orgs","repos_url":"https://api.github.com/users/Arunabh98/repos","events_url":"https://api.github.com/users/Arunabh98/events{/privacy}","received_events_url":"https://api.github.com/users/Arunabh98/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Arunabh98/oppia","description":"Tool for collaboratively building interactive lessons.","fork":true,"url":"https://api.github.com/repos/Arunabh98/oppia","forks_url":"https://api.github.com/repos/Arunabh98/oppia/forks","keys_url":"https://api.github.com/repos/Arunabh98/oppia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Arunabh98/oppia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Arunabh98/oppia/teams","hooks_url":"https://api.github.com/repos/Arunabh98/oppia/hooks","issue_events_url":"https://api.github.com/repos/Arunabh98/oppia/issues/events{/number}","events_url":"https://api.github.com/repos/Arunabh98/oppia/events","assignees_url":"https://api.github.com/repos/Arunabh98/oppia/assignees{/user}","branches_url":"https://api.github.com/repos/Arunabh98/oppia/branches{/branch}","tags_url":"https://api.github.com/repos/Arunabh98/oppia/tags","blobs_url":"https://api.github.com/repos/Arunabh98/oppia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Arunabh98/oppia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Arunabh98/oppia/git/refs{/sha}","trees_url":"https://api.github.com/repos/Arunabh98/oppia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Arunabh98/oppia/statuses/{sha}","languages_url":"https://api.github.com/repos/Arunabh98/oppia/languages","stargazers_url":"https://api.github.com/repos/Arunabh98/oppia/stargazers","contributors_url":"https://api.github.com/repos/Arunabh98/oppia/contributors","subscribers_url":"https://api.github.com/repos/Arunabh98/oppia/subscribers","subscription_url":"https://api.github.com/repos/Arunabh98/oppia/subscription","commits_url":"https://api.github.com/repos/Arunabh98/oppia/commits{/sha}","git_commits_url":"https://api.github.com/repos/Arunabh98/oppia/git/commits{/sha}","comments_url":"https://api.github.com/repos/Arunabh98/oppia/comments{/number}","issue_comment_url":"https://api.github.com/repos/Arunabh98/oppia/issues/comments{/number}","contents_url":"https://api.github.com/repos/Arunabh98/oppia/contents/{+path}","compare_url":"https://api.github.com/repos/Arunabh98/oppia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Arunabh98/oppia/merges","archive_url":"https://api.github.com/repos/Arunabh98/oppia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Arunabh98/oppia/downloads","issues_url":"https://api.github.com/repos/Arunabh98/oppia/issues{/number}","pulls_url":"https://api.github.com/repos/Arunabh98/oppia/pulls{/number}","milestones_url":"https://api.github.com/repos/Arunabh98/oppia/milestones{/number}","notifications_url":"https://api.github.com/repos/Arunabh98/oppia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Arunabh98/oppia/labels{/name}","releases_url":"https://api.github.com/repos/Arunabh98/oppia/releases{/id}","deployments_url":"https://api.github.com/repos/Arunabh98/oppia/deployments","created_at":"2016-07-16T10:05:00Z","updated_at":"2016-07-16T10:05:04Z","pushed_at":"2016-12-31T13:46:42Z","git_url":"git://github.com/Arunabh98/oppia.git","ssh_url":"git@github.com:Arunabh98/oppia.git","clone_url":"https://github.com/Arunabh98/oppia.git","svn_url":"https://github.com/Arunabh98/oppia","homepage":"https://www.oppia.org","size":48608,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":false,"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":"oppia:develop","ref":"develop","sha":"6565f74296d643e7334806987e96fa2a69e27c3c","user":{"login":"oppia","id":11620230,"avatar_url":"https://avatars.githubusercontent.com/u/11620230?v=3","gravatar_id":"","url":"https://api.github.com/users/oppia","html_url":"https://github.com/oppia","followers_url":"https://api.github.com/users/oppia/followers","following_url":"https://api.github.com/users/oppia/following{/other_user}","gists_url":"https://api.github.com/users/oppia/gists{/gist_id}","starred_url":"https://api.github.com/users/oppia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oppia/subscriptions","organizations_url":"https://api.github.com/users/oppia/orgs","repos_url":"https://api.github.com/users/oppia/repos","events_url":"https://api.github.com/users/oppia/events{/privacy}","received_events_url":"https://api.github.com/users/oppia/received_events","type":"Organization","site_admin":false},"repo":{"id":40687563,"name":"oppia","full_name":"oppia/oppia","owner":{"login":"oppia","id":11620230,"avatar_url":"https://avatars.githubusercontent.com/u/11620230?v=3","gravatar_id":"","url":"https://api.github.com/users/oppia","html_url":"https://github.com/oppia","followers_url":"https://api.github.com/users/oppia/followers","following_url":"https://api.github.com/users/oppia/following{/other_user}","gists_url":"https://api.github.com/users/oppia/gists{/gist_id}","starred_url":"https://api.github.com/users/oppia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oppia/subscriptions","organizations_url":"https://api.github.com/users/oppia/orgs","repos_url":"https://api.github.com/users/oppia/repos","events_url":"https://api.github.com/users/oppia/events{/privacy}","received_events_url":"https://api.github.com/users/oppia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/oppia/oppia","description":"Tool for collaboratively building interactive lessons.","fork":false,"url":"https://api.github.com/repos/oppia/oppia","forks_url":"https://api.github.com/repos/oppia/oppia/forks","keys_url":"https://api.github.com/repos/oppia/oppia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oppia/oppia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oppia/oppia/teams","hooks_url":"https://api.github.com/repos/oppia/oppia/hooks","issue_events_url":"https://api.github.com/repos/oppia/oppia/issues/events{/number}","events_url":"https://api.github.com/repos/oppia/oppia/events","assignees_url":"https://api.github.com/repos/oppia/oppia/assignees{/user}","branches_url":"https://api.github.com/repos/oppia/oppia/branches{/branch}","tags_url":"https://api.github.com/repos/oppia/oppia/tags","blobs_url":"https://api.github.com/repos/oppia/oppia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oppia/oppia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oppia/oppia/git/refs{/sha}","trees_url":"https://api.github.com/repos/oppia/oppia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oppia/oppia/statuses/{sha}","languages_url":"https://api.github.com/repos/oppia/oppia/languages","stargazers_url":"https://api.github.com/repos/oppia/oppia/stargazers","contributors_url":"https://api.github.com/repos/oppia/oppia/contributors","subscribers_url":"https://api.github.com/repos/oppia/oppia/subscribers","subscription_url":"https://api.github.com/repos/oppia/oppia/subscription","commits_url":"https://api.github.com/repos/oppia/oppia/commits{/sha}","git_commits_url":"https://api.github.com/repos/oppia/oppia/git/commits{/sha}","comments_url":"https://api.github.com/repos/oppia/oppia/comments{/number}","issue_comment_url":"https://api.github.com/repos/oppia/oppia/issues/comments{/number}","contents_url":"https://api.github.com/repos/oppia/oppia/contents/{+path}","compare_url":"https://api.github.com/repos/oppia/oppia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oppia/oppia/merges","archive_url":"https://api.github.com/repos/oppia/oppia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oppia/oppia/downloads","issues_url":"https://api.github.com/repos/oppia/oppia/issues{/number}","pulls_url":"https://api.github.com/repos/oppia/oppia/pulls{/number}","milestones_url":"https://api.github.com/repos/oppia/oppia/milestones{/number}","notifications_url":"https://api.github.com/repos/oppia/oppia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oppia/oppia/labels{/name}","releases_url":"https://api.github.com/repos/oppia/oppia/releases{/id}","deployments_url":"https://api.github.com/repos/oppia/oppia/deployments","created_at":"2015-08-14T00:16:14Z","updated_at":"2016-12-23T23:38:58Z","pushed_at":"2016-12-31T13:46:43Z","git_url":"git://github.com/oppia/oppia.git","ssh_url":"git@github.com:oppia/oppia.git","clone_url":"https://github.com/oppia/oppia.git","svn_url":"https://github.com/oppia/oppia","homepage":"https://www.oppia.org","size":48923,"stargazers_count":203,"watchers_count":203,"language":"Python","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":308,"mirror_url":null,"open_issues_count":358,"forks":308,"open_issues":358,"watchers":203,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/oppia/oppia/pulls/2878"},"html":{"href":"https://github.com/oppia/oppia/pull/2878"},"issue":{"href":"https://api.github.com/repos/oppia/oppia/issues/2878"},"comments":{"href":"https://api.github.com/repos/oppia/oppia/issues/2878/comments"},"review_comments":{"href":"https://api.github.com/repos/oppia/oppia/pulls/2878/comments"},"review_comment":{"href":"https://api.github.com/repos/oppia/oppia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/oppia/oppia/pulls/2878/commits"},"statuses":{"href":"https://api.github.com/repos/oppia/oppia/statuses/5ceaa8965d5225a28db31ef7724669eeab2992e5"}}}}
{"actor":{"display_login":"Arunabh98"}}