-
Notifications
You must be signed in to change notification settings - Fork 29
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
Docs with rev greater than 1-* not transforming when replicating from remote #50
Comments
Looking at the response I think that something like this should handle bulkGet:
I'll try this and share result. |
Thanks for your bug report! I think the problem is that |
It doesn't. Don't know what this function supposed to do, but with this (copied from wrapper for allDocs):
it works. Test case with modified transform-pouch: |
Nice! I'll have to read the surrounding code for both to check your snippets for correctness (it's been long since I touched that code), but on first look I think they can serve as a patch. |
I'm not sure if your patch for I opened a PR for a |
You might be right @marten-de-vries. I couldn't find how
I know it doesn't return original |
|
Oh, this does depend on the fix to |
Well, I still don't fully understand it, but it seems like CouchDB's internal handling does use lists: https://github.com/apache/couchdb-couch/pull/18/files So let's go with your last snippet for |
Credits to @czarcismok for reporting the issue, investigating it and writing a patch!
Credits to @czarcismok for reporting the issue, investigating it and writing a patch!
Any updates on this @marten-de-vries? Replicating from remote is my only use case for this package, and it isn't working for me (bug reproduced as per original comment). As far as I can tell, this has been updated upstream, and committed here, and is just waiting for publish. When I pull this repo locally (and manually upgrade I'd make a PR, but I've never published to npm and I don't want to break anything. (willing to try though, if that's what you recommend). |
@AdrianoFerrari I just published 1.1.5, and hope that fixes the problem. This project hasn't been updated for a while and it seems like most (dev) dependencies are out of date, but this should take care of the most pressing problem. |
Hi everyone!
Working with PouchDB and transform-pouch for some time now and come across this problem (original issue: pouchdb/pouchdb#7034)
Issue
Documents with revision greater than 1-* are not transforming when replicating from remote-CouchDB.
_changes?style=all_docs&seq_interval=100&since=0&limit=100
gets all changes, but in_all_docs?conflicts=true&include_docs=true
request payload are only keys of docs with rev = 1.*Info
Reproduce
Can't get glitch to work with transform-pouch (any ideas?):
https://glitch.com/edit/#!/understood-ear
I've been struggling with this for almost a week now and don't know if I'm doing something awfully wrong or this is a bug / desired behavior. Help, please? :)
The text was updated successfully, but these errors were encountered: