{"action":"created","comment":{"url":"https://api.github.com/repos/hack4impact-uiuc/philareads/pulls/comments/239990294","pull_request_review_id":182928574,"id":239990294,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzOTk5MDI5NA==","diff_hunk":"@@ -0,0 +1,85 @@\n+from flask import Blueprint\n+from flask import request\n+from api.core import (\n+    create_response,\n+    serialize_list,\n+    logger,\n+    invalid_model_helper,\n+    admin_route,\n+)\n+from api.models import db, ParentAdvice\n+\n+parent_advice = Blueprint(\"parent_advice\", __name__)\n+\n+\n+@parent_advice.route(\"/parent_advice\", methods=[\"POST\"])\n+@admin_route\n+def create_parent_advice(user_id):\n+    user_data = request.get_json()\n+    if invalid_model_helper(user_data, [\"text\"]):","path":"backend/api/views/parentadvice.py","position":19,"original_position":19,"commit_id":"c9f8acf7b39a9c971a66dc0adc58f494e917f55a","original_commit_id":"c9f8acf7b39a9c971a66dc0adc58f494e917f55a","user":{"login":"micleo2","id":12721457,"node_id":"MDQ6VXNlcjEyNzIxNDU3","avatar_url":"https://avatars3.githubusercontent.com/u/12721457?v=4","gravatar_id":"","url":"https://api.github.com/users/micleo2","html_url":"https://github.com/micleo2","followers_url":"https://api.github.com/users/micleo2/followers","following_url":"https://api.github.com/users/micleo2/following{/other_user}","gists_url":"https://api.github.com/users/micleo2/gists{/gist_id}","starred_url":"https://api.github.com/users/micleo2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/micleo2/subscriptions","organizations_url":"https://api.github.com/users/micleo2/orgs","repos_url":"https://api.github.com/users/micleo2/repos","events_url":"https://api.github.com/users/micleo2/events{/privacy}","received_events_url":"https://api.github.com/users/micleo2/received_events","type":"User","site_admin":false},"body":"I see uve discovered invalid_model_helper :+1: ","created_at":"2018-12-08T02:39:03Z","updated_at":"2018-12-08T02:39:03Z","html_url":"https://github.com/hack4impact-uiuc/philareads/pull/186#discussion_r239990294","pull_request_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/pulls/186","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/hack4impact-uiuc/philareads/pulls/comments/239990294"},"html":{"href":"https://github.com/hack4impact-uiuc/philareads/pull/186#discussion_r239990294"},"pull_request":{"href":"https://api.github.com/repos/hack4impact-uiuc/philareads/pulls/186"}}},"pull_request":{"url":"https://api.github.com/repos/hack4impact-uiuc/philareads/pulls/186","id":235681909,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM1NjgxOTA5","html_url":"https://github.com/hack4impact-uiuc/philareads/pull/186","diff_url":"https://github.com/hack4impact-uiuc/philareads/pull/186.diff","patch_url":"https://github.com/hack4impact-uiuc/philareads/pull/186.patch","issue_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/issues/186","number":186,"state":"open","locked":false,"title":"RFR: Parent Advice Routes/Model","user":{"login":"Davidw1339","id":9372512,"node_id":"MDQ6VXNlcjkzNzI1MTI=","avatar_url":"https://avatars3.githubusercontent.com/u/9372512?v=4","gravatar_id":"","url":"https://api.github.com/users/Davidw1339","html_url":"https://github.com/Davidw1339","followers_url":"https://api.github.com/users/Davidw1339/followers","following_url":"https://api.github.com/users/Davidw1339/following{/other_user}","gists_url":"https://api.github.com/users/Davidw1339/gists{/gist_id}","starred_url":"https://api.github.com/users/Davidw1339/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Davidw1339/subscriptions","organizations_url":"https://api.github.com/users/Davidw1339/orgs","repos_url":"https://api.github.com/users/Davidw1339/repos","events_url":"https://api.github.com/users/Davidw1339/events{/privacy}","received_events_url":"https://api.github.com/users/Davidw1339/received_events","type":"User","site_admin":false},"body":"## Status: \r\n:rocket: Ready\r\n\r\n## Description\r\nAdded routes and model for parent advice\r\n\r\nRelated issues: fixes #173 ","created_at":"2018-12-04T05:10:42Z","updated_at":"2018-12-08T02:39:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2430bc36f3af6252a3d8037213c6633ab1e4cc4b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1152292752,"node_id":"MDU6TGFiZWwxMTUyMjkyNzUy","url":"https://api.github.com/repos/hack4impact-uiuc/philareads/labels/RFR","name":"RFR","color":"d63764","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/pulls/186/commits","review_comments_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/pulls/186/comments","review_comment_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/issues/186/comments","statuses_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/statuses/c9f8acf7b39a9c971a66dc0adc58f494e917f55a","head":{"label":"hack4impact-uiuc:dw/parentadvice_173","ref":"dw/parentadvice_173","sha":"c9f8acf7b39a9c971a66dc0adc58f494e917f55a","user":{"login":"hack4impact-uiuc","id":32913348,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyOTEzMzQ4","avatar_url":"https://avatars1.githubusercontent.com/u/32913348?v=4","gravatar_id":"","url":"https://api.github.com/users/hack4impact-uiuc","html_url":"https://github.com/hack4impact-uiuc","followers_url":"https://api.github.com/users/hack4impact-uiuc/followers","following_url":"https://api.github.com/users/hack4impact-uiuc/following{/other_user}","gists_url":"https://api.github.com/users/hack4impact-uiuc/gists{/gist_id}","starred_url":"https://api.github.com/users/hack4impact-uiuc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hack4impact-uiuc/subscriptions","organizations_url":"https://api.github.com/users/hack4impact-uiuc/orgs","repos_url":"https://api.github.com/users/hack4impact-uiuc/repos","events_url":"https://api.github.com/users/hack4impact-uiuc/events{/privacy}","received_events_url":"https://api.github.com/users/hack4impact-uiuc/received_events","type":"Organization","site_admin":false},"repo":{"id":151368014,"node_id":"MDEwOlJlcG9zaXRvcnkxNTEzNjgwMTQ=","name":"philareads","full_name":"hack4impact-uiuc/philareads","private":false,"owner":{"login":"hack4impact-uiuc","id":32913348,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyOTEzMzQ4","avatar_url":"https://avatars1.githubusercontent.com/u/32913348?v=4","gravatar_id":"","url":"https://api.github.com/users/hack4impact-uiuc","html_url":"https://github.com/hack4impact-uiuc","followers_url":"https://api.github.com/users/hack4impact-uiuc/followers","following_url":"https://api.github.com/users/hack4impact-uiuc/following{/other_user}","gists_url":"https://api.github.com/users/hack4impact-uiuc/gists{/gist_id}","starred_url":"https://api.github.com/users/hack4impact-uiuc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hack4impact-uiuc/subscriptions","organizations_url":"https://api.github.com/users/hack4impact-uiuc/orgs","repos_url":"https://api.github.com/users/hack4impact-uiuc/repos","events_url":"https://api.github.com/users/hack4impact-uiuc/events{/privacy}","received_events_url":"https://api.github.com/users/hack4impact-uiuc/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/hack4impact-uiuc/philareads","description":"https://phillyreads-yorvrkuamu.now.sh","fork":false,"url":"https://api.github.com/repos/hack4impact-uiuc/philareads","forks_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/forks","keys_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/teams","hooks_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/hooks","issue_events_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/issues/events{/number}","events_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/events","assignees_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/assignees{/user}","branches_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/branches{/branch}","tags_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/tags","blobs_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/git/refs{/sha}","trees_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/statuses/{sha}","languages_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/languages","stargazers_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/stargazers","contributors_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/contributors","subscribers_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/subscribers","subscription_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/subscription","commits_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/commits{/sha}","git_commits_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/git/commits{/sha}","comments_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/comments{/number}","issue_comment_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/issues/comments{/number}","contents_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/contents/{+path}","compare_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/merges","archive_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/downloads","issues_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/issues{/number}","pulls_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/pulls{/number}","milestones_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/milestones{/number}","notifications_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/labels{/name}","releases_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/releases{/id}","deployments_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/deployments","created_at":"2018-10-03T06:04:29Z","updated_at":"2018-12-08T02:25:39Z","pushed_at":"2018-12-08T02:32:35Z","git_url":"git://github.com/hack4impact-uiuc/philareads.git","ssh_url":"git@github.com:hack4impact-uiuc/philareads.git","clone_url":"https://github.com/hack4impact-uiuc/philareads.git","svn_url":"https://github.com/hack4impact-uiuc/philareads","homepage":"","size":7541,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","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":31,"license":null,"forks":0,"open_issues":31,"watchers":1,"default_branch":"master"}},"base":{"label":"hack4impact-uiuc:master","ref":"master","sha":"713303e29ddd2364bd883ff1c069058860b88522","user":{"login":"hack4impact-uiuc","id":32913348,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyOTEzMzQ4","avatar_url":"https://avatars1.githubusercontent.com/u/32913348?v=4","gravatar_id":"","url":"https://api.github.com/users/hack4impact-uiuc","html_url":"https://github.com/hack4impact-uiuc","followers_url":"https://api.github.com/users/hack4impact-uiuc/followers","following_url":"https://api.github.com/users/hack4impact-uiuc/following{/other_user}","gists_url":"https://api.github.com/users/hack4impact-uiuc/gists{/gist_id}","starred_url":"https://api.github.com/users/hack4impact-uiuc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hack4impact-uiuc/subscriptions","organizations_url":"https://api.github.com/users/hack4impact-uiuc/orgs","repos_url":"https://api.github.com/users/hack4impact-uiuc/repos","events_url":"https://api.github.com/users/hack4impact-uiuc/events{/privacy}","received_events_url":"https://api.github.com/users/hack4impact-uiuc/received_events","type":"Organization","site_admin":false},"repo":{"id":151368014,"node_id":"MDEwOlJlcG9zaXRvcnkxNTEzNjgwMTQ=","name":"philareads","full_name":"hack4impact-uiuc/philareads","private":false,"owner":{"login":"hack4impact-uiuc","id":32913348,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyOTEzMzQ4","avatar_url":"https://avatars1.githubusercontent.com/u/32913348?v=4","gravatar_id":"","url":"https://api.github.com/users/hack4impact-uiuc","html_url":"https://github.com/hack4impact-uiuc","followers_url":"https://api.github.com/users/hack4impact-uiuc/followers","following_url":"https://api.github.com/users/hack4impact-uiuc/following{/other_user}","gists_url":"https://api.github.com/users/hack4impact-uiuc/gists{/gist_id}","starred_url":"https://api.github.com/users/hack4impact-uiuc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hack4impact-uiuc/subscriptions","organizations_url":"https://api.github.com/users/hack4impact-uiuc/orgs","repos_url":"https://api.github.com/users/hack4impact-uiuc/repos","events_url":"https://api.github.com/users/hack4impact-uiuc/events{/privacy}","received_events_url":"https://api.github.com/users/hack4impact-uiuc/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/hack4impact-uiuc/philareads","description":"https://phillyreads-yorvrkuamu.now.sh","fork":false,"url":"https://api.github.com/repos/hack4impact-uiuc/philareads","forks_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/forks","keys_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/teams","hooks_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/hooks","issue_events_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/issues/events{/number}","events_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/events","assignees_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/assignees{/user}","branches_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/branches{/branch}","tags_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/tags","blobs_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/git/refs{/sha}","trees_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/statuses/{sha}","languages_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/languages","stargazers_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/stargazers","contributors_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/contributors","subscribers_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/subscribers","subscription_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/subscription","commits_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/commits{/sha}","git_commits_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/git/commits{/sha}","comments_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/comments{/number}","issue_comment_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/issues/comments{/number}","contents_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/contents/{+path}","compare_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/merges","archive_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/downloads","issues_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/issues{/number}","pulls_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/pulls{/number}","milestones_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/milestones{/number}","notifications_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/labels{/name}","releases_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/releases{/id}","deployments_url":"https://api.github.com/repos/hack4impact-uiuc/philareads/deployments","created_at":"2018-10-03T06:04:29Z","updated_at":"2018-12-08T02:25:39Z","pushed_at":"2018-12-08T02:32:35Z","git_url":"git://github.com/hack4impact-uiuc/philareads.git","ssh_url":"git@github.com:hack4impact-uiuc/philareads.git","clone_url":"https://github.com/hack4impact-uiuc/philareads.git","svn_url":"https://github.com/hack4impact-uiuc/philareads","homepage":"","size":7541,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","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":31,"license":null,"forks":0,"open_issues":31,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hack4impact-uiuc/philareads/pulls/186"},"html":{"href":"https://github.com/hack4impact-uiuc/philareads/pull/186"},"issue":{"href":"https://api.github.com/repos/hack4impact-uiuc/philareads/issues/186"},"comments":{"href":"https://api.github.com/repos/hack4impact-uiuc/philareads/issues/186/comments"},"review_comments":{"href":"https://api.github.com/repos/hack4impact-uiuc/philareads/pulls/186/comments"},"review_comment":{"href":"https://api.github.com/repos/hack4impact-uiuc/philareads/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hack4impact-uiuc/philareads/pulls/186/commits"},"statuses":{"href":"https://api.github.com/repos/hack4impact-uiuc/philareads/statuses/c9f8acf7b39a9c971a66dc0adc58f494e917f55a"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"micleo2"}}