{"action":"created","issue":{"url":"https://api.github.com/repos/pouchdb/pouchdb/issues/7059","repository_url":"https://api.github.com/repos/pouchdb/pouchdb","labels_url":"https://api.github.com/repos/pouchdb/pouchdb/issues/7059/labels{/name}","comments_url":"https://api.github.com/repos/pouchdb/pouchdb/issues/7059/comments","events_url":"https://api.github.com/repos/pouchdb/pouchdb/issues/7059/events","html_url":"https://github.com/pouchdb/pouchdb/pull/7059","id":293228130,"number":7059,"title":"WIP switch to fetch by default","user":{"login":"daleharvey","id":37787,"avatar_url":"https://avatars1.githubusercontent.com/u/37787?v=4","gravatar_id":"","url":"https://api.github.com/users/daleharvey","html_url":"https://github.com/daleharvey","followers_url":"https://api.github.com/users/daleharvey/followers","following_url":"https://api.github.com/users/daleharvey/following{/other_user}","gists_url":"https://api.github.com/users/daleharvey/gists{/gist_id}","starred_url":"https://api.github.com/users/daleharvey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daleharvey/subscriptions","organizations_url":"https://api.github.com/users/daleharvey/orgs","repos_url":"https://api.github.com/users/daleharvey/repos","events_url":"https://api.github.com/users/daleharvey/events{/privacy}","received_events_url":"https://api.github.com/users/daleharvey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2018-01-31T16:39:36Z","updated_at":"2018-02-06T17:20:49Z","closed_at":null,"author_association":"OWNER","pull_request":{"url":"https://api.github.com/repos/pouchdb/pouchdb/pulls/7059","html_url":"https://github.com/pouchdb/pouchdb/pull/7059","diff_url":"https://github.com/pouchdb/pouchdb/pull/7059.diff","patch_url":"https://github.com/pouchdb/pouchdb/pull/7059.patch"},"body":"Just posting as a WIP to get comments / help etc\r\n\r\nThis is passing all basic tests except https://github.com/pouchdb/pouchdb/blob/master/tests/integration/test.basics.js#L131, fairly confused at that failure as I cant see anywhere we would add the statuscode to a successful http request (the bulkdocs request is successful, the error is called because the first and only result is an error)"},"comment":{"url":"https://api.github.com/repos/pouchdb/pouchdb/issues/comments/363497400","html_url":"https://github.com/pouchdb/pouchdb/pull/7059#issuecomment-363497400","issue_url":"https://api.github.com/repos/pouchdb/pouchdb/issues/7059","id":363497400,"user":{"login":"daleharvey","id":37787,"avatar_url":"https://avatars1.githubusercontent.com/u/37787?v=4","gravatar_id":"","url":"https://api.github.com/users/daleharvey","html_url":"https://github.com/daleharvey","followers_url":"https://api.github.com/users/daleharvey/followers","following_url":"https://api.github.com/users/daleharvey/following{/other_user}","gists_url":"https://api.github.com/users/daleharvey/gists{/gist_id}","starred_url":"https://api.github.com/users/daleharvey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daleharvey/subscriptions","organizations_url":"https://api.github.com/users/daleharvey/orgs","repos_url":"https://api.github.com/users/daleharvey/repos","events_url":"https://api.github.com/users/daleharvey/events{/privacy}","received_events_url":"https://api.github.com/users/daleharvey/received_events","type":"User","site_admin":false},"created_at":"2018-02-06T17:20:49Z","updated_at":"2018-02-06T17:20:49Z","author_association":"OWNER","body":"Fixed the attachment bugs, now working on the override again\r\n\r\n``` \r\nnew PouchDB('name', { \r\n  fetch: function (url, opts) { \r\n    return fetch(url, opts);\r\n  }\r\n});\r\n```\r\nworks in the browser, but obviously not in node, I am thinking we can either do `fetch: function (url, opts, fetch)` or `fetch: function (url, opts) { return PouchDB.fetch .. `, leaning towards the latter"}}
{"actor":{"display_login":"daleharvey"}}