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

fix: Fix limitToLast queries with cursors #1072

Merged
merged 3 commits into from
Oct 22, 2022
Merged

Conversation

dconeybe
Copy link
Contributor

This PR fixes a bug where adding startAt(), startAfter(), endAt(), or endBefore() to a limitToLast query would cause the result set to be either zero or one documents in size, regardless of the limit. The root cause was a bug in the inversion logic of these conditions when the query was sent over the wire.

Fixes #1068

@dconeybe dconeybe added the api: firestore Issues related to the googleapis/java-firestore API. label Oct 21, 2022
@dconeybe dconeybe self-assigned this Oct 21, 2022
@dconeybe dconeybe requested a review from a team as a code owner October 21, 2022 05:35
@dconeybe dconeybe added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 21, 2022
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 21, 2022
@dconeybe dconeybe added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 21, 2022
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 21, 2022
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 googleapis/java-firestore API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

LimitToLast with start and end cursors is not working as expected
3 participants