Skip to content
This repository was archived by the owner on Mar 4, 2026. It is now read-only.

Rejecting empty document IDs#44

Merged
schmidt-sebastian merged 5 commits intomasterfrom
mrschmidt-emptyids
Oct 30, 2017
Merged

Rejecting empty document IDs#44
schmidt-sebastian merged 5 commits intomasterfrom
mrschmidt-emptyids

Conversation

@schmidt-sebastian
Copy link
Copy Markdown
Contributor

Without this check, it was possible to get a CollectionReference by calling DocumentReference.doc() (and vice-versa).

This addresses Google-internal issue https://b.corp.google.com/issues/64934977

Without this check, it was possible to get a CollectionReference by calling DocumentReference.doc() (and vice-versa).

This addresses Google-internal issue https://b.corp.google.com/issues/64934977
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 27, 2017
Comment thread test/collection.js Outdated
assert.throws(() => {
collectionRef.doc(false);
}, /Argument "documentPath" is not a valid ResourcePath. Path is not a string./);
}, /Argument "documentPath" is not a valid ResourcePath. Path must be a non-empty strin./);

This comment was marked as spam.

This comment was marked as spam.

@codecov
Copy link
Copy Markdown

codecov Bot commented Oct 27, 2017

Codecov Report

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

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #44   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          11     11           
  Lines        1470   1470           
=====================================
  Hits         1470   1470
Impacted Files Coverage Δ
src/path.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 d582b2f...d692b94. Read the comment docs.

@schmidt-sebastian schmidt-sebastian merged commit d85f33e into master Oct 30, 2017
@schmidt-sebastian schmidt-sebastian deleted the mrschmidt-emptyids branch January 30, 2018 16:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants