-
Notifications
You must be signed in to change notification settings - Fork 624
Fix startAfter/endBefore for orderByKeys queries #2376
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
Conversation
Coverage ReportAffected SDKs
Test Logs
NotesHTML coverage reports can be produced locally with Head commit (c935c70a) is created by Prow via merging commits: 7d2b1a4 79310e6. |
Binary Size ReportAffected SDKs
Test Logs
NotesHead commit (c935c70a) is created by Prow via merging commits: 7d2b1a4 79310e6. |
? PushIdGenerator.successor(value) | ||
: value, | ||
PriorityUtilities.NullPriority()) | ||
: EmptyNode.Empty(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we rewrite this to match the style above? It's a bit hard to parse with two nested conditionals.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also - do we not need the validation from https://github.com/firebase/firebase-ios-sdk/pull/7403/files#diff-fa09d2f832ea9e4ec0b8ca482585897a8706c7b6c2a0218250e08ed78c7c3c9aR205 here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I commented on that PR, but this case is covered in validateQueryEndpoints
:
firebase-database/src/main/java/com/google/firebase/database/Query.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update changelog.
firebase-database/src/main/java/com/google/firebase/database/Query.java
Outdated
Show resolved
Hide resolved
firebase-database/src/main/java/com/google/firebase/database/Query.java
Outdated
Show resolved
Hide resolved
…uery.java Co-authored-by: Sebastian Schmidt <[email protected]>
…uery.java Co-authored-by: Sebastian Schmidt <[email protected]>
firebase-database/src/androidTest/java/com/google/firebase/database/QueryTest.java
Outdated
Show resolved
Hide resolved
firebase-database/src/androidTest/java/com/google/firebase/database/QueryTest.java
Show resolved
Hide resolved
firebase-database/src/main/java/com/google/firebase/database/core/Repo.java
Outdated
Show resolved
Hide resolved
firebase-database/src/main/java/com/google/firebase/database/core/SyncPoint.java
Outdated
Show resolved
Hide resolved
firebase-database/src/main/java/com/google/firebase/database/core/SyncTree.java
Outdated
Show resolved
Hide resolved
firebase-database/src/main/java/com/google/firebase/database/core/SyncTree.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still LGTM
We should not be passing a fallback key to startAfter if we're querying on a key index. The indexValue is the key in this case.