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

fix: Add BulkWriter #1051

Merged
merged 12 commits into from
Apr 28, 2020
Merged

fix: Add BulkWriter #1051

merged 12 commits into from
Apr 28, 2020

Conversation

thebrianchen
Copy link

Keeping fields private until protos are publicly released.

@thebrianchen thebrianchen self-assigned this Apr 28, 2020
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Apr 28, 2020
@codecov
Copy link

codecov bot commented Apr 28, 2020

Codecov Report

Merging #1051 into master will decrease coverage by 0.09%.
The diff coverage is 98.75%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1051      +/-   ##
==========================================
- Coverage   97.58%   97.48%   -0.10%     
==========================================
  Files          25       27       +2     
  Lines       16015    16860     +845     
  Branches     1295     1261      -34     
==========================================
+ Hits        15628    16436     +808     
- Misses        384      420      +36     
- Partials        3        4       +1     
Impacted Files Coverage Δ
dev/src/index.ts 98.59% <97.56%> (-0.10%) ⬇️
dev/src/bulk-writer.ts 98.47% <98.47%> (ø)
dev/src/write-batch.ts 99.89% <98.82%> (-0.11%) ⬇️
dev/src/backoff.ts 100.00% <100.00%> (ø)
dev/src/document.ts 98.62% <100.00%> (-0.32%) ⬇️
dev/src/rate-limiter.ts 100.00% <100.00%> (ø)
dev/src/types.ts 100.00% <100.00%> (ø)
dev/src/order.ts 98.09% <0.00%> (-1.15%) ⬇️
dev/src/field-value.ts 97.00% <0.00%> (-1.13%) ⬇️
dev/src/pool.ts 97.75% <0.00%> (-0.90%) ⬇️
... and 9 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 b4a80ed...1de3ebe. Read the comment docs.

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.

This came together nicely. I have three small requests before merging:

  • Address the one comment nit in this PR.
  • Verify that the output of yarn docs doesn't contain any snippets that should be hidden. It might be a good idea to do a general scrub of the documentation that yarn docs writes to ./docs.
  • Change the PR title to make sure this is not a minor version bump and to not overpromise in our release notes. We were not actually able to add a new feature - just a bunch of amazing looking code :)

* .then(res => {
* console.log(`Deleted document at ${res.writeTime}`);
* });
* await bulkWriter.flush().then(() => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Make this bulkWriter.close() and remove line 678.

Copy link
Author

Choose a reason for hiding this comment

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

done.

@thebrianchen thebrianchen changed the title feat: Add BulkWriter fix: Add BulkWriter Apr 28, 2020
@thebrianchen
Copy link
Author

Regenerated the docs and verified that no globals or classes leaked. Thanks so much for helping shepherd this through Sebastian!

@thebrianchen thebrianchen merged commit 8c52d47 into master Apr 28, 2020
@thebrianchen thebrianchen deleted the bc/bulk-master branch April 28, 2020 23:54
thebrianchen pushed a commit that referenced this pull request Apr 28, 2020
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.

None yet

3 participants