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

feat(firestore): Add support for PartitionQuery #4206

Merged
merged 42 commits into from Jun 25, 2021

Conversation

crwilcox
Copy link
Contributor

@crwilcox crwilcox commented Jun 2, 2021

Other implementations of this:
Java
Merged googleapis/java-firestore@3996548
googleapis/java-firestore#202 (“add support for QueryPartition API”)
googleapis/java-firestore#418 (“verify page count before invoking QueryPartition RPC”)
googleapis/java-firestore#417 (“add implicit ordering for startAt(DocumentReference) calls”)
Released in java-firestore v2.0.0

Node.js
googleapis/nodejs-firestore#1320 (“add support for QueryPartition API”)
googleapis/nodejs-firestore#1328 (“add implicit ordering for startAt(DocumentReference) calls”)
Merged. https://github.com/googleapis/nodejs-firestore/pull/1110/files#diff-487a284b3e5f6cec3fe8dc89ea74120d

@product-auto-label product-auto-label bot added the api: firestore Issues related to the Firestore API. label Jun 2, 2021
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Jun 2, 2021
@crwilcox crwilcox marked this pull request as ready for review June 3, 2021 17:36
@crwilcox crwilcox requested review from tritone and a team as code owners June 3, 2021 17:36
Copy link
Contributor

@tritone tritone left a comment

Choose a reason for hiding this comment

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

Code generally looks fine, would like some more docs to understand better what this is for!

firestore/collgroupref.go Outdated Show resolved Hide resolved
firestore/collgroupref.go Outdated Show resolved Hide resolved
firestore/integration_test.go Outdated Show resolved Hide resolved
firestore/collgroupref.go Outdated Show resolved Hide resolved
firestore/collgroupref.go Outdated Show resolved Hide resolved
@tritone
Copy link
Contributor

tritone commented Jun 9, 2021

Also, just realized there was #3476 previously (integration test there is interesting).

Copy link
Contributor

@tritone tritone left a comment

Choose a reason for hiding this comment

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

Looks good, a couple more small comments. I agree that this surface seems better.

firestore/collgroupref.go Outdated Show resolved Hide resolved
firestore/collgroupref.go Outdated Show resolved Hide resolved
firestore/collgroupref.go Outdated Show resolved Hide resolved
// TODO: add a fromProto to compliment toProto for query. With that serialization is
// very possible. user could also do json.Marshal(toProto())

// GetPartitionedQueries returns a slice of Query objects, each containing a
Copy link
Contributor

Choose a reason for hiding this comment

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

Since all the other types/methods are now non-exported, this is the only thing that will go into the public package docs. Is there more to add here? Is there a link to the docs on cloud site for this feature?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

At the current point we don't have any docs really, other than rest docs, which I am not sure will bring clarity: https://firebase.google.com/docs/firestore/reference/rest/v1beta1/projects.databases.documents/partitionQuery

firestore/integration_test.go Outdated Show resolved Hide resolved
@crwilcox crwilcox merged commit b34783a into googleapis:master Jun 25, 2021
@crwilcox crwilcox deleted the partition-query branch October 29, 2021 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: firestore Issues related to the Firestore API. 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