-
Notifications
You must be signed in to change notification settings - Fork 69
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
feat: add support for fieldmask to document reference #245
Conversation
Codecov Report
@@ Coverage Diff @@
## master #245 +/- ##
============================================
+ Coverage 72.92% 73.01% +0.08%
- Complexity 1024 1025 +1
============================================
Files 64 64
Lines 5430 5444 +14
Branches 614 620 +6
============================================
+ Hits 3960 3975 +15
- Misses 1270 1271 +1
+ Partials 200 198 -2
Continue to review full report at Codecov.
|
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 adding this @suraj-qlogic. One small request for the integration test.
DocumentReference ref = randomColl.document("doc1"); | ||
ref.set(ALL_SUPPORTED_TYPES_MAP).get(); | ||
DocumentSnapshot documentSnapshots = ref.get(FieldMask.of("foo")).get(); | ||
assertEquals("bar", documentSnapshots.get("foo")); |
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.
Can you add an assertion for the absence of one of the fields that should not be returned?
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.
Done
🤖 I have created a release \*beep\* \*boop\* --- ## [1.35.0](https://github.com/googleapis/java-firestore/compare/v1.34.0...v1.35.0) (2020-06-17) ### Features * ability to serialize Query to Proto ([#241](https://github.com/googleapis/java-firestore/issues/241)) ([bae22e0](https://github.com/googleapis/java-firestore/commit/bae22e0839de55e11dda604c3034feaedbbc172a)) * add support for fieldmask to document reference ([#245](https://github.com/googleapis/java-firestore/issues/245)) ([4a846b1](https://github.com/googleapis/java-firestore/commit/4a846b1f067ad8e462df673ada38589da224fcef)) ### Dependencies * update core dependencies ([#254](https://github.com/googleapis/java-firestore/issues/254)) ([9b275ca](https://github.com/googleapis/java-firestore/commit/9b275ca5b3f2adbe18be77ea8c86d8446a5833d6)) * update dependency com.google.api:api-common to v1.9.2 ([#238](https://github.com/googleapis/java-firestore/issues/238)) ([c47d327](https://github.com/googleapis/java-firestore/commit/c47d32705645a76d8f9598aa954dbc3b1c067c73)) * update dependency io.grpc:grpc-bom to v1.30.0 ([#244](https://github.com/googleapis/java-firestore/issues/244)) ([b5749d4](https://github.com/googleapis/java-firestore/commit/b5749d4e9bac3628da66451fa070c1bf6f852614)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please).
Fixes #227