Skip to content

Mutable Documents #7722

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 8 commits into from
Mar 17, 2021
Merged

Conversation

schmidt-sebastian
Copy link
Contributor

@schmidt-sebastian schmidt-sebastian commented Mar 15, 2021

@google-oss-bot
Copy link

1 Warning
⚠️ Did you forget to add a changelog entry? (Add #no-changelog to the PR description to silence this warning.)

Generated by 🚫 Danger

@google-oss-bot
Copy link

google-oss-bot commented Mar 15, 2021

Coverage Report

Affected SDKs

  • FirebaseFirestore-iOS-FirebaseFirestore.framework

    SDK overall coverage changed from 88.65% (5f6feba) to 88.32% (df11c49) by -0.33%.

    Filename Base (5f6feba) Head (df11c49) Diff
    exception.cc 29.27% 65.85% +36.59%
    grpc_nanopb.cc 100.00% 95.45% -4.55%
    leveldb_key.cc 97.60% 96.48% -1.12%
    mutable_document.cc ? 0.00% ?
    ordered_code.cc 93.24% 92.68% -0.56%
    server_timestamp_util.cc ? 84.85% ?
    value_util.cc ? 89.16% ?
    watch_stream.cc 96.15% 92.31% -3.85%
    write_stream.cc 95.65% 93.48% -2.17%

Test Logs

Copy link
Contributor

@wu-hui wu-hui left a comment

Choose a reason for hiding this comment

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

We should also have some tests for this. Simply create documents, perform mutations and check they are in expected state should be good enough.

@wu-hui wu-hui assigned schmidt-sebastian and unassigned wu-hui Mar 17, 2021
Copy link
Contributor Author

@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.

Thanks for the review!

I didn't add tests since this will be exhaustively tested by the LocalStoreTests once I plug this into the rest of the system. The existing document types follow the same testing strategy :)

Copy link
Contributor

@wu-hui wu-hui left a comment

Choose a reason for hiding this comment

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

LGTM!

@wu-hui wu-hui assigned schmidt-sebastian and unassigned wu-hui Mar 17, 2021
@schmidt-sebastian schmidt-sebastian merged commit 07372a7 into mrschmidt/mutabledocuments Mar 17, 2021
@schmidt-sebastian schmidt-sebastian deleted the mrschmidt/document branch March 17, 2021 22:18
@firebase firebase locked and limited conversation to collaborators Apr 17, 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.

3 participants