{"action":"created","comment":{"url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/pulls/comments/69909473","id":69909473,"diff_hunk":"@@ -296,6 +296,28 @@ def _create_job(connection, dataset_id, normalize, eval_location, filter_type=No\n     return job_id\n \n \n+def get_user_pending_jobs(user_api_key):","path":"db/dataset_eval.py","position":4,"original_position":4,"commit_id":"78ef1a7051ed8e776b60786d69a51b29e095adad","original_commit_id":"78ef1a7051ed8e776b60786d69a51b29e095adad","user":{"login":"alastair","id":19217,"avatar_url":"https://avatars.githubusercontent.com/u/19217?v=3","gravatar_id":"","url":"https://api.github.com/users/alastair","html_url":"https://github.com/alastair","followers_url":"https://api.github.com/users/alastair/followers","following_url":"https://api.github.com/users/alastair/following{/other_user}","gists_url":"https://api.github.com/users/alastair/gists{/gist_id}","starred_url":"https://api.github.com/users/alastair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alastair/subscriptions","organizations_url":"https://api.github.com/users/alastair/orgs","repos_url":"https://api.github.com/users/alastair/repos","events_url":"https://api.github.com/users/alastair/events{/privacy}","received_events_url":"https://api.github.com/users/alastair/received_events","type":"User","site_admin":false},"body":"I think this would make more sense to be a method which gets pending jobs for a _user_, not an ID, so you could call it `get_pending_jobs_for_user`","created_at":"2016-07-07T13:51:28Z","updated_at":"2016-07-07T13:51:28Z","html_url":"https://github.com/metabrainz/acousticbrainz-server/pull/200#discussion_r69909473","pull_request_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/pulls/200","_links":{"self":{"href":"https://api.github.com/repos/metabrainz/acousticbrainz-server/pulls/comments/69909473"},"html":{"href":"https://github.com/metabrainz/acousticbrainz-server/pull/200#discussion_r69909473"},"pull_request":{"href":"https://api.github.com/repos/metabrainz/acousticbrainz-server/pulls/200"}}},"pull_request":{"url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/pulls/200","id":76587774,"html_url":"https://github.com/metabrainz/acousticbrainz-server/pull/200","diff_url":"https://github.com/metabrainz/acousticbrainz-server/pull/200.diff","patch_url":"https://github.com/metabrainz/acousticbrainz-server/pull/200.patch","issue_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/issues/200","number":200,"state":"open","locked":false,"title":"API endpoint for getting pending jobs for a user to be evaluated remo…","user":{"login":"kartikgupta0909","id":8431695,"avatar_url":"https://avatars.githubusercontent.com/u/8431695?v=3","gravatar_id":"","url":"https://api.github.com/users/kartikgupta0909","html_url":"https://github.com/kartikgupta0909","followers_url":"https://api.github.com/users/kartikgupta0909/followers","following_url":"https://api.github.com/users/kartikgupta0909/following{/other_user}","gists_url":"https://api.github.com/users/kartikgupta0909/gists{/gist_id}","starred_url":"https://api.github.com/users/kartikgupta0909/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kartikgupta0909/subscriptions","organizations_url":"https://api.github.com/users/kartikgupta0909/orgs","repos_url":"https://api.github.com/users/kartikgupta0909/repos","events_url":"https://api.github.com/users/kartikgupta0909/events{/privacy}","received_events_url":"https://api.github.com/users/kartikgupta0909/received_events","type":"User","site_admin":false},"body":"…tely added\r\n\r\n","created_at":"2016-07-07T12:39:00Z","updated_at":"2016-07-07T13:51:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a87018a7588d375149f9102388145c488d77bd1d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/pulls/200/commits","review_comments_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/pulls/200/comments","review_comment_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/issues/200/comments","statuses_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/statuses/78ef1a7051ed8e776b60786d69a51b29e095adad","head":{"label":"metabrainz:Offline-Dataset-Evaluation-Tool","ref":"Offline-Dataset-Evaluation-Tool","sha":"78ef1a7051ed8e776b60786d69a51b29e095adad","user":{"login":"metabrainz","id":293421,"avatar_url":"https://avatars.githubusercontent.com/u/293421?v=3","gravatar_id":"","url":"https://api.github.com/users/metabrainz","html_url":"https://github.com/metabrainz","followers_url":"https://api.github.com/users/metabrainz/followers","following_url":"https://api.github.com/users/metabrainz/following{/other_user}","gists_url":"https://api.github.com/users/metabrainz/gists{/gist_id}","starred_url":"https://api.github.com/users/metabrainz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metabrainz/subscriptions","organizations_url":"https://api.github.com/users/metabrainz/orgs","repos_url":"https://api.github.com/users/metabrainz/repos","events_url":"https://api.github.com/users/metabrainz/events{/privacy}","received_events_url":"https://api.github.com/users/metabrainz/received_events","type":"Organization","site_admin":false},"repo":{"id":24893738,"name":"acousticbrainz-server","full_name":"metabrainz/acousticbrainz-server","owner":{"login":"metabrainz","id":293421,"avatar_url":"https://avatars.githubusercontent.com/u/293421?v=3","gravatar_id":"","url":"https://api.github.com/users/metabrainz","html_url":"https://github.com/metabrainz","followers_url":"https://api.github.com/users/metabrainz/followers","following_url":"https://api.github.com/users/metabrainz/following{/other_user}","gists_url":"https://api.github.com/users/metabrainz/gists{/gist_id}","starred_url":"https://api.github.com/users/metabrainz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metabrainz/subscriptions","organizations_url":"https://api.github.com/users/metabrainz/orgs","repos_url":"https://api.github.com/users/metabrainz/repos","events_url":"https://api.github.com/users/metabrainz/events{/privacy}","received_events_url":"https://api.github.com/users/metabrainz/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/metabrainz/acousticbrainz-server","description":"The server components for the AcousticBrainz project","fork":false,"url":"https://api.github.com/repos/metabrainz/acousticbrainz-server","forks_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/forks","keys_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/teams","hooks_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/hooks","issue_events_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/issues/events{/number}","events_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/events","assignees_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/assignees{/user}","branches_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/branches{/branch}","tags_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/tags","blobs_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/statuses/{sha}","languages_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/languages","stargazers_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/stargazers","contributors_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/contributors","subscribers_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/subscribers","subscription_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/subscription","commits_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/contents/{+path}","compare_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/merges","archive_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/downloads","issues_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/issues{/number}","pulls_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/pulls{/number}","milestones_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/milestones{/number}","notifications_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/labels{/name}","releases_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/releases{/id}","deployments_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/deployments","created_at":"2014-10-07T14:22:44Z","updated_at":"2016-06-20T18:30:00Z","pushed_at":"2016-07-07T12:39:00Z","git_url":"git://github.com/metabrainz/acousticbrainz-server.git","ssh_url":"git@github.com:metabrainz/acousticbrainz-server.git","clone_url":"https://github.com/metabrainz/acousticbrainz-server.git","svn_url":"https://github.com/metabrainz/acousticbrainz-server","homepage":"https://acousticbrainz.org/","size":2341,"stargazers_count":36,"watchers_count":36,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":19,"forks":18,"open_issues":19,"watchers":36,"default_branch":"master"}},"base":{"label":"metabrainz:master","ref":"master","sha":"25fade19e013b16e5e9369016830cdc7d84e19ae","user":{"login":"metabrainz","id":293421,"avatar_url":"https://avatars.githubusercontent.com/u/293421?v=3","gravatar_id":"","url":"https://api.github.com/users/metabrainz","html_url":"https://github.com/metabrainz","followers_url":"https://api.github.com/users/metabrainz/followers","following_url":"https://api.github.com/users/metabrainz/following{/other_user}","gists_url":"https://api.github.com/users/metabrainz/gists{/gist_id}","starred_url":"https://api.github.com/users/metabrainz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metabrainz/subscriptions","organizations_url":"https://api.github.com/users/metabrainz/orgs","repos_url":"https://api.github.com/users/metabrainz/repos","events_url":"https://api.github.com/users/metabrainz/events{/privacy}","received_events_url":"https://api.github.com/users/metabrainz/received_events","type":"Organization","site_admin":false},"repo":{"id":24893738,"name":"acousticbrainz-server","full_name":"metabrainz/acousticbrainz-server","owner":{"login":"metabrainz","id":293421,"avatar_url":"https://avatars.githubusercontent.com/u/293421?v=3","gravatar_id":"","url":"https://api.github.com/users/metabrainz","html_url":"https://github.com/metabrainz","followers_url":"https://api.github.com/users/metabrainz/followers","following_url":"https://api.github.com/users/metabrainz/following{/other_user}","gists_url":"https://api.github.com/users/metabrainz/gists{/gist_id}","starred_url":"https://api.github.com/users/metabrainz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metabrainz/subscriptions","organizations_url":"https://api.github.com/users/metabrainz/orgs","repos_url":"https://api.github.com/users/metabrainz/repos","events_url":"https://api.github.com/users/metabrainz/events{/privacy}","received_events_url":"https://api.github.com/users/metabrainz/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/metabrainz/acousticbrainz-server","description":"The server components for the AcousticBrainz project","fork":false,"url":"https://api.github.com/repos/metabrainz/acousticbrainz-server","forks_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/forks","keys_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/teams","hooks_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/hooks","issue_events_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/issues/events{/number}","events_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/events","assignees_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/assignees{/user}","branches_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/branches{/branch}","tags_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/tags","blobs_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/statuses/{sha}","languages_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/languages","stargazers_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/stargazers","contributors_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/contributors","subscribers_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/subscribers","subscription_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/subscription","commits_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/contents/{+path}","compare_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/merges","archive_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/downloads","issues_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/issues{/number}","pulls_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/pulls{/number}","milestones_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/milestones{/number}","notifications_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/labels{/name}","releases_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/releases{/id}","deployments_url":"https://api.github.com/repos/metabrainz/acousticbrainz-server/deployments","created_at":"2014-10-07T14:22:44Z","updated_at":"2016-06-20T18:30:00Z","pushed_at":"2016-07-07T12:39:00Z","git_url":"git://github.com/metabrainz/acousticbrainz-server.git","ssh_url":"git@github.com:metabrainz/acousticbrainz-server.git","clone_url":"https://github.com/metabrainz/acousticbrainz-server.git","svn_url":"https://github.com/metabrainz/acousticbrainz-server","homepage":"https://acousticbrainz.org/","size":2341,"stargazers_count":36,"watchers_count":36,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":19,"forks":18,"open_issues":19,"watchers":36,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/metabrainz/acousticbrainz-server/pulls/200"},"html":{"href":"https://github.com/metabrainz/acousticbrainz-server/pull/200"},"issue":{"href":"https://api.github.com/repos/metabrainz/acousticbrainz-server/issues/200"},"comments":{"href":"https://api.github.com/repos/metabrainz/acousticbrainz-server/issues/200/comments"},"review_comments":{"href":"https://api.github.com/repos/metabrainz/acousticbrainz-server/pulls/200/comments"},"review_comment":{"href":"https://api.github.com/repos/metabrainz/acousticbrainz-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/metabrainz/acousticbrainz-server/pulls/200/commits"},"statuses":{"href":"https://api.github.com/repos/metabrainz/acousticbrainz-server/statuses/78ef1a7051ed8e776b60786d69a51b29e095adad"}}}}
{"actor":{"display_login":"alastair"}}