Skip to content

[TM] Add spec for BlobModule#24909

Closed
ericlewis wants to merge 3 commits intofacebook:masterfrom
ericlewis:spec-blobmodule
Closed

[TM] Add spec for BlobModule#24909
ericlewis wants to merge 3 commits intofacebook:masterfrom
ericlewis:spec-blobmodule

Conversation

@ericlewis
Copy link
Copy Markdown
Contributor

Summary

Part of #24875. Not sure that the id’s types are necessarily correct here…

Changelog

[General] [Added] - Add TM spec for BlobModule

Test Plan

Flow passes

Not sure that the id’s types are necessarily correct here…
@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Contributor A React Native contributor. labels May 16, 2019
@react-native-bot react-native-bot added the Type: Enhancement A new feature or enhancement of an existing feature. label May 16, 2019
@ericlewis ericlewis added the Flow label May 16, 2019
Copy link
Copy Markdown
Contributor

@RSNara RSNara left a comment

Choose a reason for hiding this comment

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

Looks good, but I think there's a mistake in the flow-typing.

Comment thread Libraries/Blob/NativeBlobModule.js Outdated
@ericlewis ericlewis requested a review from RSNara May 21, 2019 14:25
Copy link
Copy Markdown

@analysis-bot analysis-bot left a comment

Choose a reason for hiding this comment

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

Code analysis results:

  • flow found some issues.

@@ -92,7 +92,7 @@ class BlobManager {
}
}, 0);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cannot call NativeBlobModule.createFromParts because property createFromParts is missing in null or undefined [1].

@@ -131,38 +131,38 @@ class BlobManager {
if (BlobRegistry.has(blobId)) {
return;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cannot call NativeBlobModule.release because property release is missing in null or undefined [1].

/**
* Inject the blob content handler in the networking module to support blob
* requests and responses.
*/
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cannot call NativeBlobModule.addNetworkingHandler because property addNetworkingHandler is missing in null or undefined [1].

/**
* Indicate the websocket should return a blob for incoming binary
* messages.
*/
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cannot call NativeBlobModule.addWebSocketHandler because property addWebSocketHandler is missing in null or undefined [1].

/**
* Indicate the websocket should no longer return a blob for incoming
* binary messages.
*/
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cannot call NativeBlobModule.removeWebSocketHandler because property removeWebSocketHandler is missing in null or undefined [1].


/**
* Send a blob message to a websocket.
*/
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cannot call NativeBlobModule.sendOverSocket because property sendOverSocket is missing in null or undefined [1].

Copy link
Copy Markdown
Contributor

@RSNara RSNara left a comment

Choose a reason for hiding this comment

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

Awesome! Thanks for the fixes.

Copy link
Copy Markdown
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@RSNara has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@ericlewis
Copy link
Copy Markdown
Contributor Author

@RSNara flow is quite angry, i am attempting to fix

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @ericlewis in 342c81d.

When will my fix make it into a release? | Upcoming Releases

@react-native-bot react-native-bot added the Merged This PR has been merged. label May 22, 2019
M-i-k-e-l pushed a commit to M-i-k-e-l/react-native that referenced this pull request Mar 10, 2020
Summary:
Part of facebook#24875. Not sure that the id’s types are necessarily correct here…

## Changelog

[General] [Added] - Add TM spec for BlobModule
Pull Request resolved: facebook#24909

Reviewed By: fkgozali

Differential Revision: D15433753

Pulled By: RSNara

fbshipit-source-id: 68193d1a82fc7c66d6cc7ba4f22a0d3786987599
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Contributor A React Native contributor. Flow Merged This PR has been merged. Native Module Type: Enhancement A new feature or enhancement of an existing feature.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants