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

deps: update to gts 2.x #1013

Merged
merged 30 commits into from
Apr 14, 2020
Merged

deps: update to gts 2.x #1013

merged 30 commits into from
Apr 14, 2020

Conversation

schmidt-sebastian
Copy link
Contributor

@schmidt-sebastian schmidt-sebastian commented Apr 13, 2020

  • Updates gts to 2.0
  • Removes custom docChanges() error message that discourages API use from the 0.x API (also just removed from Web)
  • Removes test/typescript.ts, an "API test" that never caught any issues and was never an actual test
  • Removes all auto-generated tests rather than fixing their types. The tests should be regenerated before merging the feature branch.
  • Replaces deep-equal with fast-deep-equal, which has published types and fewer dependencies

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Apr 13, 2020
@schmidt-sebastian schmidt-sebastian changed the title Mrschmidt/updatedeps deps: update to gts 2.0 Apr 13, 2020
@schmidt-sebastian schmidt-sebastian changed the title deps: update to gts 2.0 deps: update to gts 2.x Apr 13, 2020
@@ -41,17 +41,17 @@
"lint": "gts check",
"clean": "gts clean",
"compile": "tsc -p .",
"postcompile": "node scripts/init-directories.js && cp -r dev/protos build && cp dev/src/v1beta1/*.json build/src/v1beta1/ && cp dev/src/v1/*.json build/src/v1/ && cp dev/conformance/test-definition.proto build/conformance && cp dev/conformance/conformance-tests/*.json build/conformance/conformance-tests",
"postcompile": "mv build/dev/* build/ && rm -r build/dev && node scripts/init-directories.js && cp -r dev/protos build && cp dev/src/v1beta1/*.json build/src/v1beta1/ && cp dev/src/v1/*.json build/src/v1/ && cp dev/conformance/test-definition.proto build/conformance && cp dev/conformance/conformance-tests/*.json build/conformance/conformance-tests",
Copy link
Contributor Author

@schmidt-sebastian schmidt-sebastian Apr 13, 2020

Choose a reason for hiding this comment

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

For some reason, the new settings now put the source files under build/dev/src instead of build/src. This mitigates this, but there might be better ways.

@codecov
Copy link

codecov bot commented Apr 13, 2020

Codecov Report

Merging #1013 into node10 will decrease coverage by 97.46%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           node10   #1013       +/-   ##
==========================================
- Coverage   97.46%   0.00%   -97.47%     
==========================================
  Files          25      25               
  Lines       16038   16044        +6     
  Branches     1220       0     -1220     
==========================================
- Hits        15631       0    -15631     
- Misses        404   16044    +15640     
+ Partials        3       0        -3     
Impacted Files Coverage Δ
dev/src/document.ts 0.00% <0.00%> (-98.68%) ⬇️
dev/src/field-value.ts 0.00% <0.00%> (-98.13%) ⬇️
dev/src/index.ts 0.00% <0.00%> (-98.63%) ⬇️
dev/src/path.ts 0.00% <0.00%> (-98.56%) ⬇️
dev/src/pool.ts 0.00% <0.00%> (-97.76%) ⬇️
dev/src/reference.ts 0.00% <0.00%> (-99.81%) ⬇️
dev/src/serializer.ts 0.00% <0.00%> (-98.78%) ⬇️
dev/src/transaction.ts 0.00% <0.00%> (-96.48%) ⬇️
dev/src/types.ts 0.00% <0.00%> (-99.69%) ⬇️
dev/src/v1/firestore_admin_client.ts 0.00% <0.00%> (-91.13%) ⬇️
... and 29 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 04bf403...3970cd5. Read the comment docs.

@JustinBeckwith
Copy link
Contributor

@schmidt-sebastian you are probably going to need to remove 8 from .github/workflows/ci.yaml. It's happening elsewhere in an autosynth PR, but they'd both need to land together, or this one weird trick should help kick CI. GitHub actions bails by default when the first test suite fails.

@schmidt-sebastian
Copy link
Contributor Author

@JustinBeckwith Thanks for your review. I was planning to run synthtool after merging this PR.

@schmidt-sebastian schmidt-sebastian merged commit 5fbc6e6 into node10 Apr 14, 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants