{"action":"created","comment":{"url":"https://api.github.com/repos/Ada-C10/MediaRanker/pulls/comments/228696525","pull_request_review_id":169037796,"id":228696525,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyODY5NjUyNQ==","diff_hunk":"@@ -0,0 +1,7 @@\n+class Vote < ApplicationRecord\n+  belongs_to :work\n+  belongs_to :user\n+\n+  validates :user_id, presence: true, uniqueness: { scope: :work_id,\n+    message: \"can only vote for a work once\" }","path":"app/models/vote.rb","position":6,"original_position":6,"commit_id":"4a7108a340cae86c3c77ec503d7d1688601c4443","original_commit_id":"4a7108a340cae86c3c77ec503d7d1688601c4443","user":{"login":"droberts-ada","id":21064499,"node_id":"MDQ6VXNlcjIxMDY0NDk5","avatar_url":"https://avatars1.githubusercontent.com/u/21064499?v=4","gravatar_id":"","url":"https://api.github.com/users/droberts-ada","html_url":"https://github.com/droberts-ada","followers_url":"https://api.github.com/users/droberts-ada/followers","following_url":"https://api.github.com/users/droberts-ada/following{/other_user}","gists_url":"https://api.github.com/users/droberts-ada/gists{/gist_id}","starred_url":"https://api.github.com/users/droberts-ada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/droberts-ada/subscriptions","organizations_url":"https://api.github.com/users/droberts-ada/orgs","repos_url":"https://api.github.com/users/droberts-ada/repos","events_url":"https://api.github.com/users/droberts-ada/events{/privacy}","received_events_url":"https://api.github.com/users/droberts-ada/received_events","type":"User","site_admin":false},"body":"Good work getting this tricky `uniqueness` scope figured out!","created_at":"2018-10-27T01:10:48Z","updated_at":"2018-10-27T01:19:39Z","html_url":"https://github.com/Ada-C10/MediaRanker/pull/30#discussion_r228696525","pull_request_url":"https://api.github.com/repos/Ada-C10/MediaRanker/pulls/30","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/Ada-C10/MediaRanker/pulls/comments/228696525"},"html":{"href":"https://github.com/Ada-C10/MediaRanker/pull/30#discussion_r228696525"},"pull_request":{"href":"https://api.github.com/repos/Ada-C10/MediaRanker/pulls/30"}}},"pull_request":{"url":"https://api.github.com/repos/Ada-C10/MediaRanker/pulls/30","id":222794262,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIyNzk0MjYy","html_url":"https://github.com/Ada-C10/MediaRanker/pull/30","diff_url":"https://github.com/Ada-C10/MediaRanker/pull/30.diff","patch_url":"https://github.com/Ada-C10/MediaRanker/pull/30.patch","issue_url":"https://api.github.com/repos/Ada-C10/MediaRanker/issues/30","number":30,"state":"open","locked":false,"title":"Sigrid Benezra - Edges - MediaRanker","user":{"login":"sdbenezra","id":35092766,"node_id":"MDQ6VXNlcjM1MDkyNzY2","avatar_url":"https://avatars3.githubusercontent.com/u/35092766?v=4","gravatar_id":"","url":"https://api.github.com/users/sdbenezra","html_url":"https://github.com/sdbenezra","followers_url":"https://api.github.com/users/sdbenezra/followers","following_url":"https://api.github.com/users/sdbenezra/following{/other_user}","gists_url":"https://api.github.com/users/sdbenezra/gists{/gist_id}","starred_url":"https://api.github.com/users/sdbenezra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdbenezra/subscriptions","organizations_url":"https://api.github.com/users/sdbenezra/orgs","repos_url":"https://api.github.com/users/sdbenezra/repos","events_url":"https://api.github.com/users/sdbenezra/events{/privacy}","received_events_url":"https://api.github.com/users/sdbenezra/received_events","type":"User","site_admin":false},"body":"# Media Ranker\r\nCongratulations! You're submitting your assignment!\r\n\r\n## Comprehension Questions\r\nQuestion | Answer\r\n---      | ---\r\nDescribe a custom model method you wrote. | I wrote a method on the work model to test sorting works by category.\r\nDescribe how you approached testing that model method. What edge cases did you come up with? | I used the work.yaml file and a fixture file for votes on two of the works. I tested for the most votes and the least, but couldn't think of another edge case.\r\nWhat are `session` and `flash`? What is the difference between them? | Flash will store data for one response cycle, but session will store data until a user closes the session.\r\nDescribe a controller filter you wrote. | I wrote one controller filter that saved the logged in user to an instance variable.\r\nWhat was one thing that you gained more clarity on through this assignment? | Active record associations and how they allow you to access data and methods from one object through another.\r\nWhat is the Heroku URL of your deployed application? | https://siggys-mediaranker.herokuapp.com/\r\nDo you have any recommendations on how we could improve this project for the next cohort? | \r\n","created_at":"2018-10-15T06:27:05Z","updated_at":"2018-10-27T01:19:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"53c4593d12210089f37d3b5608e32f5b7eb4471c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Ada-C10/MediaRanker/pulls/30/commits","review_comments_url":"https://api.github.com/repos/Ada-C10/MediaRanker/pulls/30/comments","review_comment_url":"https://api.github.com/repos/Ada-C10/MediaRanker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Ada-C10/MediaRanker/issues/30/comments","statuses_url":"https://api.github.com/repos/Ada-C10/MediaRanker/statuses/4a7108a340cae86c3c77ec503d7d1688601c4443","head":{"label":"sdbenezra:master","ref":"master","sha":"4a7108a340cae86c3c77ec503d7d1688601c4443","user":{"login":"sdbenezra","id":35092766,"node_id":"MDQ6VXNlcjM1MDkyNzY2","avatar_url":"https://avatars3.githubusercontent.com/u/35092766?v=4","gravatar_id":"","url":"https://api.github.com/users/sdbenezra","html_url":"https://github.com/sdbenezra","followers_url":"https://api.github.com/users/sdbenezra/followers","following_url":"https://api.github.com/users/sdbenezra/following{/other_user}","gists_url":"https://api.github.com/users/sdbenezra/gists{/gist_id}","starred_url":"https://api.github.com/users/sdbenezra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdbenezra/subscriptions","organizations_url":"https://api.github.com/users/sdbenezra/orgs","repos_url":"https://api.github.com/users/sdbenezra/repos","events_url":"https://api.github.com/users/sdbenezra/events{/privacy}","received_events_url":"https://api.github.com/users/sdbenezra/received_events","type":"User","site_admin":false},"repo":{"id":152154219,"node_id":"MDEwOlJlcG9zaXRvcnkxNTIxNTQyMTk=","name":"MediaRanker","full_name":"sdbenezra/MediaRanker","private":false,"owner":{"login":"sdbenezra","id":35092766,"node_id":"MDQ6VXNlcjM1MDkyNzY2","avatar_url":"https://avatars3.githubusercontent.com/u/35092766?v=4","gravatar_id":"","url":"https://api.github.com/users/sdbenezra","html_url":"https://github.com/sdbenezra","followers_url":"https://api.github.com/users/sdbenezra/followers","following_url":"https://api.github.com/users/sdbenezra/following{/other_user}","gists_url":"https://api.github.com/users/sdbenezra/gists{/gist_id}","starred_url":"https://api.github.com/users/sdbenezra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdbenezra/subscriptions","organizations_url":"https://api.github.com/users/sdbenezra/orgs","repos_url":"https://api.github.com/users/sdbenezra/repos","events_url":"https://api.github.com/users/sdbenezra/events{/privacy}","received_events_url":"https://api.github.com/users/sdbenezra/received_events","type":"User","site_admin":false},"html_url":"https://github.com/sdbenezra/MediaRanker","description":null,"fork":true,"url":"https://api.github.com/repos/sdbenezra/MediaRanker","forks_url":"https://api.github.com/repos/sdbenezra/MediaRanker/forks","keys_url":"https://api.github.com/repos/sdbenezra/MediaRanker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sdbenezra/MediaRanker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sdbenezra/MediaRanker/teams","hooks_url":"https://api.github.com/repos/sdbenezra/MediaRanker/hooks","issue_events_url":"https://api.github.com/repos/sdbenezra/MediaRanker/issues/events{/number}","events_url":"https://api.github.com/repos/sdbenezra/MediaRanker/events","assignees_url":"https://api.github.com/repos/sdbenezra/MediaRanker/assignees{/user}","branches_url":"https://api.github.com/repos/sdbenezra/MediaRanker/branches{/branch}","tags_url":"https://api.github.com/repos/sdbenezra/MediaRanker/tags","blobs_url":"https://api.github.com/repos/sdbenezra/MediaRanker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sdbenezra/MediaRanker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sdbenezra/MediaRanker/git/refs{/sha}","trees_url":"https://api.github.com/repos/sdbenezra/MediaRanker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sdbenezra/MediaRanker/statuses/{sha}","languages_url":"https://api.github.com/repos/sdbenezra/MediaRanker/languages","stargazers_url":"https://api.github.com/repos/sdbenezra/MediaRanker/stargazers","contributors_url":"https://api.github.com/repos/sdbenezra/MediaRanker/contributors","subscribers_url":"https://api.github.com/repos/sdbenezra/MediaRanker/subscribers","subscription_url":"https://api.github.com/repos/sdbenezra/MediaRanker/subscription","commits_url":"https://api.github.com/repos/sdbenezra/MediaRanker/commits{/sha}","git_commits_url":"https://api.github.com/repos/sdbenezra/MediaRanker/git/commits{/sha}","comments_url":"https://api.github.com/repos/sdbenezra/MediaRanker/comments{/number}","issue_comment_url":"https://api.github.com/repos/sdbenezra/MediaRanker/issues/comments{/number}","contents_url":"https://api.github.com/repos/sdbenezra/MediaRanker/contents/{+path}","compare_url":"https://api.github.com/repos/sdbenezra/MediaRanker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sdbenezra/MediaRanker/merges","archive_url":"https://api.github.com/repos/sdbenezra/MediaRanker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sdbenezra/MediaRanker/downloads","issues_url":"https://api.github.com/repos/sdbenezra/MediaRanker/issues{/number}","pulls_url":"https://api.github.com/repos/sdbenezra/MediaRanker/pulls{/number}","milestones_url":"https://api.github.com/repos/sdbenezra/MediaRanker/milestones{/number}","notifications_url":"https://api.github.com/repos/sdbenezra/MediaRanker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sdbenezra/MediaRanker/labels{/name}","releases_url":"https://api.github.com/repos/sdbenezra/MediaRanker/releases{/id}","deployments_url":"https://api.github.com/repos/sdbenezra/MediaRanker/deployments","created_at":"2018-10-08T22:25:11Z","updated_at":"2018-10-15T06:18:04Z","pushed_at":"2018-10-15T06:18:03Z","git_url":"git://github.com/sdbenezra/MediaRanker.git","ssh_url":"git@github.com:sdbenezra/MediaRanker.git","clone_url":"https://github.com/sdbenezra/MediaRanker.git","svn_url":"https://github.com/sdbenezra/MediaRanker","homepage":null,"size":114,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Ada-C10:master","ref":"master","sha":"8789cca6c19f09adbc0f536a5a4a302dd4bb5a25","user":{"login":"Ada-C10","id":40303054,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwMzAzMDU0","avatar_url":"https://avatars0.githubusercontent.com/u/40303054?v=4","gravatar_id":"","url":"https://api.github.com/users/Ada-C10","html_url":"https://github.com/Ada-C10","followers_url":"https://api.github.com/users/Ada-C10/followers","following_url":"https://api.github.com/users/Ada-C10/following{/other_user}","gists_url":"https://api.github.com/users/Ada-C10/gists{/gist_id}","starred_url":"https://api.github.com/users/Ada-C10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ada-C10/subscriptions","organizations_url":"https://api.github.com/users/Ada-C10/orgs","repos_url":"https://api.github.com/users/Ada-C10/repos","events_url":"https://api.github.com/users/Ada-C10/events{/privacy}","received_events_url":"https://api.github.com/users/Ada-C10/received_events","type":"Organization","site_admin":false},"repo":{"id":151781635,"node_id":"MDEwOlJlcG9zaXRvcnkxNTE3ODE2MzU=","name":"MediaRanker","full_name":"Ada-C10/MediaRanker","private":false,"owner":{"login":"Ada-C10","id":40303054,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwMzAzMDU0","avatar_url":"https://avatars0.githubusercontent.com/u/40303054?v=4","gravatar_id":"","url":"https://api.github.com/users/Ada-C10","html_url":"https://github.com/Ada-C10","followers_url":"https://api.github.com/users/Ada-C10/followers","following_url":"https://api.github.com/users/Ada-C10/following{/other_user}","gists_url":"https://api.github.com/users/Ada-C10/gists{/gist_id}","starred_url":"https://api.github.com/users/Ada-C10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ada-C10/subscriptions","organizations_url":"https://api.github.com/users/Ada-C10/orgs","repos_url":"https://api.github.com/users/Ada-C10/repos","events_url":"https://api.github.com/users/Ada-C10/events{/privacy}","received_events_url":"https://api.github.com/users/Ada-C10/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Ada-C10/MediaRanker","description":null,"fork":true,"url":"https://api.github.com/repos/Ada-C10/MediaRanker","forks_url":"https://api.github.com/repos/Ada-C10/MediaRanker/forks","keys_url":"https://api.github.com/repos/Ada-C10/MediaRanker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ada-C10/MediaRanker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ada-C10/MediaRanker/teams","hooks_url":"https://api.github.com/repos/Ada-C10/MediaRanker/hooks","issue_events_url":"https://api.github.com/repos/Ada-C10/MediaRanker/issues/events{/number}","events_url":"https://api.github.com/repos/Ada-C10/MediaRanker/events","assignees_url":"https://api.github.com/repos/Ada-C10/MediaRanker/assignees{/user}","branches_url":"https://api.github.com/repos/Ada-C10/MediaRanker/branches{/branch}","tags_url":"https://api.github.com/repos/Ada-C10/MediaRanker/tags","blobs_url":"https://api.github.com/repos/Ada-C10/MediaRanker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ada-C10/MediaRanker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ada-C10/MediaRanker/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ada-C10/MediaRanker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ada-C10/MediaRanker/statuses/{sha}","languages_url":"https://api.github.com/repos/Ada-C10/MediaRanker/languages","stargazers_url":"https://api.github.com/repos/Ada-C10/MediaRanker/stargazers","contributors_url":"https://api.github.com/repos/Ada-C10/MediaRanker/contributors","subscribers_url":"https://api.github.com/repos/Ada-C10/MediaRanker/subscribers","subscription_url":"https://api.github.com/repos/Ada-C10/MediaRanker/subscription","commits_url":"https://api.github.com/repos/Ada-C10/MediaRanker/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ada-C10/MediaRanker/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ada-C10/MediaRanker/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ada-C10/MediaRanker/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ada-C10/MediaRanker/contents/{+path}","compare_url":"https://api.github.com/repos/Ada-C10/MediaRanker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ada-C10/MediaRanker/merges","archive_url":"https://api.github.com/repos/Ada-C10/MediaRanker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ada-C10/MediaRanker/downloads","issues_url":"https://api.github.com/repos/Ada-C10/MediaRanker/issues{/number}","pulls_url":"https://api.github.com/repos/Ada-C10/MediaRanker/pulls{/number}","milestones_url":"https://api.github.com/repos/Ada-C10/MediaRanker/milestones{/number}","notifications_url":"https://api.github.com/repos/Ada-C10/MediaRanker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ada-C10/MediaRanker/labels{/name}","releases_url":"https://api.github.com/repos/Ada-C10/MediaRanker/releases{/id}","deployments_url":"https://api.github.com/repos/Ada-C10/MediaRanker/deployments","created_at":"2018-10-05T21:48:56Z","updated_at":"2018-10-05T21:53:16Z","pushed_at":"2018-10-19T04:12:32Z","git_url":"git://github.com/Ada-C10/MediaRanker.git","ssh_url":"git@github.com:Ada-C10/MediaRanker.git","clone_url":"https://github.com/Ada-C10/MediaRanker.git","svn_url":"https://github.com/Ada-C10/MediaRanker","homepage":null,"size":44,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":48,"mirror_url":null,"archived":false,"open_issues_count":47,"license":null,"forks":48,"open_issues":47,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Ada-C10/MediaRanker/pulls/30"},"html":{"href":"https://github.com/Ada-C10/MediaRanker/pull/30"},"issue":{"href":"https://api.github.com/repos/Ada-C10/MediaRanker/issues/30"},"comments":{"href":"https://api.github.com/repos/Ada-C10/MediaRanker/issues/30/comments"},"review_comments":{"href":"https://api.github.com/repos/Ada-C10/MediaRanker/pulls/30/comments"},"review_comment":{"href":"https://api.github.com/repos/Ada-C10/MediaRanker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Ada-C10/MediaRanker/pulls/30/commits"},"statuses":{"href":"https://api.github.com/repos/Ada-C10/MediaRanker/statuses/4a7108a340cae86c3c77ec503d7d1688601c4443"}},"author_association":"NONE"}}
{"actor":{"display_login":"droberts-ada"}}