{"action":"created","comment":{"url":"https://api.github.com/repos/andela/ah-leagueOfLegends/pulls/comments/219386053","pull_request_review_id":157548223,"id":219386053,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxOTM4NjA1Mw==","diff_hunk":"@@ -12,3 +12,6 @@ export FACEBOOK_KEY=<APP ID>\n export FACEBOOK_SECRET=<App Secret>\n export GITHUB_KEY=<Client ID>\n export GITHUB_SECRET=<Client Secret>\n+\n+# Heroku Credentials\n+export HEROKU_BACKEND_URL=http://127.0.0.1:8000","path":".env.sample","position":6,"original_position":6,"commit_id":"9022a64fe7ed52d167ff8b6aae40d4e5949067c5","original_commit_id":"9022a64fe7ed52d167ff8b6aae40d4e5949067c5","user":{"login":"Quantum-35","id":39088834,"node_id":"MDQ6VXNlcjM5MDg4ODM0","avatar_url":"https://avatars1.githubusercontent.com/u/39088834?v=4","gravatar_id":"","url":"https://api.github.com/users/Quantum-35","html_url":"https://github.com/Quantum-35","followers_url":"https://api.github.com/users/Quantum-35/followers","following_url":"https://api.github.com/users/Quantum-35/following{/other_user}","gists_url":"https://api.github.com/users/Quantum-35/gists{/gist_id}","starred_url":"https://api.github.com/users/Quantum-35/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Quantum-35/subscriptions","organizations_url":"https://api.github.com/users/Quantum-35/orgs","repos_url":"https://api.github.com/users/Quantum-35/repos","events_url":"https://api.github.com/users/Quantum-35/events{/privacy}","received_events_url":"https://api.github.com/users/Quantum-35/received_events","type":"User","site_admin":false},"body":"I wanted to make sure all my teammates update their .env files. But that is not the real url, it only works in localhost.","created_at":"2018-09-21T05:18:06Z","updated_at":"2018-09-21T05:18:06Z","html_url":"https://github.com/andela/ah-leagueOfLegends/pull/34#discussion_r219386053","pull_request_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/pulls/34","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/andela/ah-leagueOfLegends/pulls/comments/219386053"},"html":{"href":"https://github.com/andela/ah-leagueOfLegends/pull/34#discussion_r219386053"},"pull_request":{"href":"https://api.github.com/repos/andela/ah-leagueOfLegends/pulls/34"}},"in_reply_to_id":219379978},"pull_request":{"url":"https://api.github.com/repos/andela/ah-leagueOfLegends/pulls/34","id":217056826,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE3MDU2ODI2","html_url":"https://github.com/andela/ah-leagueOfLegends/pull/34","diff_url":"https://github.com/andela/ah-leagueOfLegends/pull/34.diff","patch_url":"https://github.com/andela/ah-leagueOfLegends/pull/34.patch","issue_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/issues/34","number":34,"state":"open","locked":false,"title":"#159965488 Send notifications to users.","user":{"login":"Quantum-35","id":39088834,"node_id":"MDQ6VXNlcjM5MDg4ODM0","avatar_url":"https://avatars1.githubusercontent.com/u/39088834?v=4","gravatar_id":"","url":"https://api.github.com/users/Quantum-35","html_url":"https://github.com/Quantum-35","followers_url":"https://api.github.com/users/Quantum-35/followers","following_url":"https://api.github.com/users/Quantum-35/following{/other_user}","gists_url":"https://api.github.com/users/Quantum-35/gists{/gist_id}","starred_url":"https://api.github.com/users/Quantum-35/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Quantum-35/subscriptions","organizations_url":"https://api.github.com/users/Quantum-35/orgs","repos_url":"https://api.github.com/users/Quantum-35/repos","events_url":"https://api.github.com/users/Quantum-35/events{/privacy}","received_events_url":"https://api.github.com/users/Quantum-35/received_events","type":"User","site_admin":false},"body":"## What does this PR do?\r\n```\r\nEnables subscribed users to receive email, in-app notifications after a new article is published by the author they follow or any comments are made in the article that the user has favourited.\r\n```\r\n\r\n## Description of Task to be completed?\r\n```\r\n-  A user will be able to receive notifications when users he/she follows publish new articles.\r\n-  A user will able to receive notifications when articles he/she favourited have new interactions \r\n      (like     new comments).\r\n- Also, a user will be able to opt in and out of these notifications.\r\n\r\n```\r\n\r\n## How should this be manually tested?\r\n\r\n```\r\n- Clone this repo.\r\n- Create a Virtual environment and pip install the requirements.txt\r\n- Register and login at least three users.\r\n- One user should create an article and the other follows the author.\r\n- Any of the logged in users should comment to the article.\r\n- Users will receive email notifications, both in-app and via email.\r\n\r\n```\r\n\r\n## What are the relevant pivotal tracker stories?\r\n\r\n[#159965488](https://www.pivotaltracker.com/story/show/159965488)\r\n\r\n\r\n## Screenshots if available to support PR.\r\n\r\n### Getting In-app notifications\r\n<img width=\"1440\" alt=\"screen shot 2018-09-20 at 20 50 50\" src=\"https://user-images.githubusercontent.com/39088834/45836991-f01a8480-bd16-11e8-8f44-0ea5f6230d07.png\">\r\n\r\n### Getting Email notifications\r\n#### New Article\r\n<img width=\"830\" alt=\"screen shot 2018-09-20 at 20 52 14\" src=\"https://user-images.githubusercontent.com/39088834/45837085-2a842180-bd17-11e8-873f-d57b9d4e1b3b.png\">\r\n\r\n#### New Comment\r\n\r\n<img width=\"830\" alt=\"screen shot 2018-09-20 at 20 53 50\" src=\"https://user-images.githubusercontent.com/39088834/45837156-569fa280-bd17-11e8-837e-8d7590a99ba8.png\">\r\n\r\n\r\n\r\n## Questions:\r\n\r\n```\r\nWas this PR helpful?\r\n\r\n```","created_at":"2018-09-20T17:54:37Z","updated_at":"2018-09-21T05:18:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ab7ef6b93935ca09e9fdfc8e569062ac51a325b4","assignee":null,"assignees":[],"requested_reviewers":[{"login":"Derrickkip","id":7246507,"node_id":"MDQ6VXNlcjcyNDY1MDc=","avatar_url":"https://avatars1.githubusercontent.com/u/7246507?v=4","gravatar_id":"","url":"https://api.github.com/users/Derrickkip","html_url":"https://github.com/Derrickkip","followers_url":"https://api.github.com/users/Derrickkip/followers","following_url":"https://api.github.com/users/Derrickkip/following{/other_user}","gists_url":"https://api.github.com/users/Derrickkip/gists{/gist_id}","starred_url":"https://api.github.com/users/Derrickkip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Derrickkip/subscriptions","organizations_url":"https://api.github.com/users/Derrickkip/orgs","repos_url":"https://api.github.com/users/Derrickkip/repos","events_url":"https://api.github.com/users/Derrickkip/events{/privacy}","received_events_url":"https://api.github.com/users/Derrickkip/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/pulls/34/commits","review_comments_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/pulls/34/comments","review_comment_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/issues/34/comments","statuses_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/statuses/9022a64fe7ed52d167ff8b6aae40d4e5949067c5","head":{"label":"andela:ft-notify-users-159965488","ref":"ft-notify-users-159965488","sha":"9022a64fe7ed52d167ff8b6aae40d4e5949067c5","user":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":145090954,"node_id":"MDEwOlJlcG9zaXRvcnkxNDUwOTA5NTQ=","name":"ah-leagueOfLegends","full_name":"andela/ah-leagueOfLegends","private":false,"owner":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/andela/ah-leagueOfLegends","description":null,"fork":false,"url":"https://api.github.com/repos/andela/ah-leagueOfLegends","forks_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/forks","keys_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/teams","hooks_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/hooks","issue_events_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/issues/events{/number}","events_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/events","assignees_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/assignees{/user}","branches_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/branches{/branch}","tags_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/tags","blobs_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/languages","stargazers_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/stargazers","contributors_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/contributors","subscribers_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/subscribers","subscription_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/subscription","commits_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/contents/{+path}","compare_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/merges","archive_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/downloads","issues_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/issues{/number}","pulls_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/labels{/name}","releases_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/releases{/id}","deployments_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/deployments","created_at":"2018-08-17T08:02:00Z","updated_at":"2018-09-20T18:49:52Z","pushed_at":"2018-09-20T20:05:39Z","git_url":"git://github.com/andela/ah-leagueOfLegends.git","ssh_url":"git@github.com:andela/ah-leagueOfLegends.git","clone_url":"https://github.com/andela/ah-leagueOfLegends.git","svn_url":"https://github.com/andela/ah-leagueOfLegends","homepage":null,"size":290,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"base":{"label":"andela:develop","ref":"develop","sha":"865c55e6f2bebd92ed8472e4e5388992b158d7f2","user":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":145090954,"node_id":"MDEwOlJlcG9zaXRvcnkxNDUwOTA5NTQ=","name":"ah-leagueOfLegends","full_name":"andela/ah-leagueOfLegends","private":false,"owner":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/andela/ah-leagueOfLegends","description":null,"fork":false,"url":"https://api.github.com/repos/andela/ah-leagueOfLegends","forks_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/forks","keys_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/teams","hooks_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/hooks","issue_events_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/issues/events{/number}","events_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/events","assignees_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/assignees{/user}","branches_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/branches{/branch}","tags_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/tags","blobs_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/languages","stargazers_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/stargazers","contributors_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/contributors","subscribers_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/subscribers","subscription_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/subscription","commits_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/contents/{+path}","compare_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/merges","archive_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/downloads","issues_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/issues{/number}","pulls_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/labels{/name}","releases_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/releases{/id}","deployments_url":"https://api.github.com/repos/andela/ah-leagueOfLegends/deployments","created_at":"2018-08-17T08:02:00Z","updated_at":"2018-09-20T18:49:52Z","pushed_at":"2018-09-20T20:05:39Z","git_url":"git://github.com/andela/ah-leagueOfLegends.git","ssh_url":"git@github.com:andela/ah-leagueOfLegends.git","clone_url":"https://github.com/andela/ah-leagueOfLegends.git","svn_url":"https://github.com/andela/ah-leagueOfLegends","homepage":null,"size":290,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/andela/ah-leagueOfLegends/pulls/34"},"html":{"href":"https://github.com/andela/ah-leagueOfLegends/pull/34"},"issue":{"href":"https://api.github.com/repos/andela/ah-leagueOfLegends/issues/34"},"comments":{"href":"https://api.github.com/repos/andela/ah-leagueOfLegends/issues/34/comments"},"review_comments":{"href":"https://api.github.com/repos/andela/ah-leagueOfLegends/pulls/34/comments"},"review_comment":{"href":"https://api.github.com/repos/andela/ah-leagueOfLegends/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela/ah-leagueOfLegends/pulls/34/commits"},"statuses":{"href":"https://api.github.com/repos/andela/ah-leagueOfLegends/statuses/9022a64fe7ed52d167ff8b6aae40d4e5949067c5"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"Quantum-35"}}