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

feature: Adding CollectionGroup queries#578

Merged
schmidt-sebastian merged 6 commits intomasterfrom
mrschmidt-collectiongroup
Apr 26, 2019
Merged

feature: Adding CollectionGroup queries#578
schmidt-sebastian merged 6 commits intomasterfrom
mrschmidt-collectiongroup

Conversation

@schmidt-sebastian
Copy link
Copy Markdown
Contributor

CollectionGroup queries add support for queries to Firestore that query documents by collection ID rather than by collection path. With this feature, users can now query for documents in collections that share a name, no matter where these collection are located.

This the Node port of googleapis/google-cloud-java#4652. The integration tests are ported from firebase/firebase-js-sdk#1440

Note: This PR is blocked on a backend release.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Mar 11, 2019
@schmidt-sebastian schmidt-sebastian changed the title Adding CollectionGroup queries feature: Adding CollectionGroup queries (DO NOT MERGE) Mar 11, 2019
@schmidt-sebastian schmidt-sebastian added status: blocked Resolving the issue is dependent on other work. do not merge Indicates a pull request not ready for merge, due to either quality or timing. labels Mar 11, 2019
@schmidt-sebastian schmidt-sebastian force-pushed the mrschmidt-collectiongroup branch from 4d4ff12 to 9fae4c7 Compare March 11, 2019 07:51
@schmidt-sebastian schmidt-sebastian force-pushed the mrschmidt-collectiongroup branch from 9fae4c7 to b2d9fb2 Compare March 11, 2019 07:53
@schmidt-sebastian schmidt-sebastian changed the base branch from mrschmidt-projectid to master March 12, 2019 01:22
@schmidt-sebastian schmidt-sebastian force-pushed the mrschmidt-collectiongroup branch from b2d9fb2 to 9498764 Compare March 12, 2019 02:15
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 12, 2019

Codecov Report

Merging #578 into master will decrease coverage by 0.06%.
The diff coverage is 96.49%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #578      +/-   ##
==========================================
- Coverage   95.73%   95.66%   -0.07%     
==========================================
  Files          24       24              
  Lines        1969     1984      +15     
  Branches      167      167              
==========================================
+ Hits         1885     1898      +13     
- Misses         63       64       +1     
- Partials       21       22       +1
Impacted Files Coverage Δ
dev/src/index.ts 96.1% <100%> (+0.03%) ⬆️
dev/src/reference.ts 99.12% <96.29%> (-0.58%) ⬇️

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 114de25...9498764. Read the comment docs.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 12, 2019

Codecov Report

Merging #578 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##           master    #578   +/-   ##
======================================
  Coverage    55.1%   55.1%           
======================================
  Files           5       5           
  Lines         274     274           
======================================
  Hits          151     151           
  Misses        123     123

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 f3ddcdf...b7fbba4. Read the comment docs.

readonly parentPath: ResourcePath, readonly collectionId: string,
readonly allDescendants: boolean, readonly fieldFilters: FieldFilter[],
readonly fieldOrders: FieldOrder[], readonly startAt?: QueryCursor,
readonly endAt?: QueryCursor, readonly limit?: number,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It looks like startAfter and endBefore were omitted, what is the reason? Looks like they were unused previously?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is actually meant to mimic the proto, where startAfter and endBefore are just different settings in the QueryCurso (startAt sets before to true, whereas startAfter sets it to false).

@var-const
Copy link
Copy Markdown
Contributor

I'm really sorry, I somehow managed to miss this PR entirely. I usually respond no later than the next day on code reviews; feel free to ping me if I don't.

@schmidt-sebastian schmidt-sebastian changed the title feature: Adding CollectionGroup queries (DO NOT MERGE) feature: Adding CollectionGroup queries Apr 26, 2019
@schmidt-sebastian schmidt-sebastian removed do not merge Indicates a pull request not ready for merge, due to either quality or timing. status: blocked Resolving the issue is dependent on other work. labels Apr 26, 2019
@schmidt-sebastian schmidt-sebastian merged commit 9174d76 into master Apr 26, 2019
@schmidt-sebastian schmidt-sebastian deleted the mrschmidt-collectiongroup branch May 17, 2019 22:56
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.

5 participants