Skip to content

Conversation

@cherylEnkidu
Copy link
Contributor

#no-changelog
[Closes #9407]

Unicode character wasn't the reason why decode failed. When user's bundle text file contains empty array, it doesn't fulfill the RequireArray condition in BundleSerializer. This PR changes the requirements to Optional which can better support empty array decoding.

@google-oss-bot
Copy link

google-oss-bot commented Mar 16, 2022

Coverage Report 1

Affected Products

  • FirebaseFirestore-iOS-FirebaseFirestore.framework

    Overall coverage changed from 86.61% (676d17d) to 86.64% (80dc327) by +0.03%.

    FilenameBase (676d17d)Merge (80dc327)Diff
    bundle_serializer.cc91.84%90.42%-1.42%
    ordered_code.cc93.41%94.15%+0.73%
    serializer.cc87.16%87.70%+0.54%
    watch_stream.cc90.70%95.35%+4.65%
    write_stream.cc90.14%94.37%+4.23%

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/7HTXhjnUpz.html

@cherylEnkidu cherylEnkidu requested a review from wu-hui March 16, 2022 21:08
@wu-hui wu-hui self-assigned this Mar 17, 2022
@cherylEnkidu cherylEnkidu self-assigned this Mar 17, 2022
@cherylEnkidu cherylEnkidu force-pushed the cheryllin/emptyArray branch from eb88337 to 5013faa Compare March 21, 2022 17:26
@google-oss-bot
Copy link

google-oss-bot commented Mar 21, 2022

@cherylEnkidu cherylEnkidu force-pushed the cheryllin/emptyArray branch from 5013faa to 8096623 Compare March 21, 2022 23:27
Copy link
Contributor

@wu-hui wu-hui left a comment

Choose a reason for hiding this comment

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

Approved, but please address the comments.

@wu-hui wu-hui removed their assignment Mar 22, 2022
@cherylEnkidu cherylEnkidu force-pushed the cheryllin/emptyArray branch from 8096623 to a0bb652 Compare March 22, 2022 19:10
@cherylEnkidu cherylEnkidu merged commit 6911d52 into master Mar 23, 2022
@cherylEnkidu cherylEnkidu deleted the cheryllin/emptyArray branch March 23, 2022 15:23
@firebase firebase locked and limited conversation to collaborators Apr 23, 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.

Firestore Data Bundles doesn't support empty Array and empty Map

3 participants