Skip to content

Make FieldValue a test-only class #1208

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 30 commits into from
Feb 6, 2020

Conversation

schmidt-sebastian
Copy link
Contributor

@schmidt-sebastian schmidt-sebastian commented Feb 6, 2020

With all the prior PRs done, we now no longer need FieldValue. I moved it to a testHelpers for now to keep the diff smaller. The next step would be to remove it altogether and to return Value types from wrap.

@googlebot googlebot added the cla: yes Override cla label Feb 6, 2020
@schmidt-sebastian schmidt-sebastian changed the base branch from master to mrschmidt/droprest February 6, 2020 00:45
@schmidt-sebastian schmidt-sebastian changed the title Mrschmidt/dropall Make FieldValue a test-only class Feb 6, 2020
@codecov
Copy link

codecov bot commented Feb 6, 2020

Codecov Report

❗ No coverage uploaded for pull request base (mrschmidt/rewritefieldvalue@666458a). Click here to learn what that means.
The diff coverage is n/a.

Flag Coverage Δ Complexity Δ
#FirebaseFirestore 61.92% <0%> (?) 2225% <0%> (?)
#FirebaseFirestore_Ktx 41.17% <0%> (?) 0% <0%> (?)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 666458a...739e646. Read the comment docs.

Copy link
Contributor

@wilhuff wilhuff left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -37,7 +37,7 @@
* <li>They sort after all TimestampValues. With respect to other ServerTimestampValues, they sort
* by their localWriteTime.
*/
public final class ServerTimestampValue extends FieldValue {
public final class ServerTimestampValue {
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm surprised this works. Is the only usage of this in UserDataWriter?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The class is only used in UserDataWriter and ProtoValues. isServerTimestamp() is used in a couple other places.

@wilhuff wilhuff assigned schmidt-sebastian and unassigned wilhuff Feb 6, 2020
@schmidt-sebastian schmidt-sebastian changed the base branch from mrschmidt/droprest to mrschmidt/rewritefieldvalue February 6, 2020 22:10
@schmidt-sebastian schmidt-sebastian merged commit 7b0925f into mrschmidt/rewritefieldvalue Feb 6, 2020
@google-oss-bot
Copy link
Contributor

@schmidt-sebastian: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
check-changed 739e646 link /test check-changed

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@schmidt-sebastian schmidt-sebastian deleted the mrschmidt/dropall branch February 7, 2020 00:22
@firebase firebase locked and limited conversation to collaborators Mar 8, 2020
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