Skip to content

Prefer arrayValue when sorting FieldIndex #3435

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 3 commits into from
Feb 11, 2022

Conversation

schmidt-sebastian
Copy link
Contributor

The schema is index_id, uid, array_value, directional_value, document_key. Our internal order should match this.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Feb 10, 2022

Coverage Report 1

Affected Products

  • firebase-firestore

    Overall coverage changed from 45.60% (dde5de1) to 45.58% (26fbdd7) by -0.01%.

    FilenameBase (dde5de1)Merge (26fbdd7)Diff
    DeleteMutation.java95.00%90.00%-5.00%
    PatchMutation.java100.00%98.39%-1.61%
    SetMutation.java97.14%94.29%-2.86%
    Util.java67.13%67.63%+0.49%

Test Logs

Notes

  • Commit (26fbdd7) is created by Prow via merging PR base commit (dde5de1) and head commit (71832d3).
  • Run gradle <product>:checkCoverage to produce HTML coverage reports locally. After gradle commands finished, report files can be found under <product-build-dir>/reports/jacoco/.

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/rUTimNqrHV.html

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Feb 10, 2022

Size Report 1

Affected Products

  • firebase-firestore

    TypeBase (dde5de1)Merge (26fbdd7)Diff
    aar1.24 MB1.24 MB-439 B (-0.0%)
    apk (release)3.33 MB3.33 MB-1.24 kB (-0.0%)

Test Logs

Notes

  • Commit (26fbdd7) is created by Prow via merging PR base commit (dde5de1) and head commit (71832d3).

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/mpboxZG85r.html

if (cmp != 0) return cmp;

return nullSafeCompare(getArrayValue(), other.getArrayValue(), Util::compareByteArrays);
return compareByteArrays(getDirectionalValue(), other.getDirectionalValue());
Copy link
Contributor Author

Choose a reason for hiding this comment

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

ArrayValue is not nullable anymore

@wu-hui wu-hui assigned schmidt-sebastian and unassigned wu-hui Feb 11, 2022
@schmidt-sebastian schmidt-sebastian merged commit d9aa5b8 into master Feb 11, 2022
@schmidt-sebastian schmidt-sebastian deleted the mrschmidt/flipvalue branch February 11, 2022 16:52
@firebase firebase locked and limited conversation to collaborators Mar 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants