{"action":"created","comment":{"url":"https://api.github.com/repos/andela/mrm_api/pulls/comments/228432800","pull_request_review_id":168704457,"id":228432800,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyODQzMjgwMA==","diff_hunk":"@@ -1,4 +1,6 @@\n import graphene\n+# from flask.ext.mail import Mail, Message\n+# from celery import Celery\n from graphene_sqlalchemy import SQLAlchemyObjectType","path":"api/office/schema.py","position":4,"original_position":4,"commit_id":"007711ebebdfb417dc349bbcc8dc7d76c47052c6","original_commit_id":"007711ebebdfb417dc349bbcc8dc7d76c47052c6","user":{"login":"kzyGit","id":20478530,"node_id":"MDQ6VXNlcjIwNDc4NTMw","avatar_url":"https://avatars0.githubusercontent.com/u/20478530?v=4","gravatar_id":"","url":"https://api.github.com/users/kzyGit","html_url":"https://github.com/kzyGit","followers_url":"https://api.github.com/users/kzyGit/followers","following_url":"https://api.github.com/users/kzyGit/following{/other_user}","gists_url":"https://api.github.com/users/kzyGit/gists{/gist_id}","starred_url":"https://api.github.com/users/kzyGit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kzyGit/subscriptions","organizations_url":"https://api.github.com/users/kzyGit/orgs","repos_url":"https://api.github.com/users/kzyGit/repos","events_url":"https://api.github.com/users/kzyGit/events{/privacy}","received_events_url":"https://api.github.com/users/kzyGit/received_events","type":"User","site_admin":false},"body":"@blac-siren Good job, You could however, remove the commented code at this point.","created_at":"2018-10-26T07:45:29Z","updated_at":"2018-10-26T07:45:30Z","html_url":"https://github.com/andela/mrm_api/pull/133#discussion_r228432800","pull_request_url":"https://api.github.com/repos/andela/mrm_api/pulls/133","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/andela/mrm_api/pulls/comments/228432800"},"html":{"href":"https://github.com/andela/mrm_api/pull/133#discussion_r228432800"},"pull_request":{"href":"https://api.github.com/repos/andela/mrm_api/pulls/133"}}},"pull_request":{"url":"https://api.github.com/repos/andela/mrm_api/pulls/133","id":225669874,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI1NjY5ODc0","html_url":"https://github.com/andela/mrm_api/pull/133","diff_url":"https://github.com/andela/mrm_api/pull/133.diff","patch_url":"https://github.com/andela/mrm_api/pull/133.patch","issue_url":"https://api.github.com/repos/andela/mrm_api/issues/133","number":133,"state":"open","locked":false,"title":"#159986700 Admin invites users via email","user":{"login":"blac-siren","id":39412037,"node_id":"MDQ6VXNlcjM5NDEyMDM3","avatar_url":"https://avatars3.githubusercontent.com/u/39412037?v=4","gravatar_id":"","url":"https://api.github.com/users/blac-siren","html_url":"https://github.com/blac-siren","followers_url":"https://api.github.com/users/blac-siren/followers","following_url":"https://api.github.com/users/blac-siren/following{/other_user}","gists_url":"https://api.github.com/users/blac-siren/gists{/gist_id}","starred_url":"https://api.github.com/users/blac-siren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blac-siren/subscriptions","organizations_url":"https://api.github.com/users/blac-siren/orgs","repos_url":"https://api.github.com/users/blac-siren/repos","events_url":"https://api.github.com/users/blac-siren/events{/privacy}","received_events_url":"https://api.github.com/users/blac-siren/received_events","type":"User","site_admin":false},"body":"**What does this PR do?**\r\nEnables admin to invite user via email\r\n\r\n**How should this be tested?**\r\n- install required dependencies `pip install -r requirements.txt`\r\n- setup email configuration to` .env file` from  .env-sample\r\n- install `brew install redis` and run ` redis-server`\r\n- run celery worker `celery worker -A cworker.celery --loglevel=info`\r\n - Run the server.\r\n\r\n**What are the relevant pivotal tracker stories?**\r\n[159986700](https://www.pivotaltracker.com/story/show/159986700)\r\n\r\n**Screenshots**\r\n_query and response_\r\n\r\n![image](https://user-images.githubusercontent.com/39412037/47487188-a14a9800-d84a-11e8-8154-425025e0a397.png)\r\n\r\n_email preview_\r\n<img width=\"1680\" alt=\"screen shot 2018-10-25 at 10 15 15\" src=\"https://user-images.githubusercontent.com/39412037/47487243-b9bab280-d84a-11e8-8cbd-aa598d6e632f.png\">\r\n\r\n\r\n\r\n","created_at":"2018-10-25T08:40:31Z","updated_at":"2018-10-26T07:45:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a4011dbe0dedd910be4717dba566ac74a6769587","assignee":null,"assignees":[],"requested_reviewers":[{"login":"sam-karis","id":22454909,"node_id":"MDQ6VXNlcjIyNDU0OTA5","avatar_url":"https://avatars3.githubusercontent.com/u/22454909?v=4","gravatar_id":"","url":"https://api.github.com/users/sam-karis","html_url":"https://github.com/sam-karis","followers_url":"https://api.github.com/users/sam-karis/followers","following_url":"https://api.github.com/users/sam-karis/following{/other_user}","gists_url":"https://api.github.com/users/sam-karis/gists{/gist_id}","starred_url":"https://api.github.com/users/sam-karis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sam-karis/subscriptions","organizations_url":"https://api.github.com/users/sam-karis/orgs","repos_url":"https://api.github.com/users/sam-karis/repos","events_url":"https://api.github.com/users/sam-karis/events{/privacy}","received_events_url":"https://api.github.com/users/sam-karis/received_events","type":"User","site_admin":false},{"login":"lennykioko","id":28927645,"node_id":"MDQ6VXNlcjI4OTI3NjQ1","avatar_url":"https://avatars3.githubusercontent.com/u/28927645?v=4","gravatar_id":"","url":"https://api.github.com/users/lennykioko","html_url":"https://github.com/lennykioko","followers_url":"https://api.github.com/users/lennykioko/followers","following_url":"https://api.github.com/users/lennykioko/following{/other_user}","gists_url":"https://api.github.com/users/lennykioko/gists{/gist_id}","starred_url":"https://api.github.com/users/lennykioko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lennykioko/subscriptions","organizations_url":"https://api.github.com/users/lennykioko/orgs","repos_url":"https://api.github.com/users/lennykioko/repos","events_url":"https://api.github.com/users/lennykioko/events{/privacy}","received_events_url":"https://api.github.com/users/lennykioko/received_events","type":"User","site_admin":false},{"login":"migot01","id":29063646,"node_id":"MDQ6VXNlcjI5MDYzNjQ2","avatar_url":"https://avatars3.githubusercontent.com/u/29063646?v=4","gravatar_id":"","url":"https://api.github.com/users/migot01","html_url":"https://github.com/migot01","followers_url":"https://api.github.com/users/migot01/followers","following_url":"https://api.github.com/users/migot01/following{/other_user}","gists_url":"https://api.github.com/users/migot01/gists{/gist_id}","starred_url":"https://api.github.com/users/migot01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/migot01/subscriptions","organizations_url":"https://api.github.com/users/migot01/orgs","repos_url":"https://api.github.com/users/migot01/repos","events_url":"https://api.github.com/users/migot01/events{/privacy}","received_events_url":"https://api.github.com/users/migot01/received_events","type":"User","site_admin":false},{"login":"3V0L","id":33119403,"node_id":"MDQ6VXNlcjMzMTE5NDAz","avatar_url":"https://avatars0.githubusercontent.com/u/33119403?v=4","gravatar_id":"","url":"https://api.github.com/users/3V0L","html_url":"https://github.com/3V0L","followers_url":"https://api.github.com/users/3V0L/followers","following_url":"https://api.github.com/users/3V0L/following{/other_user}","gists_url":"https://api.github.com/users/3V0L/gists{/gist_id}","starred_url":"https://api.github.com/users/3V0L/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/3V0L/subscriptions","organizations_url":"https://api.github.com/users/3V0L/orgs","repos_url":"https://api.github.com/users/3V0L/repos","events_url":"https://api.github.com/users/3V0L/events{/privacy}","received_events_url":"https://api.github.com/users/3V0L/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/andela/mrm_api/pulls/133/commits","review_comments_url":"https://api.github.com/repos/andela/mrm_api/pulls/133/comments","review_comment_url":"https://api.github.com/repos/andela/mrm_api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela/mrm_api/issues/133/comments","statuses_url":"https://api.github.com/repos/andela/mrm_api/statuses/007711ebebdfb417dc349bbcc8dc7d76c47052c6","head":{"label":"andela:ft-invite-to-converge-via-email-159986700","ref":"ft-invite-to-converge-via-email-159986700","sha":"007711ebebdfb417dc349bbcc8dc7d76c47052c6","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":126317081,"node_id":"MDEwOlJlcG9zaXRvcnkxMjYzMTcwODE=","name":"mrm_api","full_name":"andela/mrm_api","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/mrm_api","description":null,"fork":false,"url":"https://api.github.com/repos/andela/mrm_api","forks_url":"https://api.github.com/repos/andela/mrm_api/forks","keys_url":"https://api.github.com/repos/andela/mrm_api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/mrm_api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/mrm_api/teams","hooks_url":"https://api.github.com/repos/andela/mrm_api/hooks","issue_events_url":"https://api.github.com/repos/andela/mrm_api/issues/events{/number}","events_url":"https://api.github.com/repos/andela/mrm_api/events","assignees_url":"https://api.github.com/repos/andela/mrm_api/assignees{/user}","branches_url":"https://api.github.com/repos/andela/mrm_api/branches{/branch}","tags_url":"https://api.github.com/repos/andela/mrm_api/tags","blobs_url":"https://api.github.com/repos/andela/mrm_api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/mrm_api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/mrm_api/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/mrm_api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/mrm_api/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/mrm_api/languages","stargazers_url":"https://api.github.com/repos/andela/mrm_api/stargazers","contributors_url":"https://api.github.com/repos/andela/mrm_api/contributors","subscribers_url":"https://api.github.com/repos/andela/mrm_api/subscribers","subscription_url":"https://api.github.com/repos/andela/mrm_api/subscription","commits_url":"https://api.github.com/repos/andela/mrm_api/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/mrm_api/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/mrm_api/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/mrm_api/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/mrm_api/contents/{+path}","compare_url":"https://api.github.com/repos/andela/mrm_api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/mrm_api/merges","archive_url":"https://api.github.com/repos/andela/mrm_api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/mrm_api/downloads","issues_url":"https://api.github.com/repos/andela/mrm_api/issues{/number}","pulls_url":"https://api.github.com/repos/andela/mrm_api/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/mrm_api/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/mrm_api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/mrm_api/labels{/name}","releases_url":"https://api.github.com/repos/andela/mrm_api/releases{/id}","deployments_url":"https://api.github.com/repos/andela/mrm_api/deployments","created_at":"2018-03-22T10:16:08Z","updated_at":"2018-10-26T06:00:28Z","pushed_at":"2018-10-26T06:41:49Z","git_url":"git://github.com/andela/mrm_api.git","ssh_url":"git@github.com:andela/mrm_api.git","clone_url":"https://github.com/andela/mrm_api.git","svn_url":"https://github.com/andela/mrm_api","homepage":null,"size":26646,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":7,"license":null,"forks":3,"open_issues":7,"watchers":2,"default_branch":"develop"}},"base":{"label":"andela:develop","ref":"develop","sha":"506645ab23da474af3802bdd6b39f7a9b8ad2edb","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":126317081,"node_id":"MDEwOlJlcG9zaXRvcnkxMjYzMTcwODE=","name":"mrm_api","full_name":"andela/mrm_api","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/mrm_api","description":null,"fork":false,"url":"https://api.github.com/repos/andela/mrm_api","forks_url":"https://api.github.com/repos/andela/mrm_api/forks","keys_url":"https://api.github.com/repos/andela/mrm_api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/mrm_api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/mrm_api/teams","hooks_url":"https://api.github.com/repos/andela/mrm_api/hooks","issue_events_url":"https://api.github.com/repos/andela/mrm_api/issues/events{/number}","events_url":"https://api.github.com/repos/andela/mrm_api/events","assignees_url":"https://api.github.com/repos/andela/mrm_api/assignees{/user}","branches_url":"https://api.github.com/repos/andela/mrm_api/branches{/branch}","tags_url":"https://api.github.com/repos/andela/mrm_api/tags","blobs_url":"https://api.github.com/repos/andela/mrm_api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/mrm_api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/mrm_api/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/mrm_api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/mrm_api/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/mrm_api/languages","stargazers_url":"https://api.github.com/repos/andela/mrm_api/stargazers","contributors_url":"https://api.github.com/repos/andela/mrm_api/contributors","subscribers_url":"https://api.github.com/repos/andela/mrm_api/subscribers","subscription_url":"https://api.github.com/repos/andela/mrm_api/subscription","commits_url":"https://api.github.com/repos/andela/mrm_api/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/mrm_api/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/mrm_api/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/mrm_api/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/mrm_api/contents/{+path}","compare_url":"https://api.github.com/repos/andela/mrm_api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/mrm_api/merges","archive_url":"https://api.github.com/repos/andela/mrm_api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/mrm_api/downloads","issues_url":"https://api.github.com/repos/andela/mrm_api/issues{/number}","pulls_url":"https://api.github.com/repos/andela/mrm_api/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/mrm_api/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/mrm_api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/mrm_api/labels{/name}","releases_url":"https://api.github.com/repos/andela/mrm_api/releases{/id}","deployments_url":"https://api.github.com/repos/andela/mrm_api/deployments","created_at":"2018-03-22T10:16:08Z","updated_at":"2018-10-26T06:00:28Z","pushed_at":"2018-10-26T06:41:49Z","git_url":"git://github.com/andela/mrm_api.git","ssh_url":"git@github.com:andela/mrm_api.git","clone_url":"https://github.com/andela/mrm_api.git","svn_url":"https://github.com/andela/mrm_api","homepage":null,"size":26646,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":7,"license":null,"forks":3,"open_issues":7,"watchers":2,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/andela/mrm_api/pulls/133"},"html":{"href":"https://github.com/andela/mrm_api/pull/133"},"issue":{"href":"https://api.github.com/repos/andela/mrm_api/issues/133"},"comments":{"href":"https://api.github.com/repos/andela/mrm_api/issues/133/comments"},"review_comments":{"href":"https://api.github.com/repos/andela/mrm_api/pulls/133/comments"},"review_comment":{"href":"https://api.github.com/repos/andela/mrm_api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela/mrm_api/pulls/133/commits"},"statuses":{"href":"https://api.github.com/repos/andela/mrm_api/statuses/007711ebebdfb417dc349bbcc8dc7d76c47052c6"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"kzyGit"}}