{"action":"created","comment":{"url":"https://api.github.com/repos/expertiza/expertiza/pulls/comments/229558017","pull_request_review_id":170086124,"id":229558017,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyOTU1ODAxNw==","diff_hunk":"@@ -1,6 +1,33 @@\n describe Participant do\n   let(:student) { build(:student, name: \"Student\", fullname: \"Test, Student\") }\n   let(:participant) { build(:participant, user: student) }\n+  #let (:team_user1) {TeamsUser.new user_id, team_id}\n+  #let (:team_user1) { build(:team_user, student: participant)}\n+  let(:response_map1) { build(:review_response_map, reviewer: participant2, id: 10) }\n+  let(:response_map2) { build(:review_response_map, reviewer: participant2, id: 20) }\n+  let(:response1) { build(:response, id: 1, map_id: 10, response_map: response_map1) }\n+  let(:response2) { build(:response, id: 2, map_id: 20, response_map: response_map2) }\n+  let(:participant3) { build(:participant) }\n+  \n+  describe \"#team\" do\n+   it \"returns the team id for the user\" do\n+#\t   student= build(:student, id: 1, name: 'no name', fullname: 'no one') \n+#     team = build(:team, id: 1, name: 'no team') \n+#     participant = build(:participant, user: student) \n+#\t   team_user = build(:team_user, id: 1, user:student , team: team)\n+#\t   expect(participant.user_id).to eq(1) \n+#     expect(participant.team).to eq(1) ","path":"spec/models/participant_spec.rb","position":19,"original_position":19,"commit_id":"3af85ef689270c4755793bdf81759849501b7d80","original_commit_id":"3af85ef689270c4755793bdf81759849501b7d80","user":{"login":"codeclimate[bot]","id":36754821,"node_id":"MDM6Qm90MzY3NTQ4MjE=","avatar_url":"https://avatars0.githubusercontent.com/in/9403?v=4","gravatar_id":"","url":"https://api.github.com/users/codeclimate%5Bbot%5D","html_url":"https://github.com/apps/codeclimate","followers_url":"https://api.github.com/users/codeclimate%5Bbot%5D/followers","following_url":"https://api.github.com/users/codeclimate%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/codeclimate%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/codeclimate%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeclimate%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/codeclimate%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/codeclimate%5Bbot%5D/repos","events_url":"https://api.github.com/users/codeclimate%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/codeclimate%5Bbot%5D/received_events","type":"Bot","site_admin":false},"body":"Incorrect indentation detected (column 0 instead of 5).","created_at":"2018-10-31T04:03:46Z","updated_at":"2018-10-31T04:03:49Z","html_url":"https://github.com/expertiza/expertiza/pull/1230#discussion_r229558017","pull_request_url":"https://api.github.com/repos/expertiza/expertiza/pulls/1230","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/expertiza/expertiza/pulls/comments/229558017"},"html":{"href":"https://github.com/expertiza/expertiza/pull/1230#discussion_r229558017"},"pull_request":{"href":"https://api.github.com/repos/expertiza/expertiza/pulls/1230"}}},"pull_request":{"url":"https://api.github.com/repos/expertiza/expertiza/pulls/1230","id":224496304,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI0NDk2MzA0","html_url":"https://github.com/expertiza/expertiza/pull/1230","diff_url":"https://github.com/expertiza/expertiza/pull/1230.diff","patch_url":"https://github.com/expertiza/expertiza/pull/1230.patch","issue_url":"https://api.github.com/repos/expertiza/expertiza/issues/1230","number":1230,"state":"open","locked":false,"title":"E1852. Write unit tests for participant.rb","user":{"login":"reetu08","id":42618451,"node_id":"MDQ6VXNlcjQyNjE4NDUx","avatar_url":"https://avatars3.githubusercontent.com/u/42618451?v=4","gravatar_id":"","url":"https://api.github.com/users/reetu08","html_url":"https://github.com/reetu08","followers_url":"https://api.github.com/users/reetu08/followers","following_url":"https://api.github.com/users/reetu08/following{/other_user}","gists_url":"https://api.github.com/users/reetu08/gists{/gist_id}","starred_url":"https://api.github.com/users/reetu08/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reetu08/subscriptions","organizations_url":"https://api.github.com/users/reetu08/orgs","repos_url":"https://api.github.com/users/reetu08/repos","events_url":"https://api.github.com/users/reetu08/events{/privacy}","received_events_url":"https://api.github.com/users/reetu08/received_events","type":"User","site_admin":false},"body":"Please put the title of your pull request in the following format: *Project ID. Name*\r\nfor example, `[Project id/Independent study/Issue fix/...]. project name`, eg., `E904. Integrating courses and assignments on Expertiza with Moodle`\r\n\r\nWe suggest you include below information in your pull request:\r\n- A description of the changes proposed in the pull request.\r\n- @mentions of the person or team responsible for reviewing proposed changes.\r\n","created_at":"2018-10-20T19:31:06Z","updated_at":"2018-10-31T04:03:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3d644e400137ac64bdfe22031031ce0cc5158668","assignee":{"login":"Winbobob","id":7702035,"node_id":"MDQ6VXNlcjc3MDIwMzU=","avatar_url":"https://avatars2.githubusercontent.com/u/7702035?v=4","gravatar_id":"","url":"https://api.github.com/users/Winbobob","html_url":"https://github.com/Winbobob","followers_url":"https://api.github.com/users/Winbobob/followers","following_url":"https://api.github.com/users/Winbobob/following{/other_user}","gists_url":"https://api.github.com/users/Winbobob/gists{/gist_id}","starred_url":"https://api.github.com/users/Winbobob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Winbobob/subscriptions","organizations_url":"https://api.github.com/users/Winbobob/orgs","repos_url":"https://api.github.com/users/Winbobob/repos","events_url":"https://api.github.com/users/Winbobob/events{/privacy}","received_events_url":"https://api.github.com/users/Winbobob/received_events","type":"User","site_admin":false},"assignees":[{"login":"Winbobob","id":7702035,"node_id":"MDQ6VXNlcjc3MDIwMzU=","avatar_url":"https://avatars2.githubusercontent.com/u/7702035?v=4","gravatar_id":"","url":"https://api.github.com/users/Winbobob","html_url":"https://github.com/Winbobob","followers_url":"https://api.github.com/users/Winbobob/followers","following_url":"https://api.github.com/users/Winbobob/following{/other_user}","gists_url":"https://api.github.com/users/Winbobob/gists{/gist_id}","starred_url":"https://api.github.com/users/Winbobob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Winbobob/subscriptions","organizations_url":"https://api.github.com/users/Winbobob/orgs","repos_url":"https://api.github.com/users/Winbobob/repos","events_url":"https://api.github.com/users/Winbobob/events{/privacy}","received_events_url":"https://api.github.com/users/Winbobob/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":{"url":"https://api.github.com/repos/expertiza/expertiza/milestones/39","html_url":"https://github.com/expertiza/expertiza/milestone/39","labels_url":"https://api.github.com/repos/expertiza/expertiza/milestones/39/labels","id":3753006,"node_id":"MDk6TWlsZXN0b25lMzc1MzAwNg==","number":39,"title":"CSC517 2018 Fall OSS Projects","description":"","creator":{"login":"Winbobob","id":7702035,"node_id":"MDQ6VXNlcjc3MDIwMzU=","avatar_url":"https://avatars2.githubusercontent.com/u/7702035?v=4","gravatar_id":"","url":"https://api.github.com/users/Winbobob","html_url":"https://github.com/Winbobob","followers_url":"https://api.github.com/users/Winbobob/followers","following_url":"https://api.github.com/users/Winbobob/following{/other_user}","gists_url":"https://api.github.com/users/Winbobob/gists{/gist_id}","starred_url":"https://api.github.com/users/Winbobob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Winbobob/subscriptions","organizations_url":"https://api.github.com/users/Winbobob/orgs","repos_url":"https://api.github.com/users/Winbobob/repos","events_url":"https://api.github.com/users/Winbobob/events{/privacy}","received_events_url":"https://api.github.com/users/Winbobob/received_events","type":"User","site_admin":false},"open_issues":28,"closed_issues":3,"state":"open","created_at":"2018-10-19T19:51:51Z","updated_at":"2018-10-31T02:37:32Z","due_on":"2018-11-30T08:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/expertiza/expertiza/pulls/1230/commits","review_comments_url":"https://api.github.com/repos/expertiza/expertiza/pulls/1230/comments","review_comment_url":"https://api.github.com/repos/expertiza/expertiza/pulls/comments{/number}","comments_url":"https://api.github.com/repos/expertiza/expertiza/issues/1230/comments","statuses_url":"https://api.github.com/repos/expertiza/expertiza/statuses/3af85ef689270c4755793bdf81759849501b7d80","head":{"label":"Suhas-NG:master","ref":"master","sha":"3af85ef689270c4755793bdf81759849501b7d80","user":{"login":"Suhas-NG","id":38542157,"node_id":"MDQ6VXNlcjM4NTQyMTU3","avatar_url":"https://avatars3.githubusercontent.com/u/38542157?v=4","gravatar_id":"","url":"https://api.github.com/users/Suhas-NG","html_url":"https://github.com/Suhas-NG","followers_url":"https://api.github.com/users/Suhas-NG/followers","following_url":"https://api.github.com/users/Suhas-NG/following{/other_user}","gists_url":"https://api.github.com/users/Suhas-NG/gists{/gist_id}","starred_url":"https://api.github.com/users/Suhas-NG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Suhas-NG/subscriptions","organizations_url":"https://api.github.com/users/Suhas-NG/orgs","repos_url":"https://api.github.com/users/Suhas-NG/repos","events_url":"https://api.github.com/users/Suhas-NG/events{/privacy}","received_events_url":"https://api.github.com/users/Suhas-NG/received_events","type":"User","site_admin":false},"repo":{"id":153014628,"node_id":"MDEwOlJlcG9zaXRvcnkxNTMwMTQ2Mjg=","name":"expertiza","full_name":"Suhas-NG/expertiza","private":false,"owner":{"login":"Suhas-NG","id":38542157,"node_id":"MDQ6VXNlcjM4NTQyMTU3","avatar_url":"https://avatars3.githubusercontent.com/u/38542157?v=4","gravatar_id":"","url":"https://api.github.com/users/Suhas-NG","html_url":"https://github.com/Suhas-NG","followers_url":"https://api.github.com/users/Suhas-NG/followers","following_url":"https://api.github.com/users/Suhas-NG/following{/other_user}","gists_url":"https://api.github.com/users/Suhas-NG/gists{/gist_id}","starred_url":"https://api.github.com/users/Suhas-NG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Suhas-NG/subscriptions","organizations_url":"https://api.github.com/users/Suhas-NG/orgs","repos_url":"https://api.github.com/users/Suhas-NG/repos","events_url":"https://api.github.com/users/Suhas-NG/events{/privacy}","received_events_url":"https://api.github.com/users/Suhas-NG/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Suhas-NG/expertiza","description":"Expertiza is a web application through which students can submit and peer-review learning objects (articles, code, web sites, etc).  The Expertiza project is supported by the National Science Foundation.","fork":true,"url":"https://api.github.com/repos/Suhas-NG/expertiza","forks_url":"https://api.github.com/repos/Suhas-NG/expertiza/forks","keys_url":"https://api.github.com/repos/Suhas-NG/expertiza/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Suhas-NG/expertiza/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Suhas-NG/expertiza/teams","hooks_url":"https://api.github.com/repos/Suhas-NG/expertiza/hooks","issue_events_url":"https://api.github.com/repos/Suhas-NG/expertiza/issues/events{/number}","events_url":"https://api.github.com/repos/Suhas-NG/expertiza/events","assignees_url":"https://api.github.com/repos/Suhas-NG/expertiza/assignees{/user}","branches_url":"https://api.github.com/repos/Suhas-NG/expertiza/branches{/branch}","tags_url":"https://api.github.com/repos/Suhas-NG/expertiza/tags","blobs_url":"https://api.github.com/repos/Suhas-NG/expertiza/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Suhas-NG/expertiza/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Suhas-NG/expertiza/git/refs{/sha}","trees_url":"https://api.github.com/repos/Suhas-NG/expertiza/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Suhas-NG/expertiza/statuses/{sha}","languages_url":"https://api.github.com/repos/Suhas-NG/expertiza/languages","stargazers_url":"https://api.github.com/repos/Suhas-NG/expertiza/stargazers","contributors_url":"https://api.github.com/repos/Suhas-NG/expertiza/contributors","subscribers_url":"https://api.github.com/repos/Suhas-NG/expertiza/subscribers","subscription_url":"https://api.github.com/repos/Suhas-NG/expertiza/subscription","commits_url":"https://api.github.com/repos/Suhas-NG/expertiza/commits{/sha}","git_commits_url":"https://api.github.com/repos/Suhas-NG/expertiza/git/commits{/sha}","comments_url":"https://api.github.com/repos/Suhas-NG/expertiza/comments{/number}","issue_comment_url":"https://api.github.com/repos/Suhas-NG/expertiza/issues/comments{/number}","contents_url":"https://api.github.com/repos/Suhas-NG/expertiza/contents/{+path}","compare_url":"https://api.github.com/repos/Suhas-NG/expertiza/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Suhas-NG/expertiza/merges","archive_url":"https://api.github.com/repos/Suhas-NG/expertiza/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Suhas-NG/expertiza/downloads","issues_url":"https://api.github.com/repos/Suhas-NG/expertiza/issues{/number}","pulls_url":"https://api.github.com/repos/Suhas-NG/expertiza/pulls{/number}","milestones_url":"https://api.github.com/repos/Suhas-NG/expertiza/milestones{/number}","notifications_url":"https://api.github.com/repos/Suhas-NG/expertiza/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Suhas-NG/expertiza/labels{/name}","releases_url":"https://api.github.com/repos/Suhas-NG/expertiza/releases{/id}","deployments_url":"https://api.github.com/repos/Suhas-NG/expertiza/deployments","created_at":"2018-10-14T20:12:25Z","updated_at":"2018-10-31T03:45:11Z","pushed_at":"2018-10-31T03:45:09Z","git_url":"git://github.com/Suhas-NG/expertiza.git","ssh_url":"git@github.com:Suhas-NG/expertiza.git","clone_url":"https://github.com/Suhas-NG/expertiza.git","svn_url":"https://github.com/Suhas-NG/expertiza","homepage":"http://wiki.expertiza.ncsu.edu/index.php/Expertiza_documentation","size":53428,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":false,"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":"expertiza:master","ref":"master","sha":"0a6d36d240032449cbe12231b22a520704909474","user":{"login":"expertiza","id":427458,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyNzQ1OA==","avatar_url":"https://avatars3.githubusercontent.com/u/427458?v=4","gravatar_id":"","url":"https://api.github.com/users/expertiza","html_url":"https://github.com/expertiza","followers_url":"https://api.github.com/users/expertiza/followers","following_url":"https://api.github.com/users/expertiza/following{/other_user}","gists_url":"https://api.github.com/users/expertiza/gists{/gist_id}","starred_url":"https://api.github.com/users/expertiza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/expertiza/subscriptions","organizations_url":"https://api.github.com/users/expertiza/orgs","repos_url":"https://api.github.com/users/expertiza/repos","events_url":"https://api.github.com/users/expertiza/events{/privacy}","received_events_url":"https://api.github.com/users/expertiza/received_events","type":"Organization","site_admin":false},"repo":{"id":962564,"node_id":"MDEwOlJlcG9zaXRvcnk5NjI1NjQ=","name":"expertiza","full_name":"expertiza/expertiza","private":false,"owner":{"login":"expertiza","id":427458,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyNzQ1OA==","avatar_url":"https://avatars3.githubusercontent.com/u/427458?v=4","gravatar_id":"","url":"https://api.github.com/users/expertiza","html_url":"https://github.com/expertiza","followers_url":"https://api.github.com/users/expertiza/followers","following_url":"https://api.github.com/users/expertiza/following{/other_user}","gists_url":"https://api.github.com/users/expertiza/gists{/gist_id}","starred_url":"https://api.github.com/users/expertiza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/expertiza/subscriptions","organizations_url":"https://api.github.com/users/expertiza/orgs","repos_url":"https://api.github.com/users/expertiza/repos","events_url":"https://api.github.com/users/expertiza/events{/privacy}","received_events_url":"https://api.github.com/users/expertiza/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/expertiza/expertiza","description":"Expertiza is a web application through which students can submit and peer-review learning objects (articles, code, web sites, etc).  The Expertiza project is supported by the National Science Foundation.","fork":false,"url":"https://api.github.com/repos/expertiza/expertiza","forks_url":"https://api.github.com/repos/expertiza/expertiza/forks","keys_url":"https://api.github.com/repos/expertiza/expertiza/keys{/key_id}","collaborators_url":"https://api.github.com/repos/expertiza/expertiza/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/expertiza/expertiza/teams","hooks_url":"https://api.github.com/repos/expertiza/expertiza/hooks","issue_events_url":"https://api.github.com/repos/expertiza/expertiza/issues/events{/number}","events_url":"https://api.github.com/repos/expertiza/expertiza/events","assignees_url":"https://api.github.com/repos/expertiza/expertiza/assignees{/user}","branches_url":"https://api.github.com/repos/expertiza/expertiza/branches{/branch}","tags_url":"https://api.github.com/repos/expertiza/expertiza/tags","blobs_url":"https://api.github.com/repos/expertiza/expertiza/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/expertiza/expertiza/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/expertiza/expertiza/git/refs{/sha}","trees_url":"https://api.github.com/repos/expertiza/expertiza/git/trees{/sha}","statuses_url":"https://api.github.com/repos/expertiza/expertiza/statuses/{sha}","languages_url":"https://api.github.com/repos/expertiza/expertiza/languages","stargazers_url":"https://api.github.com/repos/expertiza/expertiza/stargazers","contributors_url":"https://api.github.com/repos/expertiza/expertiza/contributors","subscribers_url":"https://api.github.com/repos/expertiza/expertiza/subscribers","subscription_url":"https://api.github.com/repos/expertiza/expertiza/subscription","commits_url":"https://api.github.com/repos/expertiza/expertiza/commits{/sha}","git_commits_url":"https://api.github.com/repos/expertiza/expertiza/git/commits{/sha}","comments_url":"https://api.github.com/repos/expertiza/expertiza/comments{/number}","issue_comment_url":"https://api.github.com/repos/expertiza/expertiza/issues/comments{/number}","contents_url":"https://api.github.com/repos/expertiza/expertiza/contents/{+path}","compare_url":"https://api.github.com/repos/expertiza/expertiza/compare/{base}...{head}","merges_url":"https://api.github.com/repos/expertiza/expertiza/merges","archive_url":"https://api.github.com/repos/expertiza/expertiza/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/expertiza/expertiza/downloads","issues_url":"https://api.github.com/repos/expertiza/expertiza/issues{/number}","pulls_url":"https://api.github.com/repos/expertiza/expertiza/pulls{/number}","milestones_url":"https://api.github.com/repos/expertiza/expertiza/milestones{/number}","notifications_url":"https://api.github.com/repos/expertiza/expertiza/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/expertiza/expertiza/labels{/name}","releases_url":"https://api.github.com/repos/expertiza/expertiza/releases{/id}","deployments_url":"https://api.github.com/repos/expertiza/expertiza/deployments","created_at":"2010-10-05T03:37:29Z","updated_at":"2018-10-30T14:49:47Z","pushed_at":"2018-10-31T03:45:11Z","git_url":"git://github.com/expertiza/expertiza.git","ssh_url":"git@github.com:expertiza/expertiza.git","clone_url":"https://github.com/expertiza/expertiza.git","svn_url":"https://github.com/expertiza/expertiza","homepage":"http://wiki.expertiza.ncsu.edu/index.php/Expertiza_documentation","size":53464,"stargazers_count":145,"watchers_count":145,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":775,"mirror_url":null,"archived":false,"open_issues_count":157,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":775,"open_issues":157,"watchers":145,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/expertiza/expertiza/pulls/1230"},"html":{"href":"https://github.com/expertiza/expertiza/pull/1230"},"issue":{"href":"https://api.github.com/repos/expertiza/expertiza/issues/1230"},"comments":{"href":"https://api.github.com/repos/expertiza/expertiza/issues/1230/comments"},"review_comments":{"href":"https://api.github.com/repos/expertiza/expertiza/pulls/1230/comments"},"review_comment":{"href":"https://api.github.com/repos/expertiza/expertiza/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/expertiza/expertiza/pulls/1230/commits"},"statuses":{"href":"https://api.github.com/repos/expertiza/expertiza/statuses/3af85ef689270c4755793bdf81759849501b7d80"}},"author_association":"NONE"}}
{"actor":{"display_login":"codeclimate"}}