Skip to content

Support iOS 13 with offline persistence #2271

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

Merged
merged 19 commits into from
Oct 15, 2019
Merged

Support iOS 13 with offline persistence #2271

merged 19 commits into from
Oct 15, 2019

Conversation

schmidt-sebastian
Copy link
Contributor

This PR addresses a behavior change in iOS 13 that causes transaction to be aborted (https://bugs.webkit.org/show_bug.cgi?id=202705). As this is now common in Mobile Safari, we changed the transaction logic in Firestore to allow for retries. If a transaction is not committed successfully, it can now be retried.

This PR makes all non-unit tests transactions idempotent.

Fixes #2232

Comment on lines +4 to +5
- [fixed] Fixed an issue in the interaction with the Firestore Emulator that
caused requests with timestamps to fail.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I rewrote this slightly when I addressed the merge conflict (to add a missing "the").

cc @yuchenshi

Copy link
Contributor

@wilhuff wilhuff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. This is a merge of already reviewed changes.

@wilhuff wilhuff assigned schmidt-sebastian and unassigned wilhuff Oct 15, 2019
@hsubox76 hsubox76 merged commit b21b946 into master Oct 15, 2019
@hsubox76 hsubox76 added this to the next milestone Oct 15, 2019
@schmidt-sebastian schmidt-sebastian deleted the mrschmidt/idempotent branch October 15, 2019 22:24
@firebase firebase locked and limited conversation to collaborators Nov 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Firestore: Attempt to get a record without an in-progress transaction
4 participants