Skip to content

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

Merged
merged 17 commits into from
Feb 10, 2021

Conversation

jmwski
Copy link
Contributor

@jmwski jmwski commented Jan 29, 2021

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.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jan 29, 2021

Coverage Report

Affected SDKs

  • firebase-database

    SDK overall coverage changed from 50.36% (7d2b1a4) to 50.17% (c935c70a) by -0.18%.

    Filename Base (7d2b1a4) Head (c935c70a) Diff
    Query.java 46.07% 44.22% -1.85%
    Repo.java 10.35% 10.36% +0.01%
    SyncPoint.java 88.12% 88.79% +0.67%
    SyncTree.java 61.63% 57.24% -4.39%

Test Logs

Notes

HTML coverage reports can be produced locally with ./gradlew <product>:checkCoverage.
Report files are located at <product-build-dir>/reports/jacoco/.

Head commit (c935c70a) is created by Prow via merging commits: 7d2b1a4 79310e6.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jan 29, 2021

Binary Size Report

Affected SDKs

  • firebase-database

    Type Base (7d2b1a4) Head (c935c70a) Diff
    aar 492 kB 493 kB +1.40 kB (+0.3%)
    apk (release) 1.09 MB 1.09 MB +672 B (+0.1%)

Test Logs

Notes

Head commit (c935c70a) is created by Prow via merging commits: 7d2b1a4 79310e6.

? PushIdGenerator.successor(value)
: value,
PriorityUtilities.NullPriority())
: EmptyNode.Empty();
Copy link
Contributor

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.

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

@schmidt-sebastian schmidt-sebastian left a comment

Choose a reason for hiding this comment

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

Please update changelog.

@jmwski jmwski removed their assignment Feb 4, 2021
Copy link
Contributor

@schmidt-sebastian schmidt-sebastian left a comment

Choose a reason for hiding this comment

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

Still LGTM

@jmwski jmwski merged commit 0de237d into master Feb 10, 2021
@jmwski jmwski deleted the jw/orderbykeys-startafter branch February 10, 2021 17:13
@firebase firebase locked and limited conversation to collaborators Mar 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes Override cla size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants