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

Firestore TransactionOptions added, to specify maxAttempts #9838

Merged
merged 23 commits into from
May 30, 2022

Conversation

dconeybe
Copy link
Contributor

@dconeybe dconeybe commented May 24, 2022

This is a port of firebase/firebase-android-sdk#3664, which adds the new TransactionOptions class to Firestore, which can be used to specify the maximum number of attempts to run a transaction before giving up. Previously, this maximum was hardcoded to 5.

@google-oss-bot
Copy link

google-oss-bot commented May 24, 2022

@google-oss-bot
Copy link

google-oss-bot commented May 24, 2022

Coverage Report 1

Affected Products

  • FirebaseFirestore-iOS-FirebaseFirestore.framework

    Overall coverage changed from 88.38% (a71dbaf) to 88.42% (3afbfc8) by +0.04%.

    FilenameBase (a71dbaf)Merge (3afbfc8)Diff
    firestore.cc95.00%95.03%+0.03%
    FIRFirestore.mm91.22%91.43%+0.21%
    FIRTransactionOptions.mm?100.00%?
    leveldb_key.cc98.14%98.63%+0.49%

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/46IJUCl9jk.html

@dconeybe dconeybe marked this pull request as ready for review May 25, 2022 14:32
@dconeybe dconeybe assigned tom-andersen and wu-hui and unassigned dconeybe May 25, 2022
@dconeybe
Copy link
Contributor Author

@tom-andersen Can you take a quick look at this PR to make sure it aligns with your designs for transaction options?
@wu-hui Could you do a full review?
Thank you both.

dconeybe added a commit to firebase/firebase-cpp-sdk that referenced this pull request May 25, 2022
Firestore/Source/API/FIRTransactionOptions.mm Outdated Show resolved Hide resolved
@wu-hui wu-hui assigned dconeybe and unassigned tom-andersen and wu-hui May 30, 2022
@dconeybe dconeybe merged commit 585b4c8 into master May 30, 2022
@dconeybe dconeybe deleted the dconeybe/TransactionOptions branch May 30, 2022 16:41
dconeybe added a commit to firebase/firebase-cpp-sdk that referenced this pull request May 31, 2022
@firebase firebase locked and limited conversation to collaborators Jun 30, 2022
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.

None yet

4 participants