{"action":"opened","number":3,"pull_request":{"url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/pulls/3","id":173771406,"html_url":"https://github.com/CoreyAR/swipe-for-rights-api/pull/3","diff_url":"https://github.com/CoreyAR/swipe-for-rights-api/pull/3.diff","patch_url":"https://github.com/CoreyAR/swipe-for-rights-api/pull/3.patch","issue_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/issues/3","number":3,"state":"open","locked":false,"title":"Issue 2: User votes models and backend","user":{"login":"mshenfield","id":4812055,"avatar_url":"https://avatars0.githubusercontent.com/u/4812055?v=4","gravatar_id":"","url":"https://api.github.com/users/mshenfield","html_url":"https://github.com/mshenfield","followers_url":"https://api.github.com/users/mshenfield/followers","following_url":"https://api.github.com/users/mshenfield/following{/other_user}","gists_url":"https://api.github.com/users/mshenfield/gists{/gist_id}","starred_url":"https://api.github.com/users/mshenfield/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mshenfield/subscriptions","organizations_url":"https://api.github.com/users/mshenfield/orgs","repos_url":"https://api.github.com/users/mshenfield/repos","events_url":"https://api.github.com/users/mshenfield/events{/privacy}","received_events_url":"https://api.github.com/users/mshenfield/received_events","type":"User","site_admin":false},"body":"This adds a UserVote model and API endpoint.\r\n\r\nTo accomplish this required some extra scaffolding:\r\n\r\n* Factories to generate models\r\n* Making IsAuthRequired the default permission\r\n* Addressing https://github.com/audiolion/apistar-jwt/issues/8 - see annotations.py and authentication.py\r\n* Passing JWT tokens to requests - see auth_utils.py\r\n\r\nI chose to keep UserVote in a separate collection istead of embedding in the user document or a subset of a Bill document. Can be convinced otherwise.","created_at":"2018-03-08T15:46:00Z","updated_at":"2018-03-08T15:46:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/pulls/3/commits","review_comments_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/pulls/3/comments","review_comment_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/issues/3/comments","statuses_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/statuses/4af6df929c19f65a0d62d3b971e9a319b8534aff","head":{"label":"CoreyAR:issue-2-user-votes","ref":"issue-2-user-votes","sha":"4af6df929c19f65a0d62d3b971e9a319b8534aff","user":{"login":"CoreyAR","id":7258308,"avatar_url":"https://avatars3.githubusercontent.com/u/7258308?v=4","gravatar_id":"","url":"https://api.github.com/users/CoreyAR","html_url":"https://github.com/CoreyAR","followers_url":"https://api.github.com/users/CoreyAR/followers","following_url":"https://api.github.com/users/CoreyAR/following{/other_user}","gists_url":"https://api.github.com/users/CoreyAR/gists{/gist_id}","starred_url":"https://api.github.com/users/CoreyAR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CoreyAR/subscriptions","organizations_url":"https://api.github.com/users/CoreyAR/orgs","repos_url":"https://api.github.com/users/CoreyAR/repos","events_url":"https://api.github.com/users/CoreyAR/events{/privacy}","received_events_url":"https://api.github.com/users/CoreyAR/received_events","type":"User","site_admin":false},"repo":{"id":122858678,"name":"swipe-for-rights-api","full_name":"CoreyAR/swipe-for-rights-api","owner":{"login":"CoreyAR","id":7258308,"avatar_url":"https://avatars3.githubusercontent.com/u/7258308?v=4","gravatar_id":"","url":"https://api.github.com/users/CoreyAR","html_url":"https://github.com/CoreyAR","followers_url":"https://api.github.com/users/CoreyAR/followers","following_url":"https://api.github.com/users/CoreyAR/following{/other_user}","gists_url":"https://api.github.com/users/CoreyAR/gists{/gist_id}","starred_url":"https://api.github.com/users/CoreyAR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CoreyAR/subscriptions","organizations_url":"https://api.github.com/users/CoreyAR/orgs","repos_url":"https://api.github.com/users/CoreyAR/repos","events_url":"https://api.github.com/users/CoreyAR/events{/privacy}","received_events_url":"https://api.github.com/users/CoreyAR/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/CoreyAR/swipe-for-rights-api","description":"A platform to express your opinion on congressional legislation. This is the backend to the Swipe For Rights Mobile App.","fork":false,"url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api","forks_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/forks","keys_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/teams","hooks_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/hooks","issue_events_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/issues/events{/number}","events_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/events","assignees_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/assignees{/user}","branches_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/branches{/branch}","tags_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/tags","blobs_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/statuses/{sha}","languages_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/languages","stargazers_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/stargazers","contributors_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/contributors","subscribers_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/subscribers","subscription_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/subscription","commits_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/contents/{+path}","compare_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/merges","archive_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/downloads","issues_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/issues{/number}","pulls_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/pulls{/number}","milestones_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/milestones{/number}","notifications_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/labels{/name}","releases_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/releases{/id}","deployments_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/deployments","created_at":"2018-02-25T17:27:36Z","updated_at":"2018-03-05T05:11:34Z","pushed_at":"2018-03-08T15:45:35Z","git_url":"git://github.com/CoreyAR/swipe-for-rights-api.git","ssh_url":"git@github.com:CoreyAR/swipe-for-rights-api.git","clone_url":"https://github.com/CoreyAR/swipe-for-rights-api.git","svn_url":"https://github.com/CoreyAR/swipe-for-rights-api","homepage":"","size":18,"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,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"CoreyAR:master","ref":"master","sha":"e4b83fce6f549b8363e2e2cf22daab0a1be64c75","user":{"login":"CoreyAR","id":7258308,"avatar_url":"https://avatars3.githubusercontent.com/u/7258308?v=4","gravatar_id":"","url":"https://api.github.com/users/CoreyAR","html_url":"https://github.com/CoreyAR","followers_url":"https://api.github.com/users/CoreyAR/followers","following_url":"https://api.github.com/users/CoreyAR/following{/other_user}","gists_url":"https://api.github.com/users/CoreyAR/gists{/gist_id}","starred_url":"https://api.github.com/users/CoreyAR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CoreyAR/subscriptions","organizations_url":"https://api.github.com/users/CoreyAR/orgs","repos_url":"https://api.github.com/users/CoreyAR/repos","events_url":"https://api.github.com/users/CoreyAR/events{/privacy}","received_events_url":"https://api.github.com/users/CoreyAR/received_events","type":"User","site_admin":false},"repo":{"id":122858678,"name":"swipe-for-rights-api","full_name":"CoreyAR/swipe-for-rights-api","owner":{"login":"CoreyAR","id":7258308,"avatar_url":"https://avatars3.githubusercontent.com/u/7258308?v=4","gravatar_id":"","url":"https://api.github.com/users/CoreyAR","html_url":"https://github.com/CoreyAR","followers_url":"https://api.github.com/users/CoreyAR/followers","following_url":"https://api.github.com/users/CoreyAR/following{/other_user}","gists_url":"https://api.github.com/users/CoreyAR/gists{/gist_id}","starred_url":"https://api.github.com/users/CoreyAR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CoreyAR/subscriptions","organizations_url":"https://api.github.com/users/CoreyAR/orgs","repos_url":"https://api.github.com/users/CoreyAR/repos","events_url":"https://api.github.com/users/CoreyAR/events{/privacy}","received_events_url":"https://api.github.com/users/CoreyAR/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/CoreyAR/swipe-for-rights-api","description":"A platform to express your opinion on congressional legislation. This is the backend to the Swipe For Rights Mobile App.","fork":false,"url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api","forks_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/forks","keys_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/teams","hooks_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/hooks","issue_events_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/issues/events{/number}","events_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/events","assignees_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/assignees{/user}","branches_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/branches{/branch}","tags_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/tags","blobs_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/statuses/{sha}","languages_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/languages","stargazers_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/stargazers","contributors_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/contributors","subscribers_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/subscribers","subscription_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/subscription","commits_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/contents/{+path}","compare_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/merges","archive_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/downloads","issues_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/issues{/number}","pulls_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/pulls{/number}","milestones_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/milestones{/number}","notifications_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/labels{/name}","releases_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/releases{/id}","deployments_url":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/deployments","created_at":"2018-02-25T17:27:36Z","updated_at":"2018-03-05T05:11:34Z","pushed_at":"2018-03-08T15:45:35Z","git_url":"git://github.com/CoreyAR/swipe-for-rights-api.git","ssh_url":"git@github.com:CoreyAR/swipe-for-rights-api.git","clone_url":"https://github.com/CoreyAR/swipe-for-rights-api.git","svn_url":"https://github.com/CoreyAR/swipe-for-rights-api","homepage":"","size":18,"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,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/pulls/3"},"html":{"href":"https://github.com/CoreyAR/swipe-for-rights-api/pull/3"},"issue":{"href":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/issues/3"},"comments":{"href":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/CoreyAR/swipe-for-rights-api/statuses/4af6df929c19f65a0d62d3b971e9a319b8534aff"}},"author_association":"COLLABORATOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":295,"deletions":282,"changed_files":23}}
{"actor":{"display_login":"mshenfield"}}