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

Rejecting 'null' and 'undefined' as arguments for CollectionRef.doc() #32

Merged
merged 2 commits into from
Oct 11, 2017

Conversation

schmidt-sebastian
Copy link
Contributor

@schmidt-sebastian schmidt-sebastian commented Oct 6, 2017

This is for Google-internal bug b/67419579:

[Node] .doc(undefined).set() does an add
We should catch "undefined" being passed and say "hey don't do that" not do an add

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 6, 2017
@codecov-io
Copy link

codecov-io commented Oct 6, 2017

Codecov Report

Merging #32 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #32   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          10     10           
  Lines        1397   1397           
=====================================
  Hits         1397   1397
Impacted Files Coverage Δ
src/reference.js 100% <100%> (ø) ⬆️

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 522dba1...5429325. Read the comment docs.

Copy link
Contributor

@mikelehen mikelehen left a comment

Choose a reason for hiding this comment

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

Awesome, thanks!

@schmidt-sebastian
Copy link
Contributor Author

@lukesneeringer @stephenplusplus Added you for final Approval. Thanks.

@stephenplusplus
Copy link
Contributor

LGTM.

Side-question; can you paste the contents of the internal issue, or at least provide more context for what the bug was?

@schmidt-sebastian
Copy link
Contributor Author

Side-question; can you paste the contents of the internal issue, or at least provide more context for what the bug was?

Updated the description.

@schmidt-sebastian schmidt-sebastian merged commit 0f35bc8 into master Oct 11, 2017
@schmidt-sebastian schmidt-sebastian deleted the mrschmidt-undefined branch January 29, 2018 17:17
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.

5 participants