-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix incoming handler issue #56
fix incoming handler issue #56
Conversation
Hi @hulkoba , thanks for putting this together. Can you write a PR description and add a test to prove the desired functionality? |
to fix the tests which are failing because incoming is called twice for put and bulkDocs
@@ -38,7 +38,7 @@ | |||
"lie": "3.0.4", | |||
"pouchdb-extend": "0.1.2", | |||
"pouchdb-promise": "5.4.3", | |||
"pouchdb-wrappers": "4.1.0", | |||
"pouchdb-wrappers": "https://github.com/neighbourhoodie/pouchdb-wrappers.git#mergemaster", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a fix for #55. Maybe there will be an update soon
c5e7903
to
d368a9f
Compare
991d04f
to
611767a
Compare
This looks good to me! Tests pass and everything. |
hey @nolanlawson , @tlvince @AdrianoFerrari any chance you could take a look? Thanks. |
This was merged as a result of us merging |
related issue: #8
closes #54
Transform-Pouch wraps the
.bulkDocs()
method of PouchDB in order to apply its incoming handler.For most adapters this is fine, but PouchDB will use an adapter's
._put()
method on calls to.put()
if it has one.PouchDB's HTTP adapter -- that is, the one that connects to CouchDB directly -- does specify a
._put()
method, and as a result Transform-Pouch's incoming handler does not run when connecting directly to CouchDB.This PR also