-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[realppl 5] map,string,timestamp and mirroring semantics #14851
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
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist is currently in preview and may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments to provide feedback. |
Generated by 🚫 Danger |
| ReturnsNull()); | ||
| } | ||
|
|
||
| TEST_F(TimestampAddTest, TimestampAddNullTimeUnitReturnsNull) { |
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.
This is an error in backend AFAIK. The expectation is that unit is a string constant. It cannot be evaluated per document. Nor can it be a null.
51c65a8 to
7941d68
Compare
7941d68 to
f9b959f
Compare
3e452b5 to
1fe6a33
Compare
1fe6a33 to
e6ecc47
Compare
0feb290 to
aa284d1
Compare
3f5c55e to
6c0a698
Compare
6294868 to
cd9cdfc
Compare
9051e4f to
e67b0ac
Compare
cd9cdfc to
2a1c2c4
Compare
2a1c2c4 to
b4e0740
Compare
e67b0ac to
569cc6f
Compare
569cc6f to
6add223
Compare
ehsannas
left a comment
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.
I'm not too familiar with utf-8 validation (the ProcessUtf8 function). So I ended up googling a lot of it. It looks good, and the unit test coverage for it is good.
| const google_firestore_v1_MapValue& map_value = value.map_value; | ||
|
|
||
| // MapValues in iOS are always stored in sorted order. | ||
| auto found = std::equal_range(map_value.fields, |
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.
Just realized: It looks like equal_range was introduced in c++20 (https://en.cppreference.com/w/cpp/algorithm/equal_range.html). The iOS SDK uses c++14 right now (and will upgrade to c++17 next IIRC)
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.
Great find. I think this is a mistake completely. Fixed.
6add223 to
9b9e2d9
Compare
No description provided.