{"action":"closed","number":11,"pull_request":{"url":"https://api.github.com/repos/aio-libs/aiocouchdb/pulls/11","id":58160077,"html_url":"https://github.com/aio-libs/aiocouchdb/pull/11","diff_url":"https://github.com/aio-libs/aiocouchdb/pull/11.diff","patch_url":"https://github.com/aio-libs/aiocouchdb/pull/11.patch","issue_url":"https://api.github.com/repos/aio-libs/aiocouchdb/issues/11","number":11,"state":"closed","locked":false,"title":"Fix parsing for sync gateway","user":{"login":"ethanfrey","id":5689864,"avatar_url":"https://avatars.githubusercontent.com/u/5689864?v=3","gravatar_id":"","url":"https://api.github.com/users/ethanfrey","html_url":"https://github.com/ethanfrey","followers_url":"https://api.github.com/users/ethanfrey/followers","following_url":"https://api.github.com/users/ethanfrey/following{/other_user}","gists_url":"https://api.github.com/users/ethanfrey/gists{/gist_id}","starred_url":"https://api.github.com/users/ethanfrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethanfrey/subscriptions","organizations_url":"https://api.github.com/users/ethanfrey/orgs","repos_url":"https://api.github.com/users/ethanfrey/repos","events_url":"https://api.github.com/users/ethanfrey/events{/privacy}","received_events_url":"https://api.github.com/users/ethanfrey/received_events","type":"User","site_admin":false},"body":"The new code works well in line per line, and probably for couchdb 2.0.  However, couchbase sync gateway has another peculiarity, in that the \"total_rows\": X, \"offset\": Y fields come AFTER the rows, with slightly different sequence of closing brackets :(\r\n\r\nI made a small adjustment to the parsing code, so it can handle both variants.  And tested on sync gateway and couchdb 1.4.\r\n\r\nStill working on a more general solution at https://github.com/ethanfrey/aiojson ...","created_at":"2016-02-03T16:15:25Z","updated_at":"2016-02-28T20:08:47Z","closed_at":"2016-02-28T20:08:47Z","merged_at":null,"merge_commit_sha":"82a1b67818156aacd74938eb611555a950407604","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/aio-libs/aiocouchdb/pulls/11/commits","review_comments_url":"https://api.github.com/repos/aio-libs/aiocouchdb/pulls/11/comments","review_comment_url":"https://api.github.com/repos/aio-libs/aiocouchdb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aio-libs/aiocouchdb/issues/11/comments","statuses_url":"https://api.github.com/repos/aio-libs/aiocouchdb/statuses/61dcdaec56562e1f985369446a26166dc3434b83","head":{"label":"ethanfrey:master","ref":"master","sha":"61dcdaec56562e1f985369446a26166dc3434b83","user":{"login":"ethanfrey","id":5689864,"avatar_url":"https://avatars.githubusercontent.com/u/5689864?v=3","gravatar_id":"","url":"https://api.github.com/users/ethanfrey","html_url":"https://github.com/ethanfrey","followers_url":"https://api.github.com/users/ethanfrey/followers","following_url":"https://api.github.com/users/ethanfrey/following{/other_user}","gists_url":"https://api.github.com/users/ethanfrey/gists{/gist_id}","starred_url":"https://api.github.com/users/ethanfrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethanfrey/subscriptions","organizations_url":"https://api.github.com/users/ethanfrey/orgs","repos_url":"https://api.github.com/users/ethanfrey/repos","events_url":"https://api.github.com/users/ethanfrey/events{/privacy}","received_events_url":"https://api.github.com/users/ethanfrey/received_events","type":"User","site_admin":false},"repo":{"id":50117626,"name":"aiocouchdb","full_name":"ethanfrey/aiocouchdb","owner":{"login":"ethanfrey","id":5689864,"avatar_url":"https://avatars.githubusercontent.com/u/5689864?v=3","gravatar_id":"","url":"https://api.github.com/users/ethanfrey","html_url":"https://github.com/ethanfrey","followers_url":"https://api.github.com/users/ethanfrey/followers","following_url":"https://api.github.com/users/ethanfrey/following{/other_user}","gists_url":"https://api.github.com/users/ethanfrey/gists{/gist_id}","starred_url":"https://api.github.com/users/ethanfrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethanfrey/subscriptions","organizations_url":"https://api.github.com/users/ethanfrey/orgs","repos_url":"https://api.github.com/users/ethanfrey/repos","events_url":"https://api.github.com/users/ethanfrey/events{/privacy}","received_events_url":"https://api.github.com/users/ethanfrey/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ethanfrey/aiocouchdb","description":"Quickfix fork: CouchDB client built on top of aiohttp (asyncio)","fork":true,"url":"https://api.github.com/repos/ethanfrey/aiocouchdb","forks_url":"https://api.github.com/repos/ethanfrey/aiocouchdb/forks","keys_url":"https://api.github.com/repos/ethanfrey/aiocouchdb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ethanfrey/aiocouchdb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ethanfrey/aiocouchdb/teams","hooks_url":"https://api.github.com/repos/ethanfrey/aiocouchdb/hooks","issue_events_url":"https://api.github.com/repos/ethanfrey/aiocouchdb/issues/events{/number}","events_url":"https://api.github.com/repos/ethanfrey/aiocouchdb/events","assignees_url":"https://api.github.com/repos/ethanfrey/aiocouchdb/assignees{/user}","branches_url":"https://api.github.com/repos/ethanfrey/aiocouchdb/branches{/branch}","tags_url":"https://api.github.com/repos/ethanfrey/aiocouchdb/tags","blobs_url":"https://api.github.com/repos/ethanfrey/aiocouchdb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ethanfrey/aiocouchdb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ethanfrey/aiocouchdb/git/refs{/sha}","trees_url":"https://api.github.com/repos/ethanfrey/aiocouchdb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ethanfrey/aiocouchdb/statuses/{sha}","languages_url":"https://api.github.com/repos/ethanfrey/aiocouchdb/languages","stargazers_url":"https://api.github.com/repos/ethanfrey/aiocouchdb/stargazers","contributors_url":"https://api.github.com/repos/ethanfrey/aiocouchdb/contributors","subscribers_url":"https://api.github.com/repos/ethanfrey/aiocouchdb/subscribers","subscription_url":"https://api.github.com/repos/ethanfrey/aiocouchdb/subscription","commits_url":"https://api.github.com/repos/ethanfrey/aiocouchdb/commits{/sha}","git_commits_url":"https://api.github.com/repos/ethanfrey/aiocouchdb/git/commits{/sha}","comments_url":"https://api.github.com/repos/ethanfrey/aiocouchdb/comments{/number}","issue_comment_url":"https://api.github.com/repos/ethanfrey/aiocouchdb/issues/comments{/number}","contents_url":"https://api.github.com/repos/ethanfrey/aiocouchdb/contents/{+path}","compare_url":"https://api.github.com/repos/ethanfrey/aiocouchdb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ethanfrey/aiocouchdb/merges","archive_url":"https://api.github.com/repos/ethanfrey/aiocouchdb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ethanfrey/aiocouchdb/downloads","issues_url":"https://api.github.com/repos/ethanfrey/aiocouchdb/issues{/number}","pulls_url":"https://api.github.com/repos/ethanfrey/aiocouchdb/pulls{/number}","milestones_url":"https://api.github.com/repos/ethanfrey/aiocouchdb/milestones{/number}","notifications_url":"https://api.github.com/repos/ethanfrey/aiocouchdb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ethanfrey/aiocouchdb/labels{/name}","releases_url":"https://api.github.com/repos/ethanfrey/aiocouchdb/releases{/id}","deployments_url":"https://api.github.com/repos/ethanfrey/aiocouchdb/deployments","created_at":"2016-01-21T15:45:17Z","updated_at":"2016-01-21T16:06:32Z","pushed_at":"2016-02-08T08:38:42Z","git_url":"git://github.com/ethanfrey/aiocouchdb.git","ssh_url":"git@github.com:ethanfrey/aiocouchdb.git","clone_url":"https://github.com/ethanfrey/aiocouchdb.git","svn_url":"https://github.com/ethanfrey/aiocouchdb","homepage":"","size":480,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"aio-libs:master","ref":"master","sha":"94efad629f771652b697366a9695b711f46eeafa","user":{"login":"aio-libs","id":7049303,"avatar_url":"https://avatars.githubusercontent.com/u/7049303?v=3","gravatar_id":"","url":"https://api.github.com/users/aio-libs","html_url":"https://github.com/aio-libs","followers_url":"https://api.github.com/users/aio-libs/followers","following_url":"https://api.github.com/users/aio-libs/following{/other_user}","gists_url":"https://api.github.com/users/aio-libs/gists{/gist_id}","starred_url":"https://api.github.com/users/aio-libs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aio-libs/subscriptions","organizations_url":"https://api.github.com/users/aio-libs/orgs","repos_url":"https://api.github.com/users/aio-libs/repos","events_url":"https://api.github.com/users/aio-libs/events{/privacy}","received_events_url":"https://api.github.com/users/aio-libs/received_events","type":"Organization","site_admin":false},"repo":{"id":21313655,"name":"aiocouchdb","full_name":"aio-libs/aiocouchdb","owner":{"login":"aio-libs","id":7049303,"avatar_url":"https://avatars.githubusercontent.com/u/7049303?v=3","gravatar_id":"","url":"https://api.github.com/users/aio-libs","html_url":"https://github.com/aio-libs","followers_url":"https://api.github.com/users/aio-libs/followers","following_url":"https://api.github.com/users/aio-libs/following{/other_user}","gists_url":"https://api.github.com/users/aio-libs/gists{/gist_id}","starred_url":"https://api.github.com/users/aio-libs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aio-libs/subscriptions","organizations_url":"https://api.github.com/users/aio-libs/orgs","repos_url":"https://api.github.com/users/aio-libs/repos","events_url":"https://api.github.com/users/aio-libs/events{/privacy}","received_events_url":"https://api.github.com/users/aio-libs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aio-libs/aiocouchdb","description":"CouchDB client built on top of aiohttp (asyncio)","fork":false,"url":"https://api.github.com/repos/aio-libs/aiocouchdb","forks_url":"https://api.github.com/repos/aio-libs/aiocouchdb/forks","keys_url":"https://api.github.com/repos/aio-libs/aiocouchdb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aio-libs/aiocouchdb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aio-libs/aiocouchdb/teams","hooks_url":"https://api.github.com/repos/aio-libs/aiocouchdb/hooks","issue_events_url":"https://api.github.com/repos/aio-libs/aiocouchdb/issues/events{/number}","events_url":"https://api.github.com/repos/aio-libs/aiocouchdb/events","assignees_url":"https://api.github.com/repos/aio-libs/aiocouchdb/assignees{/user}","branches_url":"https://api.github.com/repos/aio-libs/aiocouchdb/branches{/branch}","tags_url":"https://api.github.com/repos/aio-libs/aiocouchdb/tags","blobs_url":"https://api.github.com/repos/aio-libs/aiocouchdb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aio-libs/aiocouchdb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aio-libs/aiocouchdb/git/refs{/sha}","trees_url":"https://api.github.com/repos/aio-libs/aiocouchdb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aio-libs/aiocouchdb/statuses/{sha}","languages_url":"https://api.github.com/repos/aio-libs/aiocouchdb/languages","stargazers_url":"https://api.github.com/repos/aio-libs/aiocouchdb/stargazers","contributors_url":"https://api.github.com/repos/aio-libs/aiocouchdb/contributors","subscribers_url":"https://api.github.com/repos/aio-libs/aiocouchdb/subscribers","subscription_url":"https://api.github.com/repos/aio-libs/aiocouchdb/subscription","commits_url":"https://api.github.com/repos/aio-libs/aiocouchdb/commits{/sha}","git_commits_url":"https://api.github.com/repos/aio-libs/aiocouchdb/git/commits{/sha}","comments_url":"https://api.github.com/repos/aio-libs/aiocouchdb/comments{/number}","issue_comment_url":"https://api.github.com/repos/aio-libs/aiocouchdb/issues/comments{/number}","contents_url":"https://api.github.com/repos/aio-libs/aiocouchdb/contents/{+path}","compare_url":"https://api.github.com/repos/aio-libs/aiocouchdb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aio-libs/aiocouchdb/merges","archive_url":"https://api.github.com/repos/aio-libs/aiocouchdb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aio-libs/aiocouchdb/downloads","issues_url":"https://api.github.com/repos/aio-libs/aiocouchdb/issues{/number}","pulls_url":"https://api.github.com/repos/aio-libs/aiocouchdb/pulls{/number}","milestones_url":"https://api.github.com/repos/aio-libs/aiocouchdb/milestones{/number}","notifications_url":"https://api.github.com/repos/aio-libs/aiocouchdb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aio-libs/aiocouchdb/labels{/name}","releases_url":"https://api.github.com/repos/aio-libs/aiocouchdb/releases{/id}","deployments_url":"https://api.github.com/repos/aio-libs/aiocouchdb/deployments","created_at":"2014-06-29T00:32:55Z","updated_at":"2016-02-16T00:20:54Z","pushed_at":"2016-02-28T20:08:46Z","git_url":"git://github.com/aio-libs/aiocouchdb.git","ssh_url":"git@github.com:aio-libs/aiocouchdb.git","clone_url":"https://github.com/aio-libs/aiocouchdb.git","svn_url":"https://github.com/aio-libs/aiocouchdb","homepage":"","size":486,"stargazers_count":26,"watchers_count":26,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":5,"forks":6,"open_issues":5,"watchers":26,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/aio-libs/aiocouchdb/pulls/11"},"html":{"href":"https://github.com/aio-libs/aiocouchdb/pull/11"},"issue":{"href":"https://api.github.com/repos/aio-libs/aiocouchdb/issues/11"},"comments":{"href":"https://api.github.com/repos/aio-libs/aiocouchdb/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/aio-libs/aiocouchdb/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/aio-libs/aiocouchdb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aio-libs/aiocouchdb/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/aio-libs/aiocouchdb/statuses/61dcdaec56562e1f985369446a26166dc3434b83"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":2,"review_comments":0,"commits":3,"additions":8,"deletions":3,"changed_files":1}}