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

feature: Adding CollectionGroup queries #578

Merged
merged 6 commits into from
Apr 26, 2019

Conversation

schmidt-sebastian
Copy link
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 changed the base branch from mrschmidt-projectid to master March 12, 2019 01:22
@codecov
Copy link

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

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
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
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
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
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