{"action":"created","comment":{"url":"https://api.github.com/repos/MarkUsProject/Markus/pulls/comments/200218762","pull_request_review_id":134490681,"id":200218762,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMDIxODc2Mg==","diff_hunk":"@@ -648,6 +648,26 @@ def delete_grace_period_deduction\n     grace_deduction.destroy\n   end\n \n+  def get_test_runs\n+    puts 'Did it get here'\n+    # active record query(not completed yet)\n+    test_script_results = TestScriptResult.joins(:test_run).where(test_runs: {submission_id: params[:submission_id]})\n+                            .select(:test_script_id, :id, :test_run_id)\n+    respond_to do |format|\n+      format.html\n+      format.json {\n+        render json: TestScriptResult.joins('\n+        INNER JOIN test_results ON test_results.test_script_result_id = test_script_results.id\n+        INNER JOIN test_scripts ON test_script_results.test_script_id = test_scripts.id\n+        INNER JOIN test_runs ON test_script_results.test_run_id = test_runs.id')\n+                       .select('test_run_id, test_script_results.marks_total, test_script_results.marks_earned,\n+                         test_script_results.updated_at, test_results.completion_status, test_results.actual_output,\n+                         test_results.name, test_scripts.file_name, test_runs.submission_id, test_runs.grouping_id')\n+                       .where('submission_id = ?', params[:submission_id])","path":"app/controllers/results_controller.rb","position":19,"original_position":19,"commit_id":"4ac34d89b45d260b87ff87420ed574315e7b1509","original_commit_id":"4ac34d89b45d260b87ff87420ed574315e7b1509","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/MultilineMethodCallIndentation: Align .where with .joins on line 659.","created_at":"2018-07-05T02:04:09Z","updated_at":"2018-07-05T02:04:10Z","html_url":"https://github.com/MarkUsProject/Markus/pull/3426#discussion_r200218762","pull_request_url":"https://api.github.com/repos/MarkUsProject/Markus/pulls/3426","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/MarkUsProject/Markus/pulls/comments/200218762"},"html":{"href":"https://github.com/MarkUsProject/Markus/pull/3426#discussion_r200218762"},"pull_request":{"href":"https://api.github.com/repos/MarkUsProject/Markus/pulls/3426"}}},"pull_request":{"url":"https://api.github.com/repos/MarkUsProject/Markus/pulls/3426","id":198037584,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk4MDM3NTg0","html_url":"https://github.com/MarkUsProject/Markus/pull/3426","diff_url":"https://github.com/MarkUsProject/Markus/pull/3426.diff","patch_url":"https://github.com/MarkUsProject/Markus/pull/3426.patch","issue_url":"https://api.github.com/repos/MarkUsProject/Markus/issues/3426","number":3426,"state":"open","locked":false,"title":"Issue 3287: Refactoring the test_script_result table to use react js.","user":{"login":"czack810150","id":17039493,"node_id":"MDQ6VXNlcjE3MDM5NDkz","avatar_url":"https://avatars1.githubusercontent.com/u/17039493?v=4","gravatar_id":"","url":"https://api.github.com/users/czack810150","html_url":"https://github.com/czack810150","followers_url":"https://api.github.com/users/czack810150/followers","following_url":"https://api.github.com/users/czack810150/following{/other_user}","gists_url":"https://api.github.com/users/czack810150/gists{/gist_id}","starred_url":"https://api.github.com/users/czack810150/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/czack810150/subscriptions","organizations_url":"https://api.github.com/users/czack810150/orgs","repos_url":"https://api.github.com/users/czack810150/repos","events_url":"https://api.github.com/users/czack810150/events{/privacy}","received_events_url":"https://api.github.com/users/czack810150/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-06-28T13:52:36Z","updated_at":"2018-07-05T02:04:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2d1d7f9f86ace0567603f07db2b9b95eaf817974","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/MarkUsProject/Markus/pulls/3426/commits","review_comments_url":"https://api.github.com/repos/MarkUsProject/Markus/pulls/3426/comments","review_comment_url":"https://api.github.com/repos/MarkUsProject/Markus/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MarkUsProject/Markus/issues/3426/comments","statuses_url":"https://api.github.com/repos/MarkUsProject/Markus/statuses/4ac34d89b45d260b87ff87420ed574315e7b1509","head":{"label":"czack810150:issue-3287","ref":"issue-3287","sha":"4ac34d89b45d260b87ff87420ed574315e7b1509","user":{"login":"czack810150","id":17039493,"node_id":"MDQ6VXNlcjE3MDM5NDkz","avatar_url":"https://avatars1.githubusercontent.com/u/17039493?v=4","gravatar_id":"","url":"https://api.github.com/users/czack810150","html_url":"https://github.com/czack810150","followers_url":"https://api.github.com/users/czack810150/followers","following_url":"https://api.github.com/users/czack810150/following{/other_user}","gists_url":"https://api.github.com/users/czack810150/gists{/gist_id}","starred_url":"https://api.github.com/users/czack810150/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/czack810150/subscriptions","organizations_url":"https://api.github.com/users/czack810150/orgs","repos_url":"https://api.github.com/users/czack810150/repos","events_url":"https://api.github.com/users/czack810150/events{/privacy}","received_events_url":"https://api.github.com/users/czack810150/received_events","type":"User","site_admin":false},"repo":{"id":132043778,"node_id":"MDEwOlJlcG9zaXRvcnkxMzIwNDM3Nzg=","name":"Markus","full_name":"czack810150/Markus","owner":{"login":"czack810150","id":17039493,"node_id":"MDQ6VXNlcjE3MDM5NDkz","avatar_url":"https://avatars1.githubusercontent.com/u/17039493?v=4","gravatar_id":"","url":"https://api.github.com/users/czack810150","html_url":"https://github.com/czack810150","followers_url":"https://api.github.com/users/czack810150/followers","following_url":"https://api.github.com/users/czack810150/following{/other_user}","gists_url":"https://api.github.com/users/czack810150/gists{/gist_id}","starred_url":"https://api.github.com/users/czack810150/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/czack810150/subscriptions","organizations_url":"https://api.github.com/users/czack810150/orgs","repos_url":"https://api.github.com/users/czack810150/repos","events_url":"https://api.github.com/users/czack810150/events{/privacy}","received_events_url":"https://api.github.com/users/czack810150/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/czack810150/Markus","description":"Git repository of MarkUs","fork":true,"url":"https://api.github.com/repos/czack810150/Markus","forks_url":"https://api.github.com/repos/czack810150/Markus/forks","keys_url":"https://api.github.com/repos/czack810150/Markus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/czack810150/Markus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/czack810150/Markus/teams","hooks_url":"https://api.github.com/repos/czack810150/Markus/hooks","issue_events_url":"https://api.github.com/repos/czack810150/Markus/issues/events{/number}","events_url":"https://api.github.com/repos/czack810150/Markus/events","assignees_url":"https://api.github.com/repos/czack810150/Markus/assignees{/user}","branches_url":"https://api.github.com/repos/czack810150/Markus/branches{/branch}","tags_url":"https://api.github.com/repos/czack810150/Markus/tags","blobs_url":"https://api.github.com/repos/czack810150/Markus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/czack810150/Markus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/czack810150/Markus/git/refs{/sha}","trees_url":"https://api.github.com/repos/czack810150/Markus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/czack810150/Markus/statuses/{sha}","languages_url":"https://api.github.com/repos/czack810150/Markus/languages","stargazers_url":"https://api.github.com/repos/czack810150/Markus/stargazers","contributors_url":"https://api.github.com/repos/czack810150/Markus/contributors","subscribers_url":"https://api.github.com/repos/czack810150/Markus/subscribers","subscription_url":"https://api.github.com/repos/czack810150/Markus/subscription","commits_url":"https://api.github.com/repos/czack810150/Markus/commits{/sha}","git_commits_url":"https://api.github.com/repos/czack810150/Markus/git/commits{/sha}","comments_url":"https://api.github.com/repos/czack810150/Markus/comments{/number}","issue_comment_url":"https://api.github.com/repos/czack810150/Markus/issues/comments{/number}","contents_url":"https://api.github.com/repos/czack810150/Markus/contents/{+path}","compare_url":"https://api.github.com/repos/czack810150/Markus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/czack810150/Markus/merges","archive_url":"https://api.github.com/repos/czack810150/Markus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/czack810150/Markus/downloads","issues_url":"https://api.github.com/repos/czack810150/Markus/issues{/number}","pulls_url":"https://api.github.com/repos/czack810150/Markus/pulls{/number}","milestones_url":"https://api.github.com/repos/czack810150/Markus/milestones{/number}","notifications_url":"https://api.github.com/repos/czack810150/Markus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/czack810150/Markus/labels{/name}","releases_url":"https://api.github.com/repos/czack810150/Markus/releases{/id}","deployments_url":"https://api.github.com/repos/czack810150/Markus/deployments","created_at":"2018-05-03T20:03:27Z","updated_at":"2018-06-28T13:49:14Z","pushed_at":"2018-07-05T02:03:59Z","git_url":"git://github.com/czack810150/Markus.git","ssh_url":"git@github.com:czack810150/Markus.git","clone_url":"https://github.com/czack810150/Markus.git","svn_url":"https://github.com/czack810150/Markus","homepage":"http://www.markusproject.org","size":114937,"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":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"MarkUsProject:master","ref":"master","sha":"43609fcc2f3c2867c24cac363f0d43563b7ddef4","user":{"login":"MarkUsProject","id":415874,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxNTg3NA==","avatar_url":"https://avatars1.githubusercontent.com/u/415874?v=4","gravatar_id":"","url":"https://api.github.com/users/MarkUsProject","html_url":"https://github.com/MarkUsProject","followers_url":"https://api.github.com/users/MarkUsProject/followers","following_url":"https://api.github.com/users/MarkUsProject/following{/other_user}","gists_url":"https://api.github.com/users/MarkUsProject/gists{/gist_id}","starred_url":"https://api.github.com/users/MarkUsProject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarkUsProject/subscriptions","organizations_url":"https://api.github.com/users/MarkUsProject/orgs","repos_url":"https://api.github.com/users/MarkUsProject/repos","events_url":"https://api.github.com/users/MarkUsProject/events{/privacy}","received_events_url":"https://api.github.com/users/MarkUsProject/received_events","type":"Organization","site_admin":false},"repo":{"id":940538,"node_id":"MDEwOlJlcG9zaXRvcnk5NDA1Mzg=","name":"Markus","full_name":"MarkUsProject/Markus","owner":{"login":"MarkUsProject","id":415874,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxNTg3NA==","avatar_url":"https://avatars1.githubusercontent.com/u/415874?v=4","gravatar_id":"","url":"https://api.github.com/users/MarkUsProject","html_url":"https://github.com/MarkUsProject","followers_url":"https://api.github.com/users/MarkUsProject/followers","following_url":"https://api.github.com/users/MarkUsProject/following{/other_user}","gists_url":"https://api.github.com/users/MarkUsProject/gists{/gist_id}","starred_url":"https://api.github.com/users/MarkUsProject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarkUsProject/subscriptions","organizations_url":"https://api.github.com/users/MarkUsProject/orgs","repos_url":"https://api.github.com/users/MarkUsProject/repos","events_url":"https://api.github.com/users/MarkUsProject/events{/privacy}","received_events_url":"https://api.github.com/users/MarkUsProject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/MarkUsProject/Markus","description":"Git repository of MarkUs","fork":false,"url":"https://api.github.com/repos/MarkUsProject/Markus","forks_url":"https://api.github.com/repos/MarkUsProject/Markus/forks","keys_url":"https://api.github.com/repos/MarkUsProject/Markus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MarkUsProject/Markus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MarkUsProject/Markus/teams","hooks_url":"https://api.github.com/repos/MarkUsProject/Markus/hooks","issue_events_url":"https://api.github.com/repos/MarkUsProject/Markus/issues/events{/number}","events_url":"https://api.github.com/repos/MarkUsProject/Markus/events","assignees_url":"https://api.github.com/repos/MarkUsProject/Markus/assignees{/user}","branches_url":"https://api.github.com/repos/MarkUsProject/Markus/branches{/branch}","tags_url":"https://api.github.com/repos/MarkUsProject/Markus/tags","blobs_url":"https://api.github.com/repos/MarkUsProject/Markus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MarkUsProject/Markus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MarkUsProject/Markus/git/refs{/sha}","trees_url":"https://api.github.com/repos/MarkUsProject/Markus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MarkUsProject/Markus/statuses/{sha}","languages_url":"https://api.github.com/repos/MarkUsProject/Markus/languages","stargazers_url":"https://api.github.com/repos/MarkUsProject/Markus/stargazers","contributors_url":"https://api.github.com/repos/MarkUsProject/Markus/contributors","subscribers_url":"https://api.github.com/repos/MarkUsProject/Markus/subscribers","subscription_url":"https://api.github.com/repos/MarkUsProject/Markus/subscription","commits_url":"https://api.github.com/repos/MarkUsProject/Markus/commits{/sha}","git_commits_url":"https://api.github.com/repos/MarkUsProject/Markus/git/commits{/sha}","comments_url":"https://api.github.com/repos/MarkUsProject/Markus/comments{/number}","issue_comment_url":"https://api.github.com/repos/MarkUsProject/Markus/issues/comments{/number}","contents_url":"https://api.github.com/repos/MarkUsProject/Markus/contents/{+path}","compare_url":"https://api.github.com/repos/MarkUsProject/Markus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MarkUsProject/Markus/merges","archive_url":"https://api.github.com/repos/MarkUsProject/Markus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MarkUsProject/Markus/downloads","issues_url":"https://api.github.com/repos/MarkUsProject/Markus/issues{/number}","pulls_url":"https://api.github.com/repos/MarkUsProject/Markus/pulls{/number}","milestones_url":"https://api.github.com/repos/MarkUsProject/Markus/milestones{/number}","notifications_url":"https://api.github.com/repos/MarkUsProject/Markus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MarkUsProject/Markus/labels{/name}","releases_url":"https://api.github.com/repos/MarkUsProject/Markus/releases{/id}","deployments_url":"https://api.github.com/repos/MarkUsProject/Markus/deployments","created_at":"2010-09-26T16:18:08Z","updated_at":"2018-07-03T17:31:04Z","pushed_at":"2018-07-05T02:04:01Z","git_url":"git://github.com/MarkUsProject/Markus.git","ssh_url":"git@github.com:MarkUsProject/Markus.git","clone_url":"https://github.com/MarkUsProject/Markus.git","svn_url":"https://github.com/MarkUsProject/Markus","homepage":"http://www.markusproject.org","size":115016,"stargazers_count":171,"watchers_count":171,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":194,"mirror_url":null,"archived":false,"open_issues_count":77,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":194,"open_issues":77,"watchers":171,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MarkUsProject/Markus/pulls/3426"},"html":{"href":"https://github.com/MarkUsProject/Markus/pull/3426"},"issue":{"href":"https://api.github.com/repos/MarkUsProject/Markus/issues/3426"},"comments":{"href":"https://api.github.com/repos/MarkUsProject/Markus/issues/3426/comments"},"review_comments":{"href":"https://api.github.com/repos/MarkUsProject/Markus/pulls/3426/comments"},"review_comment":{"href":"https://api.github.com/repos/MarkUsProject/Markus/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MarkUsProject/Markus/pulls/3426/commits"},"statuses":{"href":"https://api.github.com/repos/MarkUsProject/Markus/statuses/4ac34d89b45d260b87ff87420ed574315e7b1509"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"houndci-bot"}}