Skip to content

Use ByteString in model types #2676

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
Feb 25, 2020

Conversation

schmidt-sebastian
Copy link
Contributor

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

This is a simplification that removes the api Blob types from our FieldValue API and exposed ByteString.compareTo() which I would like to use in the FieldValue rewrite.

This PR is against the feature branch since it might break canonical IDs.

@@ -70,26 +65,6 @@ describe('Blob', () => {
expect(Blob.fromBase64String('') instanceof PublicBlob).to.equal(true);
});

it('compares correctly', () => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

FYI: The ordering is also tested in field_value.test.ts

@schmidt-sebastian
Copy link
Contributor Author

cc @thebrianchen

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

Is it worth porting the canonical ID tests over before submitting this?

@wilhuff wilhuff assigned schmidt-sebastian and unassigned wilhuff Feb 25, 2020
@schmidt-sebastian
Copy link
Contributor Author

The canonical tests will cover this type when it is ported, so we will have a test then: https://github.com/firebase/firebase-android-sdk/pull/1178/files#diff-439fbbe706d75bbdf003c18383525777R379

@schmidt-sebastian schmidt-sebastian merged commit 806f0a1 into mrschmidt/rewritefieldvalue Feb 25, 2020
@schmidt-sebastian schmidt-sebastian deleted the mrschmidt/apiblob branch February 28, 2020 23:03
@firebase firebase locked and limited conversation to collaborators Mar 27, 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.

2 participants