{"action":"created","comment":{"url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/pulls/comments/239053413","pull_request_review_id":181741238,"id":239053413,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzOTA1MzQxMw==","diff_hunk":"@@ -3,12 +3,6 @@\n from flask_jwt_extended import JWTManager\n from instance.config import config\n \n-from app.api.v1.views.incident import (RedFlagRecords,\n-                                       RedFlagRecord,\n-                                       RedFlagRecordLocation,\n-                                       RedFlagRecordComment)\n-from app.api.v1.views.auth import (SignIn, SignUp)\n-\n jwt = JWTManager()","path":"app/__init__.py","position":10,"original_position":10,"commit_id":"5e25a1dc251d952aae3e56e65346911a0813786c","original_commit_id":"5e25a1dc251d952aae3e56e65346911a0813786c","user":{"login":"jmutuku95","id":28805113,"node_id":"MDQ6VXNlcjI4ODA1MTEz","avatar_url":"https://avatars3.githubusercontent.com/u/28805113?v=4","gravatar_id":"","url":"https://api.github.com/users/jmutuku95","html_url":"https://github.com/jmutuku95","followers_url":"https://api.github.com/users/jmutuku95/followers","following_url":"https://api.github.com/users/jmutuku95/following{/other_user}","gists_url":"https://api.github.com/users/jmutuku95/gists{/gist_id}","starred_url":"https://api.github.com/users/jmutuku95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmutuku95/subscriptions","organizations_url":"https://api.github.com/users/jmutuku95/orgs","repos_url":"https://api.github.com/users/jmutuku95/repos","events_url":"https://api.github.com/users/jmutuku95/events{/privacy}","received_events_url":"https://api.github.com/users/jmutuku95/received_events","type":"User","site_admin":false},"body":"do away with jwt-extended","created_at":"2018-12-05T12:57:33Z","updated_at":"2018-12-05T12:58:10Z","html_url":"https://github.com/bl4ck4ndbr0wn/iReporter/pull/42#discussion_r239053413","pull_request_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/pulls/42","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/pulls/comments/239053413"},"html":{"href":"https://github.com/bl4ck4ndbr0wn/iReporter/pull/42#discussion_r239053413"},"pull_request":{"href":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/pulls/42"}}},"pull_request":{"url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/pulls/42","id":236141877,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM2MTQxODc3","html_url":"https://github.com/bl4ck4ndbr0wn/iReporter/pull/42","diff_url":"https://github.com/bl4ck4ndbr0wn/iReporter/pull/42.diff","patch_url":"https://github.com/bl4ck4ndbr0wn/iReporter/pull/42.patch","issue_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/issues/42","number":42,"state":"open","locked":false,"title":"#162412562 user signup","user":{"login":"bl4ck4ndbr0wn","id":33542127,"node_id":"MDQ6VXNlcjMzNTQyMTI3","avatar_url":"https://avatars3.githubusercontent.com/u/33542127?v=4","gravatar_id":"","url":"https://api.github.com/users/bl4ck4ndbr0wn","html_url":"https://github.com/bl4ck4ndbr0wn","followers_url":"https://api.github.com/users/bl4ck4ndbr0wn/followers","following_url":"https://api.github.com/users/bl4ck4ndbr0wn/following{/other_user}","gists_url":"https://api.github.com/users/bl4ck4ndbr0wn/gists{/gist_id}","starred_url":"https://api.github.com/users/bl4ck4ndbr0wn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bl4ck4ndbr0wn/subscriptions","organizations_url":"https://api.github.com/users/bl4ck4ndbr0wn/orgs","repos_url":"https://api.github.com/users/bl4ck4ndbr0wn/repos","events_url":"https://api.github.com/users/bl4ck4ndbr0wn/events{/privacy}","received_events_url":"https://api.github.com/users/bl4ck4ndbr0wn/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\nHave Post endpoint to allow users to register\r\n#### Description of Task to be completed?\r\nTest POST /api/v2/auth/register and make them fail\r\nCreate register endpoints \r\nTest API endpoint to confirm that the register is working.\r\n#### How should this be manually tested?\r\nClone the repo as bellow:\r\n ```\r\n git clone - b ft-user-signup-162412562 git@github.com: bl4ck4ndbr0wn/iReporter.git\r\n```\r\nCreate a virtual environment and activate it\r\n ```\r\n python3 - m venv env\r\n source .env\r\n ```\r\n Install all the dependencies needed by\r\n ```\r\n pip install - r requirements.txt\r\n ```\r\n Run the flask application\r\n ```\r\n  flask run\r\n ```\r\nOn postname try sending a request\r\n```\r\n* POST  /api/v2/auth/register a user\r\n* :params\r\n      {  \r\n         “firstname” : String,\r\n         “lastname” : String,\r\n         “othernames” : String,\r\n         “email” : String,\r\n         ”phoneNumber” : String,\r\n         “username” : String,\r\n         “password” : String,\r\n       }\r\n```\r\n#### Any background context you want to provide?\r\nCreate a postgresql database and name it ireporter.\r\n#### What are the relevant pivotal tracker stories?\r\n [  # 162412562](https://www.pivotaltracker.com/n/projects/2226962)","created_at":"2018-12-05T11:37:49Z","updated_at":"2018-12-05T12:58:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0769770ef223736721eca7c41d4772e9eb0eb015","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/pulls/42/commits","review_comments_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/pulls/42/comments","review_comment_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/issues/42/comments","statuses_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/statuses/5e25a1dc251d952aae3e56e65346911a0813786c","head":{"label":"bl4ck4ndbr0wn:ft-user-signup-162412562","ref":"ft-user-signup-162412562","sha":"5e25a1dc251d952aae3e56e65346911a0813786c","user":{"login":"bl4ck4ndbr0wn","id":33542127,"node_id":"MDQ6VXNlcjMzNTQyMTI3","avatar_url":"https://avatars3.githubusercontent.com/u/33542127?v=4","gravatar_id":"","url":"https://api.github.com/users/bl4ck4ndbr0wn","html_url":"https://github.com/bl4ck4ndbr0wn","followers_url":"https://api.github.com/users/bl4ck4ndbr0wn/followers","following_url":"https://api.github.com/users/bl4ck4ndbr0wn/following{/other_user}","gists_url":"https://api.github.com/users/bl4ck4ndbr0wn/gists{/gist_id}","starred_url":"https://api.github.com/users/bl4ck4ndbr0wn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bl4ck4ndbr0wn/subscriptions","organizations_url":"https://api.github.com/users/bl4ck4ndbr0wn/orgs","repos_url":"https://api.github.com/users/bl4ck4ndbr0wn/repos","events_url":"https://api.github.com/users/bl4ck4ndbr0wn/events{/privacy}","received_events_url":"https://api.github.com/users/bl4ck4ndbr0wn/received_events","type":"User","site_admin":false},"repo":{"id":158377510,"node_id":"MDEwOlJlcG9zaXRvcnkxNTgzNzc1MTA=","name":"iReporter","full_name":"bl4ck4ndbr0wn/iReporter","private":false,"owner":{"login":"bl4ck4ndbr0wn","id":33542127,"node_id":"MDQ6VXNlcjMzNTQyMTI3","avatar_url":"https://avatars3.githubusercontent.com/u/33542127?v=4","gravatar_id":"","url":"https://api.github.com/users/bl4ck4ndbr0wn","html_url":"https://github.com/bl4ck4ndbr0wn","followers_url":"https://api.github.com/users/bl4ck4ndbr0wn/followers","following_url":"https://api.github.com/users/bl4ck4ndbr0wn/following{/other_user}","gists_url":"https://api.github.com/users/bl4ck4ndbr0wn/gists{/gist_id}","starred_url":"https://api.github.com/users/bl4ck4ndbr0wn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bl4ck4ndbr0wn/subscriptions","organizations_url":"https://api.github.com/users/bl4ck4ndbr0wn/orgs","repos_url":"https://api.github.com/users/bl4ck4ndbr0wn/repos","events_url":"https://api.github.com/users/bl4ck4ndbr0wn/events{/privacy}","received_events_url":"https://api.github.com/users/bl4ck4ndbr0wn/received_events","type":"User","site_admin":false},"html_url":"https://github.com/bl4ck4ndbr0wn/iReporter","description":" iReporter enables any/every citizen to bring any form of corruption to the notice of appropriate authorities and the general public. Users can also report on things that needs government intervention.","fork":false,"url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter","forks_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/forks","keys_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/teams","hooks_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/hooks","issue_events_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/issues/events{/number}","events_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/events","assignees_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/assignees{/user}","branches_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/branches{/branch}","tags_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/tags","blobs_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/git/refs{/sha}","trees_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/statuses/{sha}","languages_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/languages","stargazers_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/stargazers","contributors_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/contributors","subscribers_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/subscribers","subscription_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/subscription","commits_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/commits{/sha}","git_commits_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/git/commits{/sha}","comments_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/comments{/number}","issue_comment_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/issues/comments{/number}","contents_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/contents/{+path}","compare_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/merges","archive_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/downloads","issues_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/issues{/number}","pulls_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/pulls{/number}","milestones_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/milestones{/number}","notifications_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/labels{/name}","releases_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/releases{/id}","deployments_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/deployments","created_at":"2018-11-20T11:17:06Z","updated_at":"2018-12-05T07:38:54Z","pushed_at":"2018-12-05T12:48:45Z","git_url":"git://github.com/bl4ck4ndbr0wn/iReporter.git","ssh_url":"git@github.com:bl4ck4ndbr0wn/iReporter.git","clone_url":"https://github.com/bl4ck4ndbr0wn/iReporter.git","svn_url":"https://github.com/bl4ck4ndbr0wn/iReporter","homepage":"https://bl4ck4ndbr0wn.github.io/iReporter/UI","size":281,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":2,"watchers":0,"default_branch":"develop-v2"}},"base":{"label":"bl4ck4ndbr0wn:develop-v2","ref":"develop-v2","sha":"0c3741fa5b216c6a81d090d9cf1c63ae5134e142","user":{"login":"bl4ck4ndbr0wn","id":33542127,"node_id":"MDQ6VXNlcjMzNTQyMTI3","avatar_url":"https://avatars3.githubusercontent.com/u/33542127?v=4","gravatar_id":"","url":"https://api.github.com/users/bl4ck4ndbr0wn","html_url":"https://github.com/bl4ck4ndbr0wn","followers_url":"https://api.github.com/users/bl4ck4ndbr0wn/followers","following_url":"https://api.github.com/users/bl4ck4ndbr0wn/following{/other_user}","gists_url":"https://api.github.com/users/bl4ck4ndbr0wn/gists{/gist_id}","starred_url":"https://api.github.com/users/bl4ck4ndbr0wn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bl4ck4ndbr0wn/subscriptions","organizations_url":"https://api.github.com/users/bl4ck4ndbr0wn/orgs","repos_url":"https://api.github.com/users/bl4ck4ndbr0wn/repos","events_url":"https://api.github.com/users/bl4ck4ndbr0wn/events{/privacy}","received_events_url":"https://api.github.com/users/bl4ck4ndbr0wn/received_events","type":"User","site_admin":false},"repo":{"id":158377510,"node_id":"MDEwOlJlcG9zaXRvcnkxNTgzNzc1MTA=","name":"iReporter","full_name":"bl4ck4ndbr0wn/iReporter","private":false,"owner":{"login":"bl4ck4ndbr0wn","id":33542127,"node_id":"MDQ6VXNlcjMzNTQyMTI3","avatar_url":"https://avatars3.githubusercontent.com/u/33542127?v=4","gravatar_id":"","url":"https://api.github.com/users/bl4ck4ndbr0wn","html_url":"https://github.com/bl4ck4ndbr0wn","followers_url":"https://api.github.com/users/bl4ck4ndbr0wn/followers","following_url":"https://api.github.com/users/bl4ck4ndbr0wn/following{/other_user}","gists_url":"https://api.github.com/users/bl4ck4ndbr0wn/gists{/gist_id}","starred_url":"https://api.github.com/users/bl4ck4ndbr0wn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bl4ck4ndbr0wn/subscriptions","organizations_url":"https://api.github.com/users/bl4ck4ndbr0wn/orgs","repos_url":"https://api.github.com/users/bl4ck4ndbr0wn/repos","events_url":"https://api.github.com/users/bl4ck4ndbr0wn/events{/privacy}","received_events_url":"https://api.github.com/users/bl4ck4ndbr0wn/received_events","type":"User","site_admin":false},"html_url":"https://github.com/bl4ck4ndbr0wn/iReporter","description":" iReporter enables any/every citizen to bring any form of corruption to the notice of appropriate authorities and the general public. Users can also report on things that needs government intervention.","fork":false,"url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter","forks_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/forks","keys_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/teams","hooks_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/hooks","issue_events_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/issues/events{/number}","events_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/events","assignees_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/assignees{/user}","branches_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/branches{/branch}","tags_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/tags","blobs_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/git/refs{/sha}","trees_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/statuses/{sha}","languages_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/languages","stargazers_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/stargazers","contributors_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/contributors","subscribers_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/subscribers","subscription_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/subscription","commits_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/commits{/sha}","git_commits_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/git/commits{/sha}","comments_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/comments{/number}","issue_comment_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/issues/comments{/number}","contents_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/contents/{+path}","compare_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/merges","archive_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/downloads","issues_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/issues{/number}","pulls_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/pulls{/number}","milestones_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/milestones{/number}","notifications_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/labels{/name}","releases_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/releases{/id}","deployments_url":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/deployments","created_at":"2018-11-20T11:17:06Z","updated_at":"2018-12-05T07:38:54Z","pushed_at":"2018-12-05T12:48:45Z","git_url":"git://github.com/bl4ck4ndbr0wn/iReporter.git","ssh_url":"git@github.com:bl4ck4ndbr0wn/iReporter.git","clone_url":"https://github.com/bl4ck4ndbr0wn/iReporter.git","svn_url":"https://github.com/bl4ck4ndbr0wn/iReporter","homepage":"https://bl4ck4ndbr0wn.github.io/iReporter/UI","size":281,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":2,"watchers":0,"default_branch":"develop-v2"}},"_links":{"self":{"href":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/pulls/42"},"html":{"href":"https://github.com/bl4ck4ndbr0wn/iReporter/pull/42"},"issue":{"href":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/issues/42"},"comments":{"href":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/issues/42/comments"},"review_comments":{"href":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/pulls/42/comments"},"review_comment":{"href":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/pulls/42/commits"},"statuses":{"href":"https://api.github.com/repos/bl4ck4ndbr0wn/iReporter/statuses/5e25a1dc251d952aae3e56e65346911a0813786c"}},"author_association":"OWNER"}}
{"actor":{"display_login":"jmutuku95"}}