{"action":"created","comment":{"url":"https://api.github.com/repos/hmesander/little-shop-redux/pulls/comments/175895261","pull_request_review_id":105502921,"id":175895261,"diff_hunk":"@@ -21,18 +21,55 @@ def self.status_percentage(hash)\n \n   def self.highest_unit_price\n     joins(:invoice_items).order(\"invoice_items.unit_price\").last\n+\n+    # RETURNS INVOICE ASSOCIATED WITH HIGHEST TOTAL UNIT_PRICE\n+    # joins(:invoice_items)\n+    # .select(\"invoices.id, sum(invoice_items.unit_price * invoice_items.quantity) AS total_charges\")\n+    # .group(:id)\n+    # .order(\"total_charges\")\n+    # .last\n+\n+    # RETURNS INVOICE ASSOCIATED WITH HIGHEST TOTAL CHARGES\n+    # joins(:invoice_items)\n+    # .select(\"invoices.id, sum(invoice_items.unit_price * invoice_items.quantity) AS total_charges\")\n+    # .group(:id)\n+    # .order(\"total_charges\")\n+    # .last\n   end\n \n   def self.lowest_unit_price\n     joins(:invoice_items).order(\"invoice_items.unit_price\").first\n+\n+    # RETURNS INVOICE ASSOCIATED WITH LOWEST TOTAL UNIT PRICE\n+    # joins(:invoice_items)\n+    # .select(\"invoices.id, sum(invoice_items.unit_price * invoice_items.quantity) AS total_charges\")","path":"app/models/invoice.rb","position":25,"original_position":25,"commit_id":"1b4efd923043514d37b271cd06f75ca3c09ee4ca","original_commit_id":"1b4efd923043514d37b271cd06f75ca3c09ee4ca","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Line is too long. [101/80]","created_at":"2018-03-20T19:30:38Z","updated_at":"2018-03-20T19:30:38Z","html_url":"https://github.com/hmesander/little-shop-redux/pull/69#discussion_r175895261","pull_request_url":"https://api.github.com/repos/hmesander/little-shop-redux/pulls/69","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/hmesander/little-shop-redux/pulls/comments/175895261"},"html":{"href":"https://github.com/hmesander/little-shop-redux/pull/69#discussion_r175895261"},"pull_request":{"href":"https://api.github.com/repos/hmesander/little-shop-redux/pulls/69"}}},"pull_request":{"url":"https://api.github.com/repos/hmesander/little-shop-redux/pulls/69","id":176298123,"html_url":"https://github.com/hmesander/little-shop-redux/pull/69","diff_url":"https://github.com/hmesander/little-shop-redux/pull/69.diff","patch_url":"https://github.com/hmesander/little-shop-redux/pull/69.patch","issue_url":"https://api.github.com/repos/hmesander/little-shop-redux/issues/69","number":69,"state":"closed","locked":false,"title":"changes to invoice model methods and homepage/bad path styling","user":{"login":"agpiermarini","id":19535775,"avatar_url":"https://avatars1.githubusercontent.com/u/19535775?v=4","gravatar_id":"","url":"https://api.github.com/users/agpiermarini","html_url":"https://github.com/agpiermarini","followers_url":"https://api.github.com/users/agpiermarini/followers","following_url":"https://api.github.com/users/agpiermarini/following{/other_user}","gists_url":"https://api.github.com/users/agpiermarini/gists{/gist_id}","starred_url":"https://api.github.com/users/agpiermarini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agpiermarini/subscriptions","organizations_url":"https://api.github.com/users/agpiermarini/orgs","repos_url":"https://api.github.com/users/agpiermarini/repos","events_url":"https://api.github.com/users/agpiermarini/events{/privacy}","received_events_url":"https://api.github.com/users/agpiermarini/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-20T19:27:25Z","updated_at":"2018-03-20T19:30:38Z","closed_at":"2018-03-20T19:30:34Z","merged_at":"2018-03-20T19:30:34Z","merge_commit_sha":"145a06102530793d46ade16725160f093c5a7917","assignee":{"login":"agpiermarini","id":19535775,"avatar_url":"https://avatars1.githubusercontent.com/u/19535775?v=4","gravatar_id":"","url":"https://api.github.com/users/agpiermarini","html_url":"https://github.com/agpiermarini","followers_url":"https://api.github.com/users/agpiermarini/followers","following_url":"https://api.github.com/users/agpiermarini/following{/other_user}","gists_url":"https://api.github.com/users/agpiermarini/gists{/gist_id}","starred_url":"https://api.github.com/users/agpiermarini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agpiermarini/subscriptions","organizations_url":"https://api.github.com/users/agpiermarini/orgs","repos_url":"https://api.github.com/users/agpiermarini/repos","events_url":"https://api.github.com/users/agpiermarini/events{/privacy}","received_events_url":"https://api.github.com/users/agpiermarini/received_events","type":"User","site_admin":false},"assignees":[{"login":"agpiermarini","id":19535775,"avatar_url":"https://avatars1.githubusercontent.com/u/19535775?v=4","gravatar_id":"","url":"https://api.github.com/users/agpiermarini","html_url":"https://github.com/agpiermarini","followers_url":"https://api.github.com/users/agpiermarini/followers","following_url":"https://api.github.com/users/agpiermarini/following{/other_user}","gists_url":"https://api.github.com/users/agpiermarini/gists{/gist_id}","starred_url":"https://api.github.com/users/agpiermarini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agpiermarini/subscriptions","organizations_url":"https://api.github.com/users/agpiermarini/orgs","repos_url":"https://api.github.com/users/agpiermarini/repos","events_url":"https://api.github.com/users/agpiermarini/events{/privacy}","received_events_url":"https://api.github.com/users/agpiermarini/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/hmesander/little-shop-redux/pulls/69/commits","review_comments_url":"https://api.github.com/repos/hmesander/little-shop-redux/pulls/69/comments","review_comment_url":"https://api.github.com/repos/hmesander/little-shop-redux/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hmesander/little-shop-redux/issues/69/comments","statuses_url":"https://api.github.com/repos/hmesander/little-shop-redux/statuses/1b4efd923043514d37b271cd06f75ca3c09ee4ca","head":{"label":"hmesander:agp_styling","ref":"agp_styling","sha":"1b4efd923043514d37b271cd06f75ca3c09ee4ca","user":{"login":"hmesander","id":33385692,"avatar_url":"https://avatars0.githubusercontent.com/u/33385692?v=4","gravatar_id":"","url":"https://api.github.com/users/hmesander","html_url":"https://github.com/hmesander","followers_url":"https://api.github.com/users/hmesander/followers","following_url":"https://api.github.com/users/hmesander/following{/other_user}","gists_url":"https://api.github.com/users/hmesander/gists{/gist_id}","starred_url":"https://api.github.com/users/hmesander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmesander/subscriptions","organizations_url":"https://api.github.com/users/hmesander/orgs","repos_url":"https://api.github.com/users/hmesander/repos","events_url":"https://api.github.com/users/hmesander/events{/privacy}","received_events_url":"https://api.github.com/users/hmesander/received_events","type":"User","site_admin":false},"repo":{"id":125113923,"name":"little-shop-redux","full_name":"hmesander/little-shop-redux","owner":{"login":"hmesander","id":33385692,"avatar_url":"https://avatars0.githubusercontent.com/u/33385692?v=4","gravatar_id":"","url":"https://api.github.com/users/hmesander","html_url":"https://github.com/hmesander","followers_url":"https://api.github.com/users/hmesander/followers","following_url":"https://api.github.com/users/hmesander/following{/other_user}","gists_url":"https://api.github.com/users/hmesander/gists{/gist_id}","starred_url":"https://api.github.com/users/hmesander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmesander/subscriptions","organizations_url":"https://api.github.com/users/hmesander/orgs","repos_url":"https://api.github.com/users/hmesander/repos","events_url":"https://api.github.com/users/hmesander/events{/privacy}","received_events_url":"https://api.github.com/users/hmesander/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hmesander/little-shop-redux","description":null,"fork":true,"url":"https://api.github.com/repos/hmesander/little-shop-redux","forks_url":"https://api.github.com/repos/hmesander/little-shop-redux/forks","keys_url":"https://api.github.com/repos/hmesander/little-shop-redux/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hmesander/little-shop-redux/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hmesander/little-shop-redux/teams","hooks_url":"https://api.github.com/repos/hmesander/little-shop-redux/hooks","issue_events_url":"https://api.github.com/repos/hmesander/little-shop-redux/issues/events{/number}","events_url":"https://api.github.com/repos/hmesander/little-shop-redux/events","assignees_url":"https://api.github.com/repos/hmesander/little-shop-redux/assignees{/user}","branches_url":"https://api.github.com/repos/hmesander/little-shop-redux/branches{/branch}","tags_url":"https://api.github.com/repos/hmesander/little-shop-redux/tags","blobs_url":"https://api.github.com/repos/hmesander/little-shop-redux/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hmesander/little-shop-redux/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hmesander/little-shop-redux/git/refs{/sha}","trees_url":"https://api.github.com/repos/hmesander/little-shop-redux/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hmesander/little-shop-redux/statuses/{sha}","languages_url":"https://api.github.com/repos/hmesander/little-shop-redux/languages","stargazers_url":"https://api.github.com/repos/hmesander/little-shop-redux/stargazers","contributors_url":"https://api.github.com/repos/hmesander/little-shop-redux/contributors","subscribers_url":"https://api.github.com/repos/hmesander/little-shop-redux/subscribers","subscription_url":"https://api.github.com/repos/hmesander/little-shop-redux/subscription","commits_url":"https://api.github.com/repos/hmesander/little-shop-redux/commits{/sha}","git_commits_url":"https://api.github.com/repos/hmesander/little-shop-redux/git/commits{/sha}","comments_url":"https://api.github.com/repos/hmesander/little-shop-redux/comments{/number}","issue_comment_url":"https://api.github.com/repos/hmesander/little-shop-redux/issues/comments{/number}","contents_url":"https://api.github.com/repos/hmesander/little-shop-redux/contents/{+path}","compare_url":"https://api.github.com/repos/hmesander/little-shop-redux/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hmesander/little-shop-redux/merges","archive_url":"https://api.github.com/repos/hmesander/little-shop-redux/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hmesander/little-shop-redux/downloads","issues_url":"https://api.github.com/repos/hmesander/little-shop-redux/issues{/number}","pulls_url":"https://api.github.com/repos/hmesander/little-shop-redux/pulls{/number}","milestones_url":"https://api.github.com/repos/hmesander/little-shop-redux/milestones{/number}","notifications_url":"https://api.github.com/repos/hmesander/little-shop-redux/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hmesander/little-shop-redux/labels{/name}","releases_url":"https://api.github.com/repos/hmesander/little-shop-redux/releases{/id}","deployments_url":"https://api.github.com/repos/hmesander/little-shop-redux/deployments","created_at":"2018-03-13T20:58:51Z","updated_at":"2018-03-20T19:30:36Z","pushed_at":"2018-03-20T19:30:34Z","git_url":"git://github.com/hmesander/little-shop-redux.git","ssh_url":"git@github.com:hmesander/little-shop-redux.git","clone_url":"https://github.com/hmesander/little-shop-redux.git","svn_url":"https://github.com/hmesander/little-shop-redux","homepage":null,"size":27006,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":11,"license":null,"forks":0,"open_issues":11,"watchers":0,"default_branch":"master"}},"base":{"label":"hmesander:master","ref":"master","sha":"35157a59510378424f4f1f0451df9e916c30f4c5","user":{"login":"hmesander","id":33385692,"avatar_url":"https://avatars0.githubusercontent.com/u/33385692?v=4","gravatar_id":"","url":"https://api.github.com/users/hmesander","html_url":"https://github.com/hmesander","followers_url":"https://api.github.com/users/hmesander/followers","following_url":"https://api.github.com/users/hmesander/following{/other_user}","gists_url":"https://api.github.com/users/hmesander/gists{/gist_id}","starred_url":"https://api.github.com/users/hmesander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmesander/subscriptions","organizations_url":"https://api.github.com/users/hmesander/orgs","repos_url":"https://api.github.com/users/hmesander/repos","events_url":"https://api.github.com/users/hmesander/events{/privacy}","received_events_url":"https://api.github.com/users/hmesander/received_events","type":"User","site_admin":false},"repo":{"id":125113923,"name":"little-shop-redux","full_name":"hmesander/little-shop-redux","owner":{"login":"hmesander","id":33385692,"avatar_url":"https://avatars0.githubusercontent.com/u/33385692?v=4","gravatar_id":"","url":"https://api.github.com/users/hmesander","html_url":"https://github.com/hmesander","followers_url":"https://api.github.com/users/hmesander/followers","following_url":"https://api.github.com/users/hmesander/following{/other_user}","gists_url":"https://api.github.com/users/hmesander/gists{/gist_id}","starred_url":"https://api.github.com/users/hmesander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmesander/subscriptions","organizations_url":"https://api.github.com/users/hmesander/orgs","repos_url":"https://api.github.com/users/hmesander/repos","events_url":"https://api.github.com/users/hmesander/events{/privacy}","received_events_url":"https://api.github.com/users/hmesander/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hmesander/little-shop-redux","description":null,"fork":true,"url":"https://api.github.com/repos/hmesander/little-shop-redux","forks_url":"https://api.github.com/repos/hmesander/little-shop-redux/forks","keys_url":"https://api.github.com/repos/hmesander/little-shop-redux/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hmesander/little-shop-redux/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hmesander/little-shop-redux/teams","hooks_url":"https://api.github.com/repos/hmesander/little-shop-redux/hooks","issue_events_url":"https://api.github.com/repos/hmesander/little-shop-redux/issues/events{/number}","events_url":"https://api.github.com/repos/hmesander/little-shop-redux/events","assignees_url":"https://api.github.com/repos/hmesander/little-shop-redux/assignees{/user}","branches_url":"https://api.github.com/repos/hmesander/little-shop-redux/branches{/branch}","tags_url":"https://api.github.com/repos/hmesander/little-shop-redux/tags","blobs_url":"https://api.github.com/repos/hmesander/little-shop-redux/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hmesander/little-shop-redux/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hmesander/little-shop-redux/git/refs{/sha}","trees_url":"https://api.github.com/repos/hmesander/little-shop-redux/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hmesander/little-shop-redux/statuses/{sha}","languages_url":"https://api.github.com/repos/hmesander/little-shop-redux/languages","stargazers_url":"https://api.github.com/repos/hmesander/little-shop-redux/stargazers","contributors_url":"https://api.github.com/repos/hmesander/little-shop-redux/contributors","subscribers_url":"https://api.github.com/repos/hmesander/little-shop-redux/subscribers","subscription_url":"https://api.github.com/repos/hmesander/little-shop-redux/subscription","commits_url":"https://api.github.com/repos/hmesander/little-shop-redux/commits{/sha}","git_commits_url":"https://api.github.com/repos/hmesander/little-shop-redux/git/commits{/sha}","comments_url":"https://api.github.com/repos/hmesander/little-shop-redux/comments{/number}","issue_comment_url":"https://api.github.com/repos/hmesander/little-shop-redux/issues/comments{/number}","contents_url":"https://api.github.com/repos/hmesander/little-shop-redux/contents/{+path}","compare_url":"https://api.github.com/repos/hmesander/little-shop-redux/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hmesander/little-shop-redux/merges","archive_url":"https://api.github.com/repos/hmesander/little-shop-redux/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hmesander/little-shop-redux/downloads","issues_url":"https://api.github.com/repos/hmesander/little-shop-redux/issues{/number}","pulls_url":"https://api.github.com/repos/hmesander/little-shop-redux/pulls{/number}","milestones_url":"https://api.github.com/repos/hmesander/little-shop-redux/milestones{/number}","notifications_url":"https://api.github.com/repos/hmesander/little-shop-redux/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hmesander/little-shop-redux/labels{/name}","releases_url":"https://api.github.com/repos/hmesander/little-shop-redux/releases{/id}","deployments_url":"https://api.github.com/repos/hmesander/little-shop-redux/deployments","created_at":"2018-03-13T20:58:51Z","updated_at":"2018-03-20T19:30:36Z","pushed_at":"2018-03-20T19:30:34Z","git_url":"git://github.com/hmesander/little-shop-redux.git","ssh_url":"git@github.com:hmesander/little-shop-redux.git","clone_url":"https://github.com/hmesander/little-shop-redux.git","svn_url":"https://github.com/hmesander/little-shop-redux","homepage":null,"size":27006,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":11,"license":null,"forks":0,"open_issues":11,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hmesander/little-shop-redux/pulls/69"},"html":{"href":"https://github.com/hmesander/little-shop-redux/pull/69"},"issue":{"href":"https://api.github.com/repos/hmesander/little-shop-redux/issues/69"},"comments":{"href":"https://api.github.com/repos/hmesander/little-shop-redux/issues/69/comments"},"review_comments":{"href":"https://api.github.com/repos/hmesander/little-shop-redux/pulls/69/comments"},"review_comment":{"href":"https://api.github.com/repos/hmesander/little-shop-redux/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hmesander/little-shop-redux/pulls/69/commits"},"statuses":{"href":"https://api.github.com/repos/hmesander/little-shop-redux/statuses/1b4efd923043514d37b271cd06f75ca3c09ee4ca"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"houndci-bot"}}