-
Notifications
You must be signed in to change notification settings - Fork 934
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
Conversation
…a query should use bloom filter to avoid full requery'
…ters' to query.test.ts
|
…ectionReference and Firestore
…oomFilterUnicodeTest
Size Report 1Affected ProductsNo changes between base commit (aea4a44) and merge commit (8f7aea7).Test Logs |
Size Analysis Report 1Affected ProductsNo changes between base commit (aea4a44) and merge commit (8f7aea7).Test Logs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Add test
'bloom filter should correctly encode special unicode characters'
toquery.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.