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

Return Firestore Classic types from Transaction API #4233

Merged
merged 4 commits into from
Dec 23, 2020

Conversation

schmidt-sebastian
Copy link
Contributor

@schmidt-sebastian schmidt-sebastian commented Dec 22, 2020

We need to use the "classic" UserDataWriter in the old Transaction API, as only the classic UserDataWriter returns the old API types. This is the same fix as #4136 (and the last!)

Fixes #4226

@changeset-bot
Copy link

changeset-bot bot commented Dec 22, 2020

🦋 Changeset detected

Latest commit: 7425ef4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 8 packages
Name Type
@firebase/firestore Patch
firebase Patch
@firebase/rules-unit-testing Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Dec 22, 2020

Changeset File Check ✅

  • No modified packages are missing from the changeset file.
  • No changeset formatting errors detected.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Dec 22, 2020

Size Analysis Report

Affected Products

@firebase/messaging-exp

  • deleteToken

    Size

    Type Base (e13b794) Head (540e8d6) Diff
    size_with_ext_deps 24.9 kB 24.2 kB -783 B (-3.1%)
  • getMessaging

    Size

    Type Base (e13b794) Head (540e8d6) Diff
    size_with_ext_deps 21.0 kB 20.2 kB -779 B (-3.7%)
  • getToken

    Size

    Type Base (e13b794) Head (540e8d6) Diff
    size_with_ext_deps 29.5 kB 28.7 kB -783 B (-2.7%)
  • onMessage

    Size

    Type Base (e13b794) Head (540e8d6) Diff
    size_with_ext_deps 22.6 kB 21.8 kB -779 B (-3.5%)

Test Logs

Copy link

@thebrianchen thebrianchen left a comment

Choose a reason for hiding this comment

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

LGTM. I restarted the CI b/c the failure looked flaky. Not sure what the changeset error is though.

"@firebase/firestore": patch
---

Fixes an issue in the Transaction API that caused the SDK to return invalid DocumentReferences when returned from `DocumentSnapshot.data()`.

Choose a reason for hiding this comment

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

How about "caused DocumentSnapshot.data() to return valid DocumentReferences"? The mixing of present and past tense for "return" makes it a bit hard to understand.

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 changed it up a bit.

@schmidt-sebastian schmidt-sebastian merged commit ba59a0f into master Dec 23, 2020
@google-oss-bot google-oss-bot mentioned this pull request Jan 5, 2021
@firebase firebase locked and limited conversation to collaborators Jan 23, 2021
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.

[Bug] Field type reference in DocumentSnapshot obtained in transaction is not an instance of DocumentReference
3 participants