Skip to content

Iterate forward on local serializer mutation batch decoding #2375

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
Jan 29, 2021

Conversation

thebrianchen
Copy link

Porting from iOS.

@thebrianchen thebrianchen self-assigned this Jan 29, 2021
@googlebot googlebot added the cla: yes Override cla label Jan 29, 2021
@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jan 29, 2021

Coverage Report

Affected SDKs

  • firebase-firestore

    SDK overall coverage changed from 47.19% (a89e504) to 47.18% (a70acba3) by -0.01%.

    Filename Base (a89e504) Head (a70acba3) Diff
    AsyncQueue.java 77.89% 76.88% -1.01%
    LocalSerializer.java 97.30% 97.32% +0.02%

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 (a70acba3) is created by Prow via merging commits: a89e504 2c47eb8.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jan 29, 2021

Binary Size Report

Affected SDKs

  • firebase-firestore

    Type Base (a89e504) Head (a70acba3) Diff
    aar 1.06 MB 1.06 MB -5 B (-0.0%)
    apk (release) 3.18 MB 3.18 MB +220 B (+0.0%)

Test Logs

Notes

Head commit (a70acba3) is created by Prow via merging commits: a89e504 2c47eb8.

@@ -202,18 +202,6 @@ public void testTransformAndTransformThrowError() {
assertThrows(AssertionError.class, () -> serializer.decodeMutationBatch(batchProto));
}

// TODO(b/174608374): Remove these tests once we perform a schema migration.
@Test
public void testOnlyTransformThrowsError() {
Copy link
Contributor

Choose a reason for hiding this comment

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

FWIW You could still assert that the first mutation is not a transform. Optional.

Copy link
Author

Choose a reason for hiding this comment

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

Eh, I'll pass on this one since I don't want to back-back-backport it to iOS again.

@thebrianchen thebrianchen merged commit 7055d2a into master Jan 29, 2021
@thebrianchen thebrianchen deleted the bc/ut-serializer branch January 29, 2021 16:26
@firebase firebase locked and limited conversation to collaborators Mar 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants