{"action":"created","comment":{"url":"https://api.github.com/repos/Andretalik/bucketlist_API/pulls/comments/125597379","pull_request_review_id":47999903,"id":125597379,"diff_hunk":"@@ -58,8 +92,39 @@ class Item(db.Model):\n     __tablename__ = 'items'\n \n     id = db.Column(db.Integer, primary_key=True, autoincrement=True)\n-    name = db.Column(db.String(255))\n+    name = db.Column(db.String(100))\n     bucketlist_owner = db.Column(db.Integer, db.ForeignKey('bucketlists.id'))\n     date_created = db.Column(db.DateTime, default=db.func.current_timestamp())\n     date_modified = db.Column(db.DateTime, default=db.func.current_timestamp(),\n                               onupdate=db.func.current_timestamp())\n+    done = db.Column(db.Boolean, default=False)\n+\n+\n+class UserSchema(validation_schema.ModelSchema):\n+    class Meta:\n+        model = User\n+    email = fields.Email(required=True)\n+\n+    @validates('username')\n+    def validate_username(self, username):\n+        if username == \"\":\n+            raise ValidationError(\"User must have a username\")\n+        elif not re.match(\"^[A-Za-z0-9]+$\", username):\n+            raise ValidationError(\"Invalid username.\")\n+\n+    @validates(\"password\")\n+    def validate_password(self, password):\n+        if password == \"\":","path":"app/models.py","position":88,"original_position":88,"commit_id":"d7365dd125022dc139ccdc822d2cb2996ab3c63a","original_commit_id":"d7365dd125022dc139ccdc822d2cb2996ab3c63a","user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars2.githubusercontent.com/u/19940114?v=3","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/assets/images/favicon.png) Issue found: [Possible hardcoded password: ''](https://www.codacy.com/app/Andretalik/bucketlist_API/pullRequest?prid=753305)","created_at":"2017-07-05T09:37:12Z","updated_at":"2017-07-05T09:37:13Z","html_url":"https://github.com/Andretalik/bucketlist_API/pull/2#discussion_r125597379","pull_request_url":"https://api.github.com/repos/Andretalik/bucketlist_API/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/Andretalik/bucketlist_API/pulls/comments/125597379"},"html":{"href":"https://github.com/Andretalik/bucketlist_API/pull/2#discussion_r125597379"},"pull_request":{"href":"https://api.github.com/repos/Andretalik/bucketlist_API/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/Andretalik/bucketlist_API/pulls/2","id":128917799,"html_url":"https://github.com/Andretalik/bucketlist_API/pull/2","diff_url":"https://github.com/Andretalik/bucketlist_API/pull/2.diff","patch_url":"https://github.com/Andretalik/bucketlist_API/pull/2.patch","issue_url":"https://api.github.com/repos/Andretalik/bucketlist_API/issues/2","number":2,"state":"open","locked":false,"title":"#147177629 Add Functionality of Users","user":{"login":"Andretalik","id":25458764,"avatar_url":"https://avatars1.githubusercontent.com/u/25458764?v=3","gravatar_id":"","url":"https://api.github.com/users/Andretalik","html_url":"https://github.com/Andretalik","followers_url":"https://api.github.com/users/Andretalik/followers","following_url":"https://api.github.com/users/Andretalik/following{/other_user}","gists_url":"https://api.github.com/users/Andretalik/gists{/gist_id}","starred_url":"https://api.github.com/users/Andretalik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Andretalik/subscriptions","organizations_url":"https://api.github.com/users/Andretalik/orgs","repos_url":"https://api.github.com/users/Andretalik/repos","events_url":"https://api.github.com/users/Andretalik/events{/privacy}","received_events_url":"https://api.github.com/users/Andretalik/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\nEnable user functionality of registering and logging in.\r\n#### Description of Task to be completed?\r\nThe following endpoints are being introduced:\r\n```\r\n/auth/register\r\n/auth/login\r\n```\r\n#### How should this be manually tested?\r\nTrigger a build on TravisCI; running all the tests, including the tests for only users.\r\n#### Any background context you want to provide?\r\nOnly registered users should have access to create bucket-lists.\r\n#### What are the relevant pivotal tracker stories?\r\n#147177629\r\n#### Screenshots\r\n![image](https://user-images.githubusercontent.com/25458764/27857997-49832b5a-617c-11e7-9274-0a7aee8fc46d.png)\r\n![image](https://user-images.githubusercontent.com/25458764/27858132-b6176fe2-617c-11e7-8e2f-a67334a8a641.png)\r\n\r\n","created_at":"2017-07-05T09:23:29Z","updated_at":"2017-07-05T09:37:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/Andretalik/bucketlist_API/pulls/2/commits","review_comments_url":"https://api.github.com/repos/Andretalik/bucketlist_API/pulls/2/comments","review_comment_url":"https://api.github.com/repos/Andretalik/bucketlist_API/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Andretalik/bucketlist_API/issues/2/comments","statuses_url":"https://api.github.com/repos/Andretalik/bucketlist_API/statuses/d7365dd125022dc139ccdc822d2cb2996ab3c63a","head":{"label":"Andretalik:ft-add_user_functionality-147177629","ref":"ft-add_user_functionality-147177629","sha":"d7365dd125022dc139ccdc822d2cb2996ab3c63a","user":{"login":"Andretalik","id":25458764,"avatar_url":"https://avatars1.githubusercontent.com/u/25458764?v=3","gravatar_id":"","url":"https://api.github.com/users/Andretalik","html_url":"https://github.com/Andretalik","followers_url":"https://api.github.com/users/Andretalik/followers","following_url":"https://api.github.com/users/Andretalik/following{/other_user}","gists_url":"https://api.github.com/users/Andretalik/gists{/gist_id}","starred_url":"https://api.github.com/users/Andretalik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Andretalik/subscriptions","organizations_url":"https://api.github.com/users/Andretalik/orgs","repos_url":"https://api.github.com/users/Andretalik/repos","events_url":"https://api.github.com/users/Andretalik/events{/privacy}","received_events_url":"https://api.github.com/users/Andretalik/received_events","type":"User","site_admin":false},"repo":{"id":93837801,"name":"bucketlist_API","full_name":"Andretalik/bucketlist_API","owner":{"login":"Andretalik","id":25458764,"avatar_url":"https://avatars1.githubusercontent.com/u/25458764?v=3","gravatar_id":"","url":"https://api.github.com/users/Andretalik","html_url":"https://github.com/Andretalik","followers_url":"https://api.github.com/users/Andretalik/followers","following_url":"https://api.github.com/users/Andretalik/following{/other_user}","gists_url":"https://api.github.com/users/Andretalik/gists{/gist_id}","starred_url":"https://api.github.com/users/Andretalik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Andretalik/subscriptions","organizations_url":"https://api.github.com/users/Andretalik/orgs","repos_url":"https://api.github.com/users/Andretalik/repos","events_url":"https://api.github.com/users/Andretalik/events{/privacy}","received_events_url":"https://api.github.com/users/Andretalik/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Andretalik/bucketlist_API","description":"Bucketlist API","fork":false,"url":"https://api.github.com/repos/Andretalik/bucketlist_API","forks_url":"https://api.github.com/repos/Andretalik/bucketlist_API/forks","keys_url":"https://api.github.com/repos/Andretalik/bucketlist_API/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Andretalik/bucketlist_API/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Andretalik/bucketlist_API/teams","hooks_url":"https://api.github.com/repos/Andretalik/bucketlist_API/hooks","issue_events_url":"https://api.github.com/repos/Andretalik/bucketlist_API/issues/events{/number}","events_url":"https://api.github.com/repos/Andretalik/bucketlist_API/events","assignees_url":"https://api.github.com/repos/Andretalik/bucketlist_API/assignees{/user}","branches_url":"https://api.github.com/repos/Andretalik/bucketlist_API/branches{/branch}","tags_url":"https://api.github.com/repos/Andretalik/bucketlist_API/tags","blobs_url":"https://api.github.com/repos/Andretalik/bucketlist_API/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Andretalik/bucketlist_API/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Andretalik/bucketlist_API/git/refs{/sha}","trees_url":"https://api.github.com/repos/Andretalik/bucketlist_API/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Andretalik/bucketlist_API/statuses/{sha}","languages_url":"https://api.github.com/repos/Andretalik/bucketlist_API/languages","stargazers_url":"https://api.github.com/repos/Andretalik/bucketlist_API/stargazers","contributors_url":"https://api.github.com/repos/Andretalik/bucketlist_API/contributors","subscribers_url":"https://api.github.com/repos/Andretalik/bucketlist_API/subscribers","subscription_url":"https://api.github.com/repos/Andretalik/bucketlist_API/subscription","commits_url":"https://api.github.com/repos/Andretalik/bucketlist_API/commits{/sha}","git_commits_url":"https://api.github.com/repos/Andretalik/bucketlist_API/git/commits{/sha}","comments_url":"https://api.github.com/repos/Andretalik/bucketlist_API/comments{/number}","issue_comment_url":"https://api.github.com/repos/Andretalik/bucketlist_API/issues/comments{/number}","contents_url":"https://api.github.com/repos/Andretalik/bucketlist_API/contents/{+path}","compare_url":"https://api.github.com/repos/Andretalik/bucketlist_API/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Andretalik/bucketlist_API/merges","archive_url":"https://api.github.com/repos/Andretalik/bucketlist_API/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Andretalik/bucketlist_API/downloads","issues_url":"https://api.github.com/repos/Andretalik/bucketlist_API/issues{/number}","pulls_url":"https://api.github.com/repos/Andretalik/bucketlist_API/pulls{/number}","milestones_url":"https://api.github.com/repos/Andretalik/bucketlist_API/milestones{/number}","notifications_url":"https://api.github.com/repos/Andretalik/bucketlist_API/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Andretalik/bucketlist_API/labels{/name}","releases_url":"https://api.github.com/repos/Andretalik/bucketlist_API/releases{/id}","deployments_url":"https://api.github.com/repos/Andretalik/bucketlist_API/deployments","created_at":"2017-06-09T08:38:25Z","updated_at":"2017-06-20T19:04:44Z","pushed_at":"2017-07-05T09:30:08Z","git_url":"git://github.com/Andretalik/bucketlist_API.git","ssh_url":"git@github.com:Andretalik/bucketlist_API.git","clone_url":"https://github.com/Andretalik/bucketlist_API.git","svn_url":"https://github.com/Andretalik/bucketlist_API","homepage":"","size":31,"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,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"base":{"label":"Andretalik:develop","ref":"develop","sha":"a1a2710b4d5a8fe5f0b2aac6a8ea6d33cdfbd3f4","user":{"login":"Andretalik","id":25458764,"avatar_url":"https://avatars1.githubusercontent.com/u/25458764?v=3","gravatar_id":"","url":"https://api.github.com/users/Andretalik","html_url":"https://github.com/Andretalik","followers_url":"https://api.github.com/users/Andretalik/followers","following_url":"https://api.github.com/users/Andretalik/following{/other_user}","gists_url":"https://api.github.com/users/Andretalik/gists{/gist_id}","starred_url":"https://api.github.com/users/Andretalik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Andretalik/subscriptions","organizations_url":"https://api.github.com/users/Andretalik/orgs","repos_url":"https://api.github.com/users/Andretalik/repos","events_url":"https://api.github.com/users/Andretalik/events{/privacy}","received_events_url":"https://api.github.com/users/Andretalik/received_events","type":"User","site_admin":false},"repo":{"id":93837801,"name":"bucketlist_API","full_name":"Andretalik/bucketlist_API","owner":{"login":"Andretalik","id":25458764,"avatar_url":"https://avatars1.githubusercontent.com/u/25458764?v=3","gravatar_id":"","url":"https://api.github.com/users/Andretalik","html_url":"https://github.com/Andretalik","followers_url":"https://api.github.com/users/Andretalik/followers","following_url":"https://api.github.com/users/Andretalik/following{/other_user}","gists_url":"https://api.github.com/users/Andretalik/gists{/gist_id}","starred_url":"https://api.github.com/users/Andretalik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Andretalik/subscriptions","organizations_url":"https://api.github.com/users/Andretalik/orgs","repos_url":"https://api.github.com/users/Andretalik/repos","events_url":"https://api.github.com/users/Andretalik/events{/privacy}","received_events_url":"https://api.github.com/users/Andretalik/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Andretalik/bucketlist_API","description":"Bucketlist API","fork":false,"url":"https://api.github.com/repos/Andretalik/bucketlist_API","forks_url":"https://api.github.com/repos/Andretalik/bucketlist_API/forks","keys_url":"https://api.github.com/repos/Andretalik/bucketlist_API/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Andretalik/bucketlist_API/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Andretalik/bucketlist_API/teams","hooks_url":"https://api.github.com/repos/Andretalik/bucketlist_API/hooks","issue_events_url":"https://api.github.com/repos/Andretalik/bucketlist_API/issues/events{/number}","events_url":"https://api.github.com/repos/Andretalik/bucketlist_API/events","assignees_url":"https://api.github.com/repos/Andretalik/bucketlist_API/assignees{/user}","branches_url":"https://api.github.com/repos/Andretalik/bucketlist_API/branches{/branch}","tags_url":"https://api.github.com/repos/Andretalik/bucketlist_API/tags","blobs_url":"https://api.github.com/repos/Andretalik/bucketlist_API/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Andretalik/bucketlist_API/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Andretalik/bucketlist_API/git/refs{/sha}","trees_url":"https://api.github.com/repos/Andretalik/bucketlist_API/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Andretalik/bucketlist_API/statuses/{sha}","languages_url":"https://api.github.com/repos/Andretalik/bucketlist_API/languages","stargazers_url":"https://api.github.com/repos/Andretalik/bucketlist_API/stargazers","contributors_url":"https://api.github.com/repos/Andretalik/bucketlist_API/contributors","subscribers_url":"https://api.github.com/repos/Andretalik/bucketlist_API/subscribers","subscription_url":"https://api.github.com/repos/Andretalik/bucketlist_API/subscription","commits_url":"https://api.github.com/repos/Andretalik/bucketlist_API/commits{/sha}","git_commits_url":"https://api.github.com/repos/Andretalik/bucketlist_API/git/commits{/sha}","comments_url":"https://api.github.com/repos/Andretalik/bucketlist_API/comments{/number}","issue_comment_url":"https://api.github.com/repos/Andretalik/bucketlist_API/issues/comments{/number}","contents_url":"https://api.github.com/repos/Andretalik/bucketlist_API/contents/{+path}","compare_url":"https://api.github.com/repos/Andretalik/bucketlist_API/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Andretalik/bucketlist_API/merges","archive_url":"https://api.github.com/repos/Andretalik/bucketlist_API/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Andretalik/bucketlist_API/downloads","issues_url":"https://api.github.com/repos/Andretalik/bucketlist_API/issues{/number}","pulls_url":"https://api.github.com/repos/Andretalik/bucketlist_API/pulls{/number}","milestones_url":"https://api.github.com/repos/Andretalik/bucketlist_API/milestones{/number}","notifications_url":"https://api.github.com/repos/Andretalik/bucketlist_API/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Andretalik/bucketlist_API/labels{/name}","releases_url":"https://api.github.com/repos/Andretalik/bucketlist_API/releases{/id}","deployments_url":"https://api.github.com/repos/Andretalik/bucketlist_API/deployments","created_at":"2017-06-09T08:38:25Z","updated_at":"2017-06-20T19:04:44Z","pushed_at":"2017-07-05T09:30:08Z","git_url":"git://github.com/Andretalik/bucketlist_API.git","ssh_url":"git@github.com:Andretalik/bucketlist_API.git","clone_url":"https://github.com/Andretalik/bucketlist_API.git","svn_url":"https://github.com/Andretalik/bucketlist_API","homepage":"","size":31,"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,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/Andretalik/bucketlist_API/pulls/2"},"html":{"href":"https://github.com/Andretalik/bucketlist_API/pull/2"},"issue":{"href":"https://api.github.com/repos/Andretalik/bucketlist_API/issues/2"},"comments":{"href":"https://api.github.com/repos/Andretalik/bucketlist_API/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/Andretalik/bucketlist_API/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/Andretalik/bucketlist_API/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Andretalik/bucketlist_API/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/Andretalik/bucketlist_API/statuses/d7365dd125022dc139ccdc822d2cb2996ab3c63a"}}}}
{"actor":{"display_login":"codacy-bot"}}