{"action":"created","comment":{"url":"https://api.github.com/repos/KaylaEcker/betsy/pulls/comments/146062874","pull_request_review_id":70961441,"id":146062874,"diff_hunk":"@@ -1,8 +1,29 @@\n class ReviewsController < ApplicationController\n   def show\n   end\n+  \n+  def new\n+    @review = Review.new(product_id: params[:product_id])\n+\n+  end\n \n   def create\n+    @review = Review.new(review_params)\n+\n+    if session[:merchant_id] == nil","path":"app/controllers/reviews_controller.rb","position":13,"original_position":13,"commit_id":"1e27bc75a0c01e733859a9a389b47414adc12fb5","original_commit_id":"1e27bc75a0c01e733859a9a389b47414adc12fb5","user":{"login":"skwiens","id":22713806,"avatar_url":"https://avatars0.githubusercontent.com/u/22713806?v=4","gravatar_id":"","url":"https://api.github.com/users/skwiens","html_url":"https://github.com/skwiens","followers_url":"https://api.github.com/users/skwiens/followers","following_url":"https://api.github.com/users/skwiens/following{/other_user}","gists_url":"https://api.github.com/users/skwiens/gists{/gist_id}","starred_url":"https://api.github.com/users/skwiens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skwiens/subscriptions","organizations_url":"https://api.github.com/users/skwiens/orgs","repos_url":"https://api.github.com/users/skwiens/repos","events_url":"https://api.github.com/users/skwiens/events{/privacy}","received_events_url":"https://api.github.com/users/skwiens/received_events","type":"User","site_admin":false},"body":"Merchants should be able to review products that don't belong to them","created_at":"2017-10-20T20:45:05Z","updated_at":"2017-10-20T20:45:05Z","html_url":"https://github.com/KaylaEcker/betsy/pull/16#discussion_r146062874","pull_request_url":"https://api.github.com/repos/KaylaEcker/betsy/pulls/16","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/KaylaEcker/betsy/pulls/comments/146062874"},"html":{"href":"https://github.com/KaylaEcker/betsy/pull/16#discussion_r146062874"},"pull_request":{"href":"https://api.github.com/repos/KaylaEcker/betsy/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/KaylaEcker/betsy/pulls/16","id":147681410,"html_url":"https://github.com/KaylaEcker/betsy/pull/16","diff_url":"https://github.com/KaylaEcker/betsy/pull/16.diff","patch_url":"https://github.com/KaylaEcker/betsy/pull/16.patch","issue_url":"https://api.github.com/repos/KaylaEcker/betsy/issues/16","number":16,"state":"open","locked":false,"title":"User review","user":{"login":"Retropiaf","id":24403666,"avatar_url":"https://avatars3.githubusercontent.com/u/24403666?v=4","gravatar_id":"","url":"https://api.github.com/users/Retropiaf","html_url":"https://github.com/Retropiaf","followers_url":"https://api.github.com/users/Retropiaf/followers","following_url":"https://api.github.com/users/Retropiaf/following{/other_user}","gists_url":"https://api.github.com/users/Retropiaf/gists{/gist_id}","starred_url":"https://api.github.com/users/Retropiaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Retropiaf/subscriptions","organizations_url":"https://api.github.com/users/Retropiaf/orgs","repos_url":"https://api.github.com/users/Retropiaf/repos","events_url":"https://api.github.com/users/Retropiaf/events{/privacy}","received_events_url":"https://api.github.com/users/Retropiaf/received_events","type":"User","site_admin":false},"body":"- Ran a migration to add a review_text column to the review table\r\n- Added a button_to on the product show page that sends to the review#new\r\n- Completed the review new method and create methods in reviews_controller\r\n- Added a form the new review view\r\n- Added average rating on product pages and handled cases where there are no ratings\r\n- Show all existing reviews on the product page and handle cases where there are no review to show\r\n- Added validations for the review title in and text in the review model\r\n- Controller and Model tests\r\n- Show product's name above the new review form\r\n- Test for that logged in user can't leave a review","created_at":"2017-10-19T22:31:59Z","updated_at":"2017-10-20T20:45:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dddc5dba079cdbaa4c40099736c87ccc9355d958","assignee":{"login":"Retropiaf","id":24403666,"avatar_url":"https://avatars3.githubusercontent.com/u/24403666?v=4","gravatar_id":"","url":"https://api.github.com/users/Retropiaf","html_url":"https://github.com/Retropiaf","followers_url":"https://api.github.com/users/Retropiaf/followers","following_url":"https://api.github.com/users/Retropiaf/following{/other_user}","gists_url":"https://api.github.com/users/Retropiaf/gists{/gist_id}","starred_url":"https://api.github.com/users/Retropiaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Retropiaf/subscriptions","organizations_url":"https://api.github.com/users/Retropiaf/orgs","repos_url":"https://api.github.com/users/Retropiaf/repos","events_url":"https://api.github.com/users/Retropiaf/events{/privacy}","received_events_url":"https://api.github.com/users/Retropiaf/received_events","type":"User","site_admin":false},"assignees":[{"login":"Retropiaf","id":24403666,"avatar_url":"https://avatars3.githubusercontent.com/u/24403666?v=4","gravatar_id":"","url":"https://api.github.com/users/Retropiaf","html_url":"https://github.com/Retropiaf","followers_url":"https://api.github.com/users/Retropiaf/followers","following_url":"https://api.github.com/users/Retropiaf/following{/other_user}","gists_url":"https://api.github.com/users/Retropiaf/gists{/gist_id}","starred_url":"https://api.github.com/users/Retropiaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Retropiaf/subscriptions","organizations_url":"https://api.github.com/users/Retropiaf/orgs","repos_url":"https://api.github.com/users/Retropiaf/repos","events_url":"https://api.github.com/users/Retropiaf/events{/privacy}","received_events_url":"https://api.github.com/users/Retropiaf/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"KaylaEcker","id":15035132,"avatar_url":"https://avatars2.githubusercontent.com/u/15035132?v=4","gravatar_id":"","url":"https://api.github.com/users/KaylaEcker","html_url":"https://github.com/KaylaEcker","followers_url":"https://api.github.com/users/KaylaEcker/followers","following_url":"https://api.github.com/users/KaylaEcker/following{/other_user}","gists_url":"https://api.github.com/users/KaylaEcker/gists{/gist_id}","starred_url":"https://api.github.com/users/KaylaEcker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KaylaEcker/subscriptions","organizations_url":"https://api.github.com/users/KaylaEcker/orgs","repos_url":"https://api.github.com/users/KaylaEcker/repos","events_url":"https://api.github.com/users/KaylaEcker/events{/privacy}","received_events_url":"https://api.github.com/users/KaylaEcker/received_events","type":"User","site_admin":false},{"login":"vsawchuk","id":25917903,"avatar_url":"https://avatars2.githubusercontent.com/u/25917903?v=4","gravatar_id":"","url":"https://api.github.com/users/vsawchuk","html_url":"https://github.com/vsawchuk","followers_url":"https://api.github.com/users/vsawchuk/followers","following_url":"https://api.github.com/users/vsawchuk/following{/other_user}","gists_url":"https://api.github.com/users/vsawchuk/gists{/gist_id}","starred_url":"https://api.github.com/users/vsawchuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vsawchuk/subscriptions","organizations_url":"https://api.github.com/users/vsawchuk/orgs","repos_url":"https://api.github.com/users/vsawchuk/repos","events_url":"https://api.github.com/users/vsawchuk/events{/privacy}","received_events_url":"https://api.github.com/users/vsawchuk/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/KaylaEcker/betsy/pulls/16/commits","review_comments_url":"https://api.github.com/repos/KaylaEcker/betsy/pulls/16/comments","review_comment_url":"https://api.github.com/repos/KaylaEcker/betsy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/KaylaEcker/betsy/issues/16/comments","statuses_url":"https://api.github.com/repos/KaylaEcker/betsy/statuses/1e27bc75a0c01e733859a9a389b47414adc12fb5","head":{"label":"KaylaEcker:user-review","ref":"user-review","sha":"1e27bc75a0c01e733859a9a389b47414adc12fb5","user":{"login":"KaylaEcker","id":15035132,"avatar_url":"https://avatars2.githubusercontent.com/u/15035132?v=4","gravatar_id":"","url":"https://api.github.com/users/KaylaEcker","html_url":"https://github.com/KaylaEcker","followers_url":"https://api.github.com/users/KaylaEcker/followers","following_url":"https://api.github.com/users/KaylaEcker/following{/other_user}","gists_url":"https://api.github.com/users/KaylaEcker/gists{/gist_id}","starred_url":"https://api.github.com/users/KaylaEcker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KaylaEcker/subscriptions","organizations_url":"https://api.github.com/users/KaylaEcker/orgs","repos_url":"https://api.github.com/users/KaylaEcker/repos","events_url":"https://api.github.com/users/KaylaEcker/events{/privacy}","received_events_url":"https://api.github.com/users/KaylaEcker/received_events","type":"User","site_admin":false},"repo":{"id":107294866,"name":"betsy","full_name":"KaylaEcker/betsy","owner":{"login":"KaylaEcker","id":15035132,"avatar_url":"https://avatars2.githubusercontent.com/u/15035132?v=4","gravatar_id":"","url":"https://api.github.com/users/KaylaEcker","html_url":"https://github.com/KaylaEcker","followers_url":"https://api.github.com/users/KaylaEcker/followers","following_url":"https://api.github.com/users/KaylaEcker/following{/other_user}","gists_url":"https://api.github.com/users/KaylaEcker/gists{/gist_id}","starred_url":"https://api.github.com/users/KaylaEcker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KaylaEcker/subscriptions","organizations_url":"https://api.github.com/users/KaylaEcker/orgs","repos_url":"https://api.github.com/users/KaylaEcker/repos","events_url":"https://api.github.com/users/KaylaEcker/events{/privacy}","received_events_url":"https://api.github.com/users/KaylaEcker/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/KaylaEcker/betsy","description":null,"fork":true,"url":"https://api.github.com/repos/KaylaEcker/betsy","forks_url":"https://api.github.com/repos/KaylaEcker/betsy/forks","keys_url":"https://api.github.com/repos/KaylaEcker/betsy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KaylaEcker/betsy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KaylaEcker/betsy/teams","hooks_url":"https://api.github.com/repos/KaylaEcker/betsy/hooks","issue_events_url":"https://api.github.com/repos/KaylaEcker/betsy/issues/events{/number}","events_url":"https://api.github.com/repos/KaylaEcker/betsy/events","assignees_url":"https://api.github.com/repos/KaylaEcker/betsy/assignees{/user}","branches_url":"https://api.github.com/repos/KaylaEcker/betsy/branches{/branch}","tags_url":"https://api.github.com/repos/KaylaEcker/betsy/tags","blobs_url":"https://api.github.com/repos/KaylaEcker/betsy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KaylaEcker/betsy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KaylaEcker/betsy/git/refs{/sha}","trees_url":"https://api.github.com/repos/KaylaEcker/betsy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KaylaEcker/betsy/statuses/{sha}","languages_url":"https://api.github.com/repos/KaylaEcker/betsy/languages","stargazers_url":"https://api.github.com/repos/KaylaEcker/betsy/stargazers","contributors_url":"https://api.github.com/repos/KaylaEcker/betsy/contributors","subscribers_url":"https://api.github.com/repos/KaylaEcker/betsy/subscribers","subscription_url":"https://api.github.com/repos/KaylaEcker/betsy/subscription","commits_url":"https://api.github.com/repos/KaylaEcker/betsy/commits{/sha}","git_commits_url":"https://api.github.com/repos/KaylaEcker/betsy/git/commits{/sha}","comments_url":"https://api.github.com/repos/KaylaEcker/betsy/comments{/number}","issue_comment_url":"https://api.github.com/repos/KaylaEcker/betsy/issues/comments{/number}","contents_url":"https://api.github.com/repos/KaylaEcker/betsy/contents/{+path}","compare_url":"https://api.github.com/repos/KaylaEcker/betsy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KaylaEcker/betsy/merges","archive_url":"https://api.github.com/repos/KaylaEcker/betsy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KaylaEcker/betsy/downloads","issues_url":"https://api.github.com/repos/KaylaEcker/betsy/issues{/number}","pulls_url":"https://api.github.com/repos/KaylaEcker/betsy/pulls{/number}","milestones_url":"https://api.github.com/repos/KaylaEcker/betsy/milestones{/number}","notifications_url":"https://api.github.com/repos/KaylaEcker/betsy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KaylaEcker/betsy/labels{/name}","releases_url":"https://api.github.com/repos/KaylaEcker/betsy/releases{/id}","deployments_url":"https://api.github.com/repos/KaylaEcker/betsy/deployments","created_at":"2017-10-17T16:22:08Z","updated_at":"2017-10-17T16:56:18Z","pushed_at":"2017-10-20T20:42:59Z","git_url":"git://github.com/KaylaEcker/betsy.git","ssh_url":"git@github.com:KaylaEcker/betsy.git","clone_url":"https://github.com/KaylaEcker/betsy.git","svn_url":"https://github.com/KaylaEcker/betsy","homepage":null,"size":171,"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":1,"mirror_url":null,"archived":false,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"KaylaEcker:master","ref":"master","sha":"ac281a6b2122c4c7d3d47d0a16430199e7a76ae0","user":{"login":"KaylaEcker","id":15035132,"avatar_url":"https://avatars2.githubusercontent.com/u/15035132?v=4","gravatar_id":"","url":"https://api.github.com/users/KaylaEcker","html_url":"https://github.com/KaylaEcker","followers_url":"https://api.github.com/users/KaylaEcker/followers","following_url":"https://api.github.com/users/KaylaEcker/following{/other_user}","gists_url":"https://api.github.com/users/KaylaEcker/gists{/gist_id}","starred_url":"https://api.github.com/users/KaylaEcker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KaylaEcker/subscriptions","organizations_url":"https://api.github.com/users/KaylaEcker/orgs","repos_url":"https://api.github.com/users/KaylaEcker/repos","events_url":"https://api.github.com/users/KaylaEcker/events{/privacy}","received_events_url":"https://api.github.com/users/KaylaEcker/received_events","type":"User","site_admin":false},"repo":{"id":107294866,"name":"betsy","full_name":"KaylaEcker/betsy","owner":{"login":"KaylaEcker","id":15035132,"avatar_url":"https://avatars2.githubusercontent.com/u/15035132?v=4","gravatar_id":"","url":"https://api.github.com/users/KaylaEcker","html_url":"https://github.com/KaylaEcker","followers_url":"https://api.github.com/users/KaylaEcker/followers","following_url":"https://api.github.com/users/KaylaEcker/following{/other_user}","gists_url":"https://api.github.com/users/KaylaEcker/gists{/gist_id}","starred_url":"https://api.github.com/users/KaylaEcker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KaylaEcker/subscriptions","organizations_url":"https://api.github.com/users/KaylaEcker/orgs","repos_url":"https://api.github.com/users/KaylaEcker/repos","events_url":"https://api.github.com/users/KaylaEcker/events{/privacy}","received_events_url":"https://api.github.com/users/KaylaEcker/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/KaylaEcker/betsy","description":null,"fork":true,"url":"https://api.github.com/repos/KaylaEcker/betsy","forks_url":"https://api.github.com/repos/KaylaEcker/betsy/forks","keys_url":"https://api.github.com/repos/KaylaEcker/betsy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KaylaEcker/betsy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KaylaEcker/betsy/teams","hooks_url":"https://api.github.com/repos/KaylaEcker/betsy/hooks","issue_events_url":"https://api.github.com/repos/KaylaEcker/betsy/issues/events{/number}","events_url":"https://api.github.com/repos/KaylaEcker/betsy/events","assignees_url":"https://api.github.com/repos/KaylaEcker/betsy/assignees{/user}","branches_url":"https://api.github.com/repos/KaylaEcker/betsy/branches{/branch}","tags_url":"https://api.github.com/repos/KaylaEcker/betsy/tags","blobs_url":"https://api.github.com/repos/KaylaEcker/betsy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KaylaEcker/betsy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KaylaEcker/betsy/git/refs{/sha}","trees_url":"https://api.github.com/repos/KaylaEcker/betsy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KaylaEcker/betsy/statuses/{sha}","languages_url":"https://api.github.com/repos/KaylaEcker/betsy/languages","stargazers_url":"https://api.github.com/repos/KaylaEcker/betsy/stargazers","contributors_url":"https://api.github.com/repos/KaylaEcker/betsy/contributors","subscribers_url":"https://api.github.com/repos/KaylaEcker/betsy/subscribers","subscription_url":"https://api.github.com/repos/KaylaEcker/betsy/subscription","commits_url":"https://api.github.com/repos/KaylaEcker/betsy/commits{/sha}","git_commits_url":"https://api.github.com/repos/KaylaEcker/betsy/git/commits{/sha}","comments_url":"https://api.github.com/repos/KaylaEcker/betsy/comments{/number}","issue_comment_url":"https://api.github.com/repos/KaylaEcker/betsy/issues/comments{/number}","contents_url":"https://api.github.com/repos/KaylaEcker/betsy/contents/{+path}","compare_url":"https://api.github.com/repos/KaylaEcker/betsy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KaylaEcker/betsy/merges","archive_url":"https://api.github.com/repos/KaylaEcker/betsy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KaylaEcker/betsy/downloads","issues_url":"https://api.github.com/repos/KaylaEcker/betsy/issues{/number}","pulls_url":"https://api.github.com/repos/KaylaEcker/betsy/pulls{/number}","milestones_url":"https://api.github.com/repos/KaylaEcker/betsy/milestones{/number}","notifications_url":"https://api.github.com/repos/KaylaEcker/betsy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KaylaEcker/betsy/labels{/name}","releases_url":"https://api.github.com/repos/KaylaEcker/betsy/releases{/id}","deployments_url":"https://api.github.com/repos/KaylaEcker/betsy/deployments","created_at":"2017-10-17T16:22:08Z","updated_at":"2017-10-17T16:56:18Z","pushed_at":"2017-10-20T20:42:59Z","git_url":"git://github.com/KaylaEcker/betsy.git","ssh_url":"git@github.com:KaylaEcker/betsy.git","clone_url":"https://github.com/KaylaEcker/betsy.git","svn_url":"https://github.com/KaylaEcker/betsy","homepage":null,"size":171,"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":1,"mirror_url":null,"archived":false,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/KaylaEcker/betsy/pulls/16"},"html":{"href":"https://github.com/KaylaEcker/betsy/pull/16"},"issue":{"href":"https://api.github.com/repos/KaylaEcker/betsy/issues/16"},"comments":{"href":"https://api.github.com/repos/KaylaEcker/betsy/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/KaylaEcker/betsy/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/KaylaEcker/betsy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/KaylaEcker/betsy/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/KaylaEcker/betsy/statuses/1e27bc75a0c01e733859a9a389b47414adc12fb5"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"skwiens"}}