{"action":"closed","number":463,"pull_request":{"url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/pulls/463","id":43814764,"html_url":"https://github.com/crowdresearch/crowdsource-platform/pull/463","diff_url":"https://github.com/crowdresearch/crowdsource-platform/pull/463.diff","patch_url":"https://github.com/crowdresearch/crowdsource-platform/pull/463.patch","issue_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/issues/463","number":463,"state":"closed","locked":false,"title":"Repeat rating fix","user":{"login":"aginzberg","id":4563883,"avatar_url":"https://avatars.githubusercontent.com/u/4563883?v=3","gravatar_id":"","url":"https://api.github.com/users/aginzberg","html_url":"https://github.com/aginzberg","followers_url":"https://api.github.com/users/aginzberg/followers","following_url":"https://api.github.com/users/aginzberg/following{/other_user}","gists_url":"https://api.github.com/users/aginzberg/gists{/gist_id}","starred_url":"https://api.github.com/users/aginzberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aginzberg/subscriptions","organizations_url":"https://api.github.com/users/aginzberg/orgs","repos_url":"https://api.github.com/users/aginzberg/repos","events_url":"https://api.github.com/users/aginzberg/events{/privacy}","received_events_url":"https://api.github.com/users/aginzberg/received_events","type":"User","site_admin":false},"body":"This addresses if multiple rating pairs (same worker same requester) exist in the workerrequesterrating table. This will potentially occur often and is important to resolve. Fixes for cascading and taskfeed. The contents of the first LEFT OUTER JOIN removes all old ratings. The contents of the second LEFT OUTER JOIN corrects the average rating calculation so that we do not include our own ratings in the average and so that it is computed only using most recent ratings.  \r\n\r\nPlease check carefully. Very easy to get bogged down in sql. Comments much appreciated.","created_at":"2015-08-31T21:51:47Z","updated_at":"2015-09-04T04:45:12Z","closed_at":"2015-09-04T04:45:12Z","merged_at":"2015-09-04T04:45:12Z","merge_commit_sha":"fa721d91662edb349ba7892d61490830b796e2e4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/pulls/463/commits","review_comments_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/pulls/463/comments","review_comment_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/pulls/comments{/number}","comments_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/issues/463/comments","statuses_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/statuses/b9d771e0b95eff876e12b380d18419a2cab16e36","head":{"label":"aginzberg:repeat-rating-fix","ref":"repeat-rating-fix","sha":"b9d771e0b95eff876e12b380d18419a2cab16e36","user":{"login":"aginzberg","id":4563883,"avatar_url":"https://avatars.githubusercontent.com/u/4563883?v=3","gravatar_id":"","url":"https://api.github.com/users/aginzberg","html_url":"https://github.com/aginzberg","followers_url":"https://api.github.com/users/aginzberg/followers","following_url":"https://api.github.com/users/aginzberg/following{/other_user}","gists_url":"https://api.github.com/users/aginzberg/gists{/gist_id}","starred_url":"https://api.github.com/users/aginzberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aginzberg/subscriptions","organizations_url":"https://api.github.com/users/aginzberg/orgs","repos_url":"https://api.github.com/users/aginzberg/repos","events_url":"https://api.github.com/users/aginzberg/events{/privacy}","received_events_url":"https://api.github.com/users/aginzberg/received_events","type":"User","site_admin":false},"repo":{"id":38257742,"name":"crowdsource-platform","full_name":"aginzberg/crowdsource-platform","owner":{"login":"aginzberg","id":4563883,"avatar_url":"https://avatars.githubusercontent.com/u/4563883?v=3","gravatar_id":"","url":"https://api.github.com/users/aginzberg","html_url":"https://github.com/aginzberg","followers_url":"https://api.github.com/users/aginzberg/followers","following_url":"https://api.github.com/users/aginzberg/following{/other_user}","gists_url":"https://api.github.com/users/aginzberg/gists{/gist_id}","starred_url":"https://api.github.com/users/aginzberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aginzberg/subscriptions","organizations_url":"https://api.github.com/users/aginzberg/orgs","repos_url":"https://api.github.com/users/aginzberg/repos","events_url":"https://api.github.com/users/aginzberg/events{/privacy}","received_events_url":"https://api.github.com/users/aginzberg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aginzberg/crowdsource-platform","description":"The main repository for Crowdsource Platform","fork":true,"url":"https://api.github.com/repos/aginzberg/crowdsource-platform","forks_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/forks","keys_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/teams","hooks_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/hooks","issue_events_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/issues/events{/number}","events_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/events","assignees_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/assignees{/user}","branches_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/branches{/branch}","tags_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/tags","blobs_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/git/refs{/sha}","trees_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/statuses/{sha}","languages_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/languages","stargazers_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/stargazers","contributors_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/contributors","subscribers_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/subscribers","subscription_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/subscription","commits_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/commits{/sha}","git_commits_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/git/commits{/sha}","comments_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/comments{/number}","issue_comment_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/issues/comments{/number}","contents_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/contents/{+path}","compare_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/merges","archive_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/downloads","issues_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/issues{/number}","pulls_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/pulls{/number}","milestones_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/milestones{/number}","notifications_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/labels{/name}","releases_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/releases{/id}","created_at":"2015-06-29T16:22:01Z","updated_at":"2015-06-29T16:22:01Z","pushed_at":"2015-09-03T21:12:10Z","git_url":"git://github.com/aginzberg/crowdsource-platform.git","ssh_url":"git@github.com:aginzberg/crowdsource-platform.git","clone_url":"https://github.com/aginzberg/crowdsource-platform.git","svn_url":"https://github.com/aginzberg/crowdsource-platform","homepage":null,"size":15333,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"develop2"}},"base":{"label":"crowdresearch:develop2","ref":"develop2","sha":"db612af1a1dd204ce4df830e8ae20819557dd7a9","user":{"login":"crowdresearch","id":11791223,"avatar_url":"https://avatars.githubusercontent.com/u/11791223?v=3","gravatar_id":"","url":"https://api.github.com/users/crowdresearch","html_url":"https://github.com/crowdresearch","followers_url":"https://api.github.com/users/crowdresearch/followers","following_url":"https://api.github.com/users/crowdresearch/following{/other_user}","gists_url":"https://api.github.com/users/crowdresearch/gists{/gist_id}","starred_url":"https://api.github.com/users/crowdresearch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crowdresearch/subscriptions","organizations_url":"https://api.github.com/users/crowdresearch/orgs","repos_url":"https://api.github.com/users/crowdresearch/repos","events_url":"https://api.github.com/users/crowdresearch/events{/privacy}","received_events_url":"https://api.github.com/users/crowdresearch/received_events","type":"Organization","site_admin":false},"repo":{"id":34006010,"name":"crowdsource-platform","full_name":"crowdresearch/crowdsource-platform","owner":{"login":"crowdresearch","id":11791223,"avatar_url":"https://avatars.githubusercontent.com/u/11791223?v=3","gravatar_id":"","url":"https://api.github.com/users/crowdresearch","html_url":"https://github.com/crowdresearch","followers_url":"https://api.github.com/users/crowdresearch/followers","following_url":"https://api.github.com/users/crowdresearch/following{/other_user}","gists_url":"https://api.github.com/users/crowdresearch/gists{/gist_id}","starred_url":"https://api.github.com/users/crowdresearch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crowdresearch/subscriptions","organizations_url":"https://api.github.com/users/crowdresearch/orgs","repos_url":"https://api.github.com/users/crowdresearch/repos","events_url":"https://api.github.com/users/crowdresearch/events{/privacy}","received_events_url":"https://api.github.com/users/crowdresearch/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/crowdresearch/crowdsource-platform","description":"The main repository for Crowdsource Platform","fork":false,"url":"https://api.github.com/repos/crowdresearch/crowdsource-platform","forks_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/forks","keys_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/teams","hooks_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/hooks","issue_events_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/issues/events{/number}","events_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/events","assignees_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/assignees{/user}","branches_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/branches{/branch}","tags_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/tags","blobs_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/git/refs{/sha}","trees_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/statuses/{sha}","languages_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/languages","stargazers_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/stargazers","contributors_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/contributors","subscribers_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/subscribers","subscription_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/subscription","commits_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/commits{/sha}","git_commits_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/git/commits{/sha}","comments_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/comments{/number}","issue_comment_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/issues/comments{/number}","contents_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/contents/{+path}","compare_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/merges","archive_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/downloads","issues_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/issues{/number}","pulls_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/pulls{/number}","milestones_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/milestones{/number}","notifications_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/labels{/name}","releases_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/releases{/id}","created_at":"2015-04-15T16:36:52Z","updated_at":"2015-08-13T13:10:43Z","pushed_at":"2015-09-04T04:45:13Z","git_url":"git://github.com/crowdresearch/crowdsource-platform.git","ssh_url":"git@github.com:crowdresearch/crowdsource-platform.git","clone_url":"https://github.com/crowdresearch/crowdsource-platform.git","svn_url":"https://github.com/crowdresearch/crowdsource-platform","homepage":null,"size":35919,"stargazers_count":42,"watchers_count":42,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":115,"mirror_url":null,"open_issues_count":66,"forks":115,"open_issues":66,"watchers":42,"default_branch":"develop2"}},"_links":{"self":{"href":"https://api.github.com/repos/crowdresearch/crowdsource-platform/pulls/463"},"html":{"href":"https://github.com/crowdresearch/crowdsource-platform/pull/463"},"issue":{"href":"https://api.github.com/repos/crowdresearch/crowdsource-platform/issues/463"},"comments":{"href":"https://api.github.com/repos/crowdresearch/crowdsource-platform/issues/463/comments"},"review_comments":{"href":"https://api.github.com/repos/crowdresearch/crowdsource-platform/pulls/463/comments"},"review_comment":{"href":"https://api.github.com/repos/crowdresearch/crowdsource-platform/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/crowdresearch/crowdsource-platform/pulls/463/commits"},"statuses":{"href":"https://api.github.com/repos/crowdresearch/crowdsource-platform/statuses/b9d771e0b95eff876e12b380d18419a2cab16e36"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"neilthemathguy","id":10985943,"avatar_url":"https://avatars.githubusercontent.com/u/10985943?v=3","gravatar_id":"","url":"https://api.github.com/users/neilthemathguy","html_url":"https://github.com/neilthemathguy","followers_url":"https://api.github.com/users/neilthemathguy/followers","following_url":"https://api.github.com/users/neilthemathguy/following{/other_user}","gists_url":"https://api.github.com/users/neilthemathguy/gists{/gist_id}","starred_url":"https://api.github.com/users/neilthemathguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neilthemathguy/subscriptions","organizations_url":"https://api.github.com/users/neilthemathguy/orgs","repos_url":"https://api.github.com/users/neilthemathguy/repos","events_url":"https://api.github.com/users/neilthemathguy/events{/privacy}","received_events_url":"https://api.github.com/users/neilthemathguy/received_events","type":"User","site_admin":false},"comments":2,"review_comments":9,"commits":6,"additions":96,"deletions":61,"changed_files":1}}