-
Notifications
You must be signed in to change notification settings - Fork 822
Docstore/memdocstore: nested query #3508
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
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
dd80187
to
29a9b7b
Compare
can you update your PR to remove the drivertest changes and add that option? You should be able to add it to the existing Options struct |
29a9b7b
to
02ce845
Compare
renamed option to AllowNestedSliceQueries
@jba I'd like to wait for your review/LGTM. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3508 +/- ##
==========================================
+ Coverage 70.60% 70.63% +0.02%
==========================================
Files 113 115 +2
Lines 14384 14521 +137
==========================================
+ Hits 10156 10257 +101
- Misses 3501 3536 +35
- Partials 727 728 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
I'll try to get to it this weekend/early next week. |
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.
Thanks for doing this work. Sorry it took me a while to give it careful look. The only major change is improving the test, otherwise looks good!
docstore/memdocstore/mem_test.go
Outdated
t.Fatal(err) | ||
} | ||
|
||
got := count(coll.Query().Where("list.a", "=", "A").Get(ctx)) |
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 think the tests would be improved by actually comparing the results. Also, use table-driven style. See testGetQuery for an example.
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.
Agreed, i rewrote it to a table-driven style. Please check if its more readable
…ng when comparing in nested structures
…ries per url parameter
…ng when comparing in nested structures
…ries per url parameter
4f4f9e1
to
464a9d1
Compare
…d with operators
@eqinox76 can you address the open comments and sync to head? |
renamed option to AllowNestedSliceQueries
…ng when comparing in nested structures
…ries per url parameter
…d with operators
3691c80
to
be1bdae
Compare
Hi @vangent , @jba , Please let me know if something else is missing. And many thanks for your time and work! |
@jba when you have a chance can you re-review, sounds like there have been non-trivial changes since your approval. |
fixed comment style
Thanks for the review. Shadowing the variable name makes it actually more readable. I commit the changes and fixed the comment style. Please let me know when there is something else that i missed. |
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.
Thank you! Sorry my reviewing has taken so long.
fixed comment style
8f0ede7
to
cd9090a
Compare
Hi, I fixed a flaky test that your test pipeline correctly identified and pushed the changes. |
Fixes #3506 docstore/memdocstore query for nested documents with slices does not work
Added a test to the drivertest. It is working fine with the fixed memdocstore implementation but i can't test it against the other cloud providers.