Skip to content

Add test 'bloom filter should correctly encode special unicode characters' to query.test.ts #7412

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 7 commits into from
Jul 5, 2023

Conversation

dconeybe
Copy link
Contributor

@dconeybe dconeybe commented Jul 4, 2023

Add test 'bloom filter should correctly encode special unicode characters' to query.test.ts. This test verifies that the bloom filter correctly encodes document paths that contain special Unicode characters, like combining characters and characters above 0xFFFF (i.e. characters outside of the BMP, basic multilingual plane).

Some great background information about JavaScript and Unicode can be found here: https://dmitripavlutin.com/what-every-javascript-developer-should-know-about-unicode/

Googlers see b/289233003 for details.

This PR is ported to the Android SDK in firebase/firebase-android-sdk#5135 and to the iOS SDK in firebase/firebase-ios-sdk#11679.

@dconeybe dconeybe self-assigned this Jul 4, 2023
@changeset-bot
Copy link

changeset-bot bot commented Jul 4, 2023

⚠️ No Changeset found

Latest commit: fb0e246

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jul 4, 2023

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jul 4, 2023

@dconeybe dconeybe marked this pull request as ready for review July 4, 2023 17:25
@dconeybe dconeybe requested review from a team as code owners July 4, 2023 17:25
@dconeybe dconeybe requested a review from milaGGL July 4, 2023 17:25
Base automatically changed from RetryTestHelper to master July 4, 2023 18:45
Copy link
Contributor

@milaGGL milaGGL left a comment

Choose a reason for hiding this comment

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

LGTM

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.

3 participants