Skip to content

Use collection_path + document_id in overlay table #3178

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 1 commit into from
Nov 29, 2021

Conversation

wu-hui
Copy link
Contributor

@wu-hui wu-hui commented Nov 25, 2021

No description provided.

@google-cla google-cla bot added the cla: yes Override cla label Nov 25, 2021
@google-oss-bot
Copy link
Contributor

Coverage Report

Affected SDKs

  • firebase-firestore

    SDK overall coverage changed from 45.21% (a5f2f99) to 45.21% (cff15e99) by -0.00%.

    Filename Base (a5f2f99) Head (cff15e99) Diff
    SQLiteDocumentOverlayCache.java 91.11% 90.70% -0.41%

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 (cff15e99) is created by Prow via merging commits: a5f2f99 986c6b2.

@google-oss-bot
Copy link
Contributor

Binary Size Report

Affected SDKs

  • firebase-firestore

    Type Base (a5f2f99) Head (cff15e99) Diff
    aar 1.23 MB 1.23 MB -20 B (-0.0%)
    apk (release) 3.32 MB 3.33 MB +220 B (+0.0%)

Test Logs

Notes

Head commit (cff15e99) is created by Prow via merging commits: a5f2f99 986c6b2.

return db.query("SELECT overlay_mutation FROM document_overlays WHERE uid = ? AND path = ?")
.binding(uid, path)
String collectionPath = EncodedPath.encode(key.getPath().popLast());
String documentId = key.getPath().getLastSegment();
Copy link
Contributor

Choose a reason for hiding this comment

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

FYI I just added helpers in #3173

You can probably just copy the changed from DocumentKey and make them part of this PR as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I plan to do that in the next PR, the one to release overlay.

@wu-hui wu-hui merged commit eec5f31 into master Nov 29, 2021
@wu-hui wu-hui deleted the wuandy/OverlayReschema branch November 29, 2021 19:38
@firebase firebase locked and limited conversation to collaborators Dec 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes Override cla size/M
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants