{"action":"created","comment":{"url":"https://api.github.com/repos/internetarchive/openlibrary/pulls/comments/215375619","pull_request_review_id":152471449,"id":215375619,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNTM3NTYxOQ==","diff_hunk":"@@ -250,6 +259,11 @@ def find_match(e1, edition_pool):\n                 return edition_key\n \n def build_pool(rec):\n+    \"\"\"\n+    Searches for existing edition matches on title and bibliographic keys.\n+    :param dict rec: Edition record\n+    :rtype: dict {<identifier: title | isbn | lccn etc>: [ list of /books/OL..M keys that match rec on <identifier>]}","path":"openlibrary/catalog/add_book/__init__.py","position":23,"original_position":23,"commit_id":"23b8ec51b7f40336bd43a8c5a3e32c9de7bdaada","original_commit_id":"23b8ec51b7f40336bd43a8c5a3e32c9de7bdaada","user":{"login":"cdrini","id":6251786,"node_id":"MDQ6VXNlcjYyNTE3ODY=","avatar_url":"https://avatars3.githubusercontent.com/u/6251786?v=4","gravatar_id":"","url":"https://api.github.com/users/cdrini","html_url":"https://github.com/cdrini","followers_url":"https://api.github.com/users/cdrini/followers","following_url":"https://api.github.com/users/cdrini/following{/other_user}","gists_url":"https://api.github.com/users/cdrini/gists{/gist_id}","starred_url":"https://api.github.com/users/cdrini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdrini/subscriptions","organizations_url":"https://api.github.com/users/cdrini/orgs","repos_url":"https://api.github.com/users/cdrini/repos","events_url":"https://api.github.com/users/cdrini/events{/privacy}","received_events_url":"https://api.github.com/users/cdrini/received_events","type":"User","site_admin":false},"body":"Put dict info in `:return:` section","created_at":"2018-09-05T18:17:57Z","updated_at":"2018-09-05T18:31:49Z","html_url":"https://github.com/internetarchive/openlibrary/pull/1058#discussion_r215375619","pull_request_url":"https://api.github.com/repos/internetarchive/openlibrary/pulls/1058","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/internetarchive/openlibrary/pulls/comments/215375619"},"html":{"href":"https://github.com/internetarchive/openlibrary/pull/1058#discussion_r215375619"},"pull_request":{"href":"https://api.github.com/repos/internetarchive/openlibrary/pulls/1058"}}},"pull_request":{"url":"https://api.github.com/repos/internetarchive/openlibrary/pulls/1058","id":211080810,"node_id":"MDExOlB1bGxSZXF1ZXN0MjExMDgwODEw","html_url":"https://github.com/internetarchive/openlibrary/pull/1058","diff_url":"https://github.com/internetarchive/openlibrary/pull/1058.diff","patch_url":"https://github.com/internetarchive/openlibrary/pull/1058.patch","issue_url":"https://api.github.com/repos/internetarchive/openlibrary/issues/1058","number":1058,"state":"open","locked":false,"title":"WIP: Import archive.org bulk marc items","user":{"login":"hornc","id":905545,"node_id":"MDQ6VXNlcjkwNTU0NQ==","avatar_url":"https://avatars0.githubusercontent.com/u/905545?v=4","gravatar_id":"","url":"https://api.github.com/users/hornc","html_url":"https://github.com/hornc","followers_url":"https://api.github.com/users/hornc/followers","following_url":"https://api.github.com/users/hornc/following{/other_user}","gists_url":"https://api.github.com/users/hornc/gists{/gist_id}","starred_url":"https://api.github.com/users/hornc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hornc/subscriptions","organizations_url":"https://api.github.com/users/hornc/orgs","repos_url":"https://api.github.com/users/hornc/repos","events_url":"https://api.github.com/users/hornc/events{/privacy}","received_events_url":"https://api.github.com/users/hornc/received_events","type":"User","site_admin":false},"body":"Currently work in progress, \r\n\r\n* Documents various import endpoints\r\n* Adds tests to protect import functionality\r\n* refactoring and DRY\r\n* Adds the ability to import from bulk binary records stored on archive.org\r\n* Makes the import API respond with proper HTTP response codes on error\r\n* Resolves #1029 , adds subjects from archive.org metadata\r\n\r\n","created_at":"2018-08-27T11:26:30Z","updated_at":"2018-09-05T18:31:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cfd8a7a307a1fc226ac9e72fe05ab7f5d4693614","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/internetarchive/openlibrary/pulls/1058/commits","review_comments_url":"https://api.github.com/repos/internetarchive/openlibrary/pulls/1058/comments","review_comment_url":"https://api.github.com/repos/internetarchive/openlibrary/pulls/comments{/number}","comments_url":"https://api.github.com/repos/internetarchive/openlibrary/issues/1058/comments","statuses_url":"https://api.github.com/repos/internetarchive/openlibrary/statuses/23b8ec51b7f40336bd43a8c5a3e32c9de7bdaada","head":{"label":"hornc:import","ref":"import","sha":"23b8ec51b7f40336bd43a8c5a3e32c9de7bdaada","user":{"login":"hornc","id":905545,"node_id":"MDQ6VXNlcjkwNTU0NQ==","avatar_url":"https://avatars0.githubusercontent.com/u/905545?v=4","gravatar_id":"","url":"https://api.github.com/users/hornc","html_url":"https://github.com/hornc","followers_url":"https://api.github.com/users/hornc/followers","following_url":"https://api.github.com/users/hornc/following{/other_user}","gists_url":"https://api.github.com/users/hornc/gists{/gist_id}","starred_url":"https://api.github.com/users/hornc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hornc/subscriptions","organizations_url":"https://api.github.com/users/hornc/orgs","repos_url":"https://api.github.com/users/hornc/repos","events_url":"https://api.github.com/users/hornc/events{/privacy}","received_events_url":"https://api.github.com/users/hornc/received_events","type":"User","site_admin":false},"repo":{"id":24747134,"node_id":"MDEwOlJlcG9zaXRvcnkyNDc0NzEzNA==","name":"openlibrary-1","full_name":"hornc/openlibrary-1","owner":{"login":"hornc","id":905545,"node_id":"MDQ6VXNlcjkwNTU0NQ==","avatar_url":"https://avatars0.githubusercontent.com/u/905545?v=4","gravatar_id":"","url":"https://api.github.com/users/hornc","html_url":"https://github.com/hornc","followers_url":"https://api.github.com/users/hornc/followers","following_url":"https://api.github.com/users/hornc/following{/other_user}","gists_url":"https://api.github.com/users/hornc/gists{/gist_id}","starred_url":"https://api.github.com/users/hornc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hornc/subscriptions","organizations_url":"https://api.github.com/users/hornc/orgs","repos_url":"https://api.github.com/users/hornc/repos","events_url":"https://api.github.com/users/hornc/events{/privacy}","received_events_url":"https://api.github.com/users/hornc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hornc/openlibrary-1","description":"One webpage for every book ever published!","fork":true,"url":"https://api.github.com/repos/hornc/openlibrary-1","forks_url":"https://api.github.com/repos/hornc/openlibrary-1/forks","keys_url":"https://api.github.com/repos/hornc/openlibrary-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hornc/openlibrary-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hornc/openlibrary-1/teams","hooks_url":"https://api.github.com/repos/hornc/openlibrary-1/hooks","issue_events_url":"https://api.github.com/repos/hornc/openlibrary-1/issues/events{/number}","events_url":"https://api.github.com/repos/hornc/openlibrary-1/events","assignees_url":"https://api.github.com/repos/hornc/openlibrary-1/assignees{/user}","branches_url":"https://api.github.com/repos/hornc/openlibrary-1/branches{/branch}","tags_url":"https://api.github.com/repos/hornc/openlibrary-1/tags","blobs_url":"https://api.github.com/repos/hornc/openlibrary-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hornc/openlibrary-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hornc/openlibrary-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/hornc/openlibrary-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hornc/openlibrary-1/statuses/{sha}","languages_url":"https://api.github.com/repos/hornc/openlibrary-1/languages","stargazers_url":"https://api.github.com/repos/hornc/openlibrary-1/stargazers","contributors_url":"https://api.github.com/repos/hornc/openlibrary-1/contributors","subscribers_url":"https://api.github.com/repos/hornc/openlibrary-1/subscribers","subscription_url":"https://api.github.com/repos/hornc/openlibrary-1/subscription","commits_url":"https://api.github.com/repos/hornc/openlibrary-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/hornc/openlibrary-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/hornc/openlibrary-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/hornc/openlibrary-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/hornc/openlibrary-1/contents/{+path}","compare_url":"https://api.github.com/repos/hornc/openlibrary-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hornc/openlibrary-1/merges","archive_url":"https://api.github.com/repos/hornc/openlibrary-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hornc/openlibrary-1/downloads","issues_url":"https://api.github.com/repos/hornc/openlibrary-1/issues{/number}","pulls_url":"https://api.github.com/repos/hornc/openlibrary-1/pulls{/number}","milestones_url":"https://api.github.com/repos/hornc/openlibrary-1/milestones{/number}","notifications_url":"https://api.github.com/repos/hornc/openlibrary-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hornc/openlibrary-1/labels{/name}","releases_url":"https://api.github.com/repos/hornc/openlibrary-1/releases{/id}","deployments_url":"https://api.github.com/repos/hornc/openlibrary-1/deployments","created_at":"2014-10-03T04:49:32Z","updated_at":"2018-04-04T05:53:33Z","pushed_at":"2018-08-30T10:02:40Z","git_url":"git://github.com/hornc/openlibrary-1.git","ssh_url":"git@github.com:hornc/openlibrary-1.git","clone_url":"https://github.com/hornc/openlibrary-1.git","svn_url":"https://github.com/hornc/openlibrary-1","homepage":"https://openlibrary.org","size":42440,"stargazers_count":0,"watchers_count":0,"language":"Python","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":1,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"internetarchive:master","ref":"master","sha":"0f889346843db06fdb0028ff5f1a78cc87f1223b","user":{"login":"internetarchive","id":130493,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzMDQ5Mw==","avatar_url":"https://avatars3.githubusercontent.com/u/130493?v=4","gravatar_id":"","url":"https://api.github.com/users/internetarchive","html_url":"https://github.com/internetarchive","followers_url":"https://api.github.com/users/internetarchive/followers","following_url":"https://api.github.com/users/internetarchive/following{/other_user}","gists_url":"https://api.github.com/users/internetarchive/gists{/gist_id}","starred_url":"https://api.github.com/users/internetarchive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/internetarchive/subscriptions","organizations_url":"https://api.github.com/users/internetarchive/orgs","repos_url":"https://api.github.com/users/internetarchive/repos","events_url":"https://api.github.com/users/internetarchive/events{/privacy}","received_events_url":"https://api.github.com/users/internetarchive/received_events","type":"Organization","site_admin":false},"repo":{"id":69609,"node_id":"MDEwOlJlcG9zaXRvcnk2OTYwOQ==","name":"openlibrary","full_name":"internetarchive/openlibrary","owner":{"login":"internetarchive","id":130493,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzMDQ5Mw==","avatar_url":"https://avatars3.githubusercontent.com/u/130493?v=4","gravatar_id":"","url":"https://api.github.com/users/internetarchive","html_url":"https://github.com/internetarchive","followers_url":"https://api.github.com/users/internetarchive/followers","following_url":"https://api.github.com/users/internetarchive/following{/other_user}","gists_url":"https://api.github.com/users/internetarchive/gists{/gist_id}","starred_url":"https://api.github.com/users/internetarchive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/internetarchive/subscriptions","organizations_url":"https://api.github.com/users/internetarchive/orgs","repos_url":"https://api.github.com/users/internetarchive/repos","events_url":"https://api.github.com/users/internetarchive/events{/privacy}","received_events_url":"https://api.github.com/users/internetarchive/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/internetarchive/openlibrary","description":"One webpage for every book ever published!","fork":false,"url":"https://api.github.com/repos/internetarchive/openlibrary","forks_url":"https://api.github.com/repos/internetarchive/openlibrary/forks","keys_url":"https://api.github.com/repos/internetarchive/openlibrary/keys{/key_id}","collaborators_url":"https://api.github.com/repos/internetarchive/openlibrary/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/internetarchive/openlibrary/teams","hooks_url":"https://api.github.com/repos/internetarchive/openlibrary/hooks","issue_events_url":"https://api.github.com/repos/internetarchive/openlibrary/issues/events{/number}","events_url":"https://api.github.com/repos/internetarchive/openlibrary/events","assignees_url":"https://api.github.com/repos/internetarchive/openlibrary/assignees{/user}","branches_url":"https://api.github.com/repos/internetarchive/openlibrary/branches{/branch}","tags_url":"https://api.github.com/repos/internetarchive/openlibrary/tags","blobs_url":"https://api.github.com/repos/internetarchive/openlibrary/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/internetarchive/openlibrary/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/internetarchive/openlibrary/git/refs{/sha}","trees_url":"https://api.github.com/repos/internetarchive/openlibrary/git/trees{/sha}","statuses_url":"https://api.github.com/repos/internetarchive/openlibrary/statuses/{sha}","languages_url":"https://api.github.com/repos/internetarchive/openlibrary/languages","stargazers_url":"https://api.github.com/repos/internetarchive/openlibrary/stargazers","contributors_url":"https://api.github.com/repos/internetarchive/openlibrary/contributors","subscribers_url":"https://api.github.com/repos/internetarchive/openlibrary/subscribers","subscription_url":"https://api.github.com/repos/internetarchive/openlibrary/subscription","commits_url":"https://api.github.com/repos/internetarchive/openlibrary/commits{/sha}","git_commits_url":"https://api.github.com/repos/internetarchive/openlibrary/git/commits{/sha}","comments_url":"https://api.github.com/repos/internetarchive/openlibrary/comments{/number}","issue_comment_url":"https://api.github.com/repos/internetarchive/openlibrary/issues/comments{/number}","contents_url":"https://api.github.com/repos/internetarchive/openlibrary/contents/{+path}","compare_url":"https://api.github.com/repos/internetarchive/openlibrary/compare/{base}...{head}","merges_url":"https://api.github.com/repos/internetarchive/openlibrary/merges","archive_url":"https://api.github.com/repos/internetarchive/openlibrary/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/internetarchive/openlibrary/downloads","issues_url":"https://api.github.com/repos/internetarchive/openlibrary/issues{/number}","pulls_url":"https://api.github.com/repos/internetarchive/openlibrary/pulls{/number}","milestones_url":"https://api.github.com/repos/internetarchive/openlibrary/milestones{/number}","notifications_url":"https://api.github.com/repos/internetarchive/openlibrary/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/internetarchive/openlibrary/labels{/name}","releases_url":"https://api.github.com/repos/internetarchive/openlibrary/releases{/id}","deployments_url":"https://api.github.com/repos/internetarchive/openlibrary/deployments","created_at":"2008-10-30T05:20:14Z","updated_at":"2018-09-05T17:37:38Z","pushed_at":"2018-09-05T17:37:36Z","git_url":"git://github.com/internetarchive/openlibrary.git","ssh_url":"git@github.com:internetarchive/openlibrary.git","clone_url":"https://github.com/internetarchive/openlibrary.git","svn_url":"https://github.com/internetarchive/openlibrary","homepage":"https://openlibrary.org","size":44754,"stargazers_count":466,"watchers_count":466,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":185,"mirror_url":null,"archived":false,"open_issues_count":328,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":185,"open_issues":328,"watchers":466,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/internetarchive/openlibrary/pulls/1058"},"html":{"href":"https://github.com/internetarchive/openlibrary/pull/1058"},"issue":{"href":"https://api.github.com/repos/internetarchive/openlibrary/issues/1058"},"comments":{"href":"https://api.github.com/repos/internetarchive/openlibrary/issues/1058/comments"},"review_comments":{"href":"https://api.github.com/repos/internetarchive/openlibrary/pulls/1058/comments"},"review_comment":{"href":"https://api.github.com/repos/internetarchive/openlibrary/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/internetarchive/openlibrary/pulls/1058/commits"},"statuses":{"href":"https://api.github.com/repos/internetarchive/openlibrary/statuses/23b8ec51b7f40336bd43a8c5a3e32c9de7bdaada"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"cdrini"}}