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

fix: sync deleted cached keys #934

Conversation

CurtlyCritchlow
Copy link
Contributor

- What I did
I Modified the getBatchRequests() method in sync_service_impl.dart file to allow deleted cached keys to sync to cloud secondary.

- How I did it
Added entry.operation != CommitOp.DELETE to the IF statement of the getBatchRequests() method in sync_service_impl.dart

- How to verify it
A test should be written for this. This PR goes to a 932-sync-deleted... branch so someone can write a test before merging with trunk.

I verified it by deleting my data on the dude app, uninstalling the app and reinstalling the app and the data remained deleted. Without this fix the deleted data reappeared. You can read about this issue in #932.

- Description for the changelog

Allow deleted cached keys to sync to cloud secondary

@CurtlyCritchlow CurtlyCritchlow merged commit 2e8de02 into atsign-foundation:932-sync-deleted-cached-keys Feb 27, 2023
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.

None yet

2 participants