{"action":"created","comment":{"url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/pulls/comments/218260089","pull_request_review_id":156158313,"id":218260089,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxODI2MDA4OQ==","diff_hunk":"@@ -453,4 +455,27 @@ def test_it_can_calculate_total_revenue_by_merchant\n \n     assert_equal 97_979.37, sales_analyst.revenue_by_merchant(12334194)\n   end\n+\n+  def test_the_most_sold_item_for_a_merchant\n+    sales_engine = SalesEngine.from_csv({\n+      items: \"./data/items.csv\",\n+      merchants: \"./data/merchants.csv\",\n+      invoices: \"./data/invoices.csv\",\n+      invoice_items: \"./data/invoice_items.csv\",\n+      transactions: \"./data/transactions.csv\",\n+      customers: \"./data/customers.csv\"\n+    })","path":"test/sales_analyst_test.rb","position":29,"original_position":29,"commit_id":"6e3436655e4eba4130fc5f811e558d2e1957b55d","original_commit_id":"6e3436655e4eba4130fc5f811e558d2e1957b55d","user":{"login":"houndci-bot","id":6697940,"node_id":"MDQ6VXNlcjY2OTc5NDA=","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":"Layout/IndentHash: Indent the right brace the same as the first position after the preceding left parenthesis.","created_at":"2018-09-17T23:35:45Z","updated_at":"2018-09-17T23:35:46Z","html_url":"https://github.com/SKG360/BLACK_THURSDAY_MOD1/pull/41#discussion_r218260089","pull_request_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/pulls/41","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/pulls/comments/218260089"},"html":{"href":"https://github.com/SKG360/BLACK_THURSDAY_MOD1/pull/41#discussion_r218260089"},"pull_request":{"href":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/pulls/41"}}},"pull_request":{"url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/pulls/41","id":216144246,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE2MTQ0MjQ2","html_url":"https://github.com/SKG360/BLACK_THURSDAY_MOD1/pull/41","diff_url":"https://github.com/SKG360/BLACK_THURSDAY_MOD1/pull/41.diff","patch_url":"https://github.com/SKG360/BLACK_THURSDAY_MOD1/pull/41.patch","issue_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/issues/41","number":41,"state":"open","locked":false,"title":"Iteration four WIP","user":{"login":"SKG360","id":29897785,"node_id":"MDQ6VXNlcjI5ODk3Nzg1","avatar_url":"https://avatars3.githubusercontent.com/u/29897785?v=4","gravatar_id":"","url":"https://api.github.com/users/SKG360","html_url":"https://github.com/SKG360","followers_url":"https://api.github.com/users/SKG360/followers","following_url":"https://api.github.com/users/SKG360/following{/other_user}","gists_url":"https://api.github.com/users/SKG360/gists{/gist_id}","starred_url":"https://api.github.com/users/SKG360/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SKG360/subscriptions","organizations_url":"https://api.github.com/users/SKG360/orgs","repos_url":"https://api.github.com/users/SKG360/repos","events_url":"https://api.github.com/users/SKG360/events{/privacy}","received_events_url":"https://api.github.com/users/SKG360/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-09-17T23:35:34Z","updated_at":"2018-09-17T23:35:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8f3b3e6d5dc69da195945685cd04d06fb597f265","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/pulls/41/commits","review_comments_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/pulls/41/comments","review_comment_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/issues/41/comments","statuses_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/statuses/6e3436655e4eba4130fc5f811e558d2e1957b55d","head":{"label":"SKG360:it_four_WIP","ref":"it_four_WIP","sha":"6e3436655e4eba4130fc5f811e558d2e1957b55d","user":{"login":"SKG360","id":29897785,"node_id":"MDQ6VXNlcjI5ODk3Nzg1","avatar_url":"https://avatars3.githubusercontent.com/u/29897785?v=4","gravatar_id":"","url":"https://api.github.com/users/SKG360","html_url":"https://github.com/SKG360","followers_url":"https://api.github.com/users/SKG360/followers","following_url":"https://api.github.com/users/SKG360/following{/other_user}","gists_url":"https://api.github.com/users/SKG360/gists{/gist_id}","starred_url":"https://api.github.com/users/SKG360/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SKG360/subscriptions","organizations_url":"https://api.github.com/users/SKG360/orgs","repos_url":"https://api.github.com/users/SKG360/repos","events_url":"https://api.github.com/users/SKG360/events{/privacy}","received_events_url":"https://api.github.com/users/SKG360/received_events","type":"User","site_admin":false},"repo":{"id":147974208,"node_id":"MDEwOlJlcG9zaXRvcnkxNDc5NzQyMDg=","name":"BLACK_THURSDAY_MOD1","full_name":"SKG360/BLACK_THURSDAY_MOD1","private":false,"owner":{"login":"SKG360","id":29897785,"node_id":"MDQ6VXNlcjI5ODk3Nzg1","avatar_url":"https://avatars3.githubusercontent.com/u/29897785?v=4","gravatar_id":"","url":"https://api.github.com/users/SKG360","html_url":"https://github.com/SKG360","followers_url":"https://api.github.com/users/SKG360/followers","following_url":"https://api.github.com/users/SKG360/following{/other_user}","gists_url":"https://api.github.com/users/SKG360/gists{/gist_id}","starred_url":"https://api.github.com/users/SKG360/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SKG360/subscriptions","organizations_url":"https://api.github.com/users/SKG360/orgs","repos_url":"https://api.github.com/users/SKG360/repos","events_url":"https://api.github.com/users/SKG360/events{/privacy}","received_events_url":"https://api.github.com/users/SKG360/received_events","type":"User","site_admin":false},"html_url":"https://github.com/SKG360/BLACK_THURSDAY_MOD1","description":"JPlao & SKG360 BE MOD1","fork":false,"url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1","forks_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/forks","keys_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/teams","hooks_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/hooks","issue_events_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/issues/events{/number}","events_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/events","assignees_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/assignees{/user}","branches_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/branches{/branch}","tags_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/tags","blobs_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/git/refs{/sha}","trees_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/statuses/{sha}","languages_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/languages","stargazers_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/stargazers","contributors_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/contributors","subscribers_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/subscribers","subscription_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/subscription","commits_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/commits{/sha}","git_commits_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/git/commits{/sha}","comments_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/comments{/number}","issue_comment_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/issues/comments{/number}","contents_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/contents/{+path}","compare_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/merges","archive_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/downloads","issues_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/issues{/number}","pulls_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/pulls{/number}","milestones_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/milestones{/number}","notifications_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/labels{/name}","releases_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/releases{/id}","deployments_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/deployments","created_at":"2018-09-08T22:24:15Z","updated_at":"2018-09-17T16:31:50Z","pushed_at":"2018-09-17T23:35:35Z","git_url":"git://github.com/SKG360/BLACK_THURSDAY_MOD1.git","ssh_url":"git@github.com:SKG360/BLACK_THURSDAY_MOD1.git","clone_url":"https://github.com/SKG360/BLACK_THURSDAY_MOD1.git","svn_url":"https://github.com/SKG360/BLACK_THURSDAY_MOD1","homepage":null,"size":821,"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":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"SKG360:master","ref":"master","sha":"3aa8016a6819e3227fbc04898541b7e62805368f","user":{"login":"SKG360","id":29897785,"node_id":"MDQ6VXNlcjI5ODk3Nzg1","avatar_url":"https://avatars3.githubusercontent.com/u/29897785?v=4","gravatar_id":"","url":"https://api.github.com/users/SKG360","html_url":"https://github.com/SKG360","followers_url":"https://api.github.com/users/SKG360/followers","following_url":"https://api.github.com/users/SKG360/following{/other_user}","gists_url":"https://api.github.com/users/SKG360/gists{/gist_id}","starred_url":"https://api.github.com/users/SKG360/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SKG360/subscriptions","organizations_url":"https://api.github.com/users/SKG360/orgs","repos_url":"https://api.github.com/users/SKG360/repos","events_url":"https://api.github.com/users/SKG360/events{/privacy}","received_events_url":"https://api.github.com/users/SKG360/received_events","type":"User","site_admin":false},"repo":{"id":147974208,"node_id":"MDEwOlJlcG9zaXRvcnkxNDc5NzQyMDg=","name":"BLACK_THURSDAY_MOD1","full_name":"SKG360/BLACK_THURSDAY_MOD1","private":false,"owner":{"login":"SKG360","id":29897785,"node_id":"MDQ6VXNlcjI5ODk3Nzg1","avatar_url":"https://avatars3.githubusercontent.com/u/29897785?v=4","gravatar_id":"","url":"https://api.github.com/users/SKG360","html_url":"https://github.com/SKG360","followers_url":"https://api.github.com/users/SKG360/followers","following_url":"https://api.github.com/users/SKG360/following{/other_user}","gists_url":"https://api.github.com/users/SKG360/gists{/gist_id}","starred_url":"https://api.github.com/users/SKG360/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SKG360/subscriptions","organizations_url":"https://api.github.com/users/SKG360/orgs","repos_url":"https://api.github.com/users/SKG360/repos","events_url":"https://api.github.com/users/SKG360/events{/privacy}","received_events_url":"https://api.github.com/users/SKG360/received_events","type":"User","site_admin":false},"html_url":"https://github.com/SKG360/BLACK_THURSDAY_MOD1","description":"JPlao & SKG360 BE MOD1","fork":false,"url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1","forks_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/forks","keys_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/teams","hooks_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/hooks","issue_events_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/issues/events{/number}","events_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/events","assignees_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/assignees{/user}","branches_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/branches{/branch}","tags_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/tags","blobs_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/git/refs{/sha}","trees_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/statuses/{sha}","languages_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/languages","stargazers_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/stargazers","contributors_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/contributors","subscribers_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/subscribers","subscription_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/subscription","commits_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/commits{/sha}","git_commits_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/git/commits{/sha}","comments_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/comments{/number}","issue_comment_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/issues/comments{/number}","contents_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/contents/{+path}","compare_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/merges","archive_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/downloads","issues_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/issues{/number}","pulls_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/pulls{/number}","milestones_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/milestones{/number}","notifications_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/labels{/name}","releases_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/releases{/id}","deployments_url":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/deployments","created_at":"2018-09-08T22:24:15Z","updated_at":"2018-09-17T16:31:50Z","pushed_at":"2018-09-17T23:35:35Z","git_url":"git://github.com/SKG360/BLACK_THURSDAY_MOD1.git","ssh_url":"git@github.com:SKG360/BLACK_THURSDAY_MOD1.git","clone_url":"https://github.com/SKG360/BLACK_THURSDAY_MOD1.git","svn_url":"https://github.com/SKG360/BLACK_THURSDAY_MOD1","homepage":null,"size":821,"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":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/pulls/41"},"html":{"href":"https://github.com/SKG360/BLACK_THURSDAY_MOD1/pull/41"},"issue":{"href":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/issues/41"},"comments":{"href":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/issues/41/comments"},"review_comments":{"href":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/pulls/41/comments"},"review_comment":{"href":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/pulls/41/commits"},"statuses":{"href":"https://api.github.com/repos/SKG360/BLACK_THURSDAY_MOD1/statuses/6e3436655e4eba4130fc5f811e558d2e1957b55d"}},"author_association":"OWNER"}}
{"actor":{"display_login":"houndci-bot"}}