Skip to content
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!: use QueryDocumentSnapshot in FirestoreDataConverter #965

Merged
merged 4 commits into from
Apr 9, 2020

Conversation

thebrianchen
Copy link

Fixes #938

Wait for node8 to be deprecated before releasing.

@thebrianchen thebrianchen added the api: firestore Issues related to the googleapis/nodejs-firestore API. label Mar 10, 2020
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Mar 10, 2020
@codecov
Copy link

codecov bot commented Mar 10, 2020

Codecov Report

Merging #965 into node10 will decrease coverage by 0.13%.
The diff coverage is 97.14%.

Impacted file tree graph

@@            Coverage Diff             @@
##           node10     #965      +/-   ##
==========================================
- Coverage   97.58%   97.44%   -0.14%     
==========================================
  Files          25       25              
  Lines       16015    15914     -101     
  Branches     1294     1195      -99     
==========================================
- Hits        15628    15508     -120     
- Misses        384      403      +19     
  Partials        3        3              
Impacted Files Coverage Δ
dev/src/types.ts 99.68% <83.33%> (-0.32%) ⬇️
dev/src/document.ts 98.70% <100.00%> (-0.25%) ⬇️
dev/src/reference.ts 99.83% <100.00%> (-0.05%) ⬇️
dev/src/order.ts 98.09% <0.00%> (-1.15%) ⬇️
dev/src/pool.ts 97.75% <0.00%> (-0.90%) ⬇️
dev/src/transaction.ts 96.47% <0.00%> (-0.51%) ⬇️
dev/src/watch.ts 98.77% <0.00%> (-0.37%) ⬇️
dev/src/serializer.ts 98.77% <0.00%> (-0.25%) ⬇️
dev/src/validate.ts 98.05% <0.00%> (-0.25%) ⬇️
... and 7 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 32d346b...b9ed0b7. Read the comment docs.

@schmidt-sebastian schmidt-sebastian added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Mar 10, 2020
Copy link
Contributor

@schmidt-sebastian schmidt-sebastian left a comment

Choose a reason for hiding this comment

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

Thanks! Please mark this a feat! to make sure this ships with a major version bump.

This basically LGTM. Please address my one comment. I will approve once we are ready to drop Node 10.

dev/src/document.ts Outdated Show resolved Hide resolved
@thebrianchen thebrianchen changed the title feat: use QueryDocumentSnapshot in FirestoreDataConverter feat!: use QueryDocumentSnapshot in FirestoreDataConverter Mar 11, 2020
@schmidt-sebastian schmidt-sebastian changed the base branch from master to node10 April 9, 2020 20:41
@schmidt-sebastian
Copy link
Contributor

Merging into feature branch.

@schmidt-sebastian schmidt-sebastian merged commit 04bf403 into node10 Apr 9, 2020
schmidt-sebastian added a commit that referenced this pull request Jun 24, 2020
* fix!: mark v1beta1 client as deprecated (#937)

* feat!: use QueryDocumentSnapshot in FirestoreDataConverter (#965)

* deps: update to gts 2.x (#1013)

* chore!: update settings for Node 10 (#1019)

* deps: drop through2 (#1014)

* feat: support BigInt (#1016)

* fix: make update.sh work on Linux (#1043)

* fix: only use BigInt in BigInt system test (#1044)

* fix: make pbjs compile admin proto again (#1045)

* Add BulkWriter (#1055)

* docs: Add documentation for FirestoreDataConverter (#1059)

* chore: enforce return types (#1065)

* fix: add generic to Firestore.getAll() (#1066)

* chore: remove internal WriteOp (#1067)

* chore: add linter checks for it|describe.only (#1068)

* fix: handle terminate in BulkWriter (#1070)

* chore: run template copying last in synthtool (#1071)

* feat: Firestore Bundles implementation (#1078)

* feat: add support for set() with SetOptions when using FirestoreDataConverter (#1087)

* feat: Add totalDocuments and totalBytes to bundle metadata. (#1085)

* feat: Add totalDocuments and totalBytes to bundle metadata.

* fix: Better comment

* fix: Better testing.

* fix: Improve metadata testing.

* fix: incomplete expect in rate-limiter test (#1092)

* Remove BatchWrite proto, fix conformance tests

* chore: use public API types internally (#1100)

* feat: add Partition and BatchWrite protos (#1110)

* fix: remove GCF transaction fallback (#1112)

* fix: add BulkWriter integration tests, java backport changes, delete fix (#1117)

* chore: merge master (#1218)

* chore: add eslint check for console.log statements (#1229)

* fix: another attempt at fixing the flaky BulkWriter test (#1228)

* Fix comment

* Renames

* Test fix

* Fix unit tests

Co-authored-by: Brian Chen <chenbrian@google.com>
Co-authored-by: wu-hui <53845758+wu-hui@users.noreply.github.com>
@release-please release-please bot mentioned this pull request Jun 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: firestore Issues related to the googleapis/nodejs-firestore API. cla: yes This human has signed the Contributor License Agreement. do not merge Indicates a pull request not ready for merge, due to either quality or timing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FirestoreDataConverter.fromFirestore should use DocumentSnapshot instead of DocumentData
3 participants