Skip to content
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

use deleted flag for pushing in graphql replication #3446

Closed
wants to merge 2 commits into from

Conversation

chrisdrackett
Copy link
Contributor

This PR contains:

  • A BUGFIX

Describe the problem you have without this PR

Fixes #3436

I don't feel like this is a full fix yet as I'm not sure how if a doc is deleted in pouch that gets set via the deleted flag. I think this has something to do with checking for if this is a delete operation, but I'm not sure why that was changed via 480c56b#diff-9d7498b685187264496834aaae5e2d04b1273c86b921c6b1bc1a2bf5c797f6d8 and I don't want to rebreak things without understanding the fix.

Todos

  • Tests
  • Documentation
  • Typings
  • Changelog

@pubkey
Copy link
Owner

pubkey commented Oct 12, 2021

I think we should start with a test to pin down the 'correct' behavior in the CI.

@pubkey
Copy link
Owner

pubkey commented Oct 25, 2021

@chrisdrackett what is the status of this?
I checked the code and for me all looks ok. Can you make a PR with a test case?

@chrisdrackett
Copy link
Contributor Author

yeah, sorry, haven't had much time for this yet. I'll try and get a test case in this week

@chrisdrackett
Copy link
Contributor Author

I think this is actually fine now that I look at it more. I'm pretty sure we were just using it wrong. I was looking for our flag in our query builder when I should have been looking for _deleted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

deletedFlag not getting set on push during graphQL replication
2 participants