{"action":"created","issue":{"url":"https://api.github.com/repos/andela/ah-infinity-stones/issues/39","repository_url":"https://api.github.com/repos/andela/ah-infinity-stones","labels_url":"https://api.github.com/repos/andela/ah-infinity-stones/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/andela/ah-infinity-stones/issues/39/comments","events_url":"https://api.github.com/repos/andela/ah-infinity-stones/issues/39/events","html_url":"https://github.com/andela/ah-infinity-stones/pull/39","id":390999893,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM4NjM1NDQ1","number":39,"title":"#161966915 User Profiles and Update","user":{"login":"leonardnjura","id":39657549,"node_id":"MDQ6VXNlcjM5NjU3NTQ5","avatar_url":"https://avatars0.githubusercontent.com/u/39657549?v=4","gravatar_id":"","url":"https://api.github.com/users/leonardnjura","html_url":"https://github.com/leonardnjura","followers_url":"https://api.github.com/users/leonardnjura/followers","following_url":"https://api.github.com/users/leonardnjura/following{/other_user}","gists_url":"https://api.github.com/users/leonardnjura/gists{/gist_id}","starred_url":"https://api.github.com/users/leonardnjura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leonardnjura/subscriptions","organizations_url":"https://api.github.com/users/leonardnjura/orgs","repos_url":"https://api.github.com/users/leonardnjura/repos","events_url":"https://api.github.com/users/leonardnjura/events{/privacy}","received_events_url":"https://api.github.com/users/leonardnjura/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-12-14T07:42:38Z","updated_at":"2018-12-20T16:59:58Z","closed_at":null,"author_association":"COLLABORATOR","pull_request":{"url":"https://api.github.com/repos/andela/ah-infinity-stones/pulls/39","html_url":"https://github.com/andela/ah-infinity-stones/pull/39","diff_url":"https://github.com/andela/ah-infinity-stones/pull/39.diff","patch_url":"https://github.com/andela/ah-infinity-stones/pull/39.patch"},"body":"#### What does this PR do?\r\n- Allows users to create their profile\r\n\r\n#### Description of Task to be completed?\r\n> User logins\r\n> User creates or updates their profile\r\n> Time stamp is attached upon every profile edit\r\n\r\n#### How should this be manually tested?\r\n`$ git clone -b ft-user-profiles-161966915 https://github.com/andela/ah-infinity-stones` then\r\n`$ cd ah-infinity-stones`\r\n> Create and activate virtual env\r\nvirtualenv -p python3 venv\r\n`$ source venv/bin/activate`\r\n`$ pip3 install -r requirements.txt to install the dependencies`\r\n> Setup environment variables. Copy all from below and paste them into the .env file. Update the values to your choice:\r\n> Register user via `$ python3 manage.py createsuperuser --username john --email john.doe@example.com`\r\n\r\n> `GET http://127.0.0.1:8000/api/profiles/`\r\n> `GET http://127.0.0.1:8000/api/profiles/?page=2`\r\n> `GET http://127.0.0.1:8000/api/profiles/u`\r\n> `GET PUT http://127.0.0.1:8000/api/profiles/<username>`\r\n\r\n\r\n```\r\nexport DATABASE_USER='user'\r\nexport DATABASE_PASSWORD='xxx'\r\nexport HOST='localhost'\r\nexport PORT='5432'\r\nexport DATABASE_TEST='ah_test'\r\n\r\n export EMAIL_HOST_USER='sendgrid_username'\r\n export EMAIL_HOST_PASSWORD='sendgrid_pswd'\r\n \r\n```\r\n> Activate the env variables by `$source .env`\r\n> Run migrations: $ python3 manage.py migrate\r\n> Run generic tests - $ python3 manage.py test\r\n> Run specific tests python3 manage.py test authors/apps/profiles\r\n\r\n#### What are the relevant pivotal tracker stories?\r\n[#161966915](https://www.pivotaltracker.com/story/show/161966915)\r\n\r\n#### Screenshots\r\n<img width=\"1280\" alt=\"screen shot 2018-12-14 at 10 40 14\" src=\"https://user-images.githubusercontent.com/39657549/49989882-ac898c80-ff8c-11e8-967d-4ece10410488.png\">\r\n<img width=\"1280\" alt=\"screen shot 2018-12-14 at 10 40 24\" src=\"https://user-images.githubusercontent.com/39657549/49989883-ac898c80-ff8c-11e8-9800-fb650e7ac2d1.png\">\r\n<img width=\"1280\" alt=\"screen shot 2018-12-14 at 10 40 31\" src=\"https://user-images.githubusercontent.com/39657549/49989884-ad222300-ff8c-11e8-9816-c7cb5c6c6921.png\">\r\n<img width=\"1280\" alt=\"screen shot 2018-12-14 at 10 40 40\" src=\"https://user-images.githubusercontent.com/39657549/49989885-ad222300-ff8c-11e8-90a5-76433ff9ebac.png\">\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/andela/ah-infinity-stones/issues/comments/449066231","html_url":"https://github.com/andela/ah-infinity-stones/pull/39#issuecomment-449066231","issue_url":"https://api.github.com/repos/andela/ah-infinity-stones/issues/39","id":449066231,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0OTA2NjIzMQ==","user":{"login":"codeclimate[bot]","id":36754821,"node_id":"MDM6Qm90MzY3NTQ4MjE=","avatar_url":"https://avatars0.githubusercontent.com/in/9403?v=4","gravatar_id":"","url":"https://api.github.com/users/codeclimate%5Bbot%5D","html_url":"https://github.com/apps/codeclimate","followers_url":"https://api.github.com/users/codeclimate%5Bbot%5D/followers","following_url":"https://api.github.com/users/codeclimate%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/codeclimate%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/codeclimate%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeclimate%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/codeclimate%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/codeclimate%5Bbot%5D/repos","events_url":"https://api.github.com/users/codeclimate%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/codeclimate%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2018-12-20T16:59:58Z","updated_at":"2018-12-20T16:59:58Z","author_association":"NONE","body":"Code Climate has analyzed commit 31ae3127 and detected **3 issues** on this pull request.\n\nHere's the issue category breakdown:\n\n| Category | Count |\n|:---:|:---:|\n| Complexity | 1 |\n| Duplication | 2 |\n\n\nView more on [Code Climate](https://codeclimate.com/github/andela/ah-infinity-stones/pull/39).\n"}}
{"actor":{"display_login":"codeclimate"}}