Skip to content
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

[Mobile]Fix video upload #16331

Merged
merged 11 commits into from
Jul 9, 2019
Merged

[Mobile]Fix video upload #16331

merged 11 commits into from
Jul 9, 2019

Conversation

pinarol
Copy link
Contributor

@pinarol pinarol commented Jun 27, 2019

Description

Fixes wordpress-mobile/gutenberg-mobile#1173

gutenberg-mobile PR: wordpress-mobile/gutenberg-mobile#1182

How has this been tested?

Tested with gutenberg-mobile PR

Screenshots

Types of changes

  • We are removing setting of attributtes.url for local urls

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows the accessibility standards.
  • My code has proper inline documentation.
  • I've included developer documentation if appropriate.

@pinarol pinarol changed the title [Mobile]Try fix video upload [Mobile]Fix video upload Jun 27, 2019
@@ -64,7 +64,7 @@ class VideoEdit extends React.Component {

componentDidMount() {
const { attributes } = this.props;
if ( attributes.id && attributes.url && ! isURL( attributes.src ) ) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I remember like attributes.url was not becoming undefined when we close/open a post during the upload. but now it is, so it is now useless and preventing the block from calling mediaUploadSync. maybe sth changed in the infrastructure that is causing this but I think removing this altogether should be fine.

@pinarol pinarol requested a review from etoledom June 27, 2019 15:37
@pinarol pinarol self-assigned this Jun 27, 2019
@pinarol pinarol added the Mobile App - i.e. Android or iOS Native mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change) label Jun 27, 2019
@pinarol pinarol requested a review from marecar3 June 28, 2019 06:36
Copy link
Contributor

@marecar3 marecar3 left a comment

Choose a reason for hiding this comment

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

LGTM! 👍

etoledom added a commit that referenced this pull request Jul 8, 2019
Trying to triger Travis CI with the same changes and see if it still fails JS Unit Tests
@etoledom etoledom merged commit 7a03158 into master Jul 9, 2019
@etoledom etoledom deleted the rnmobile/fix-video-upload branch July 9, 2019 05:42
@youknowriad youknowriad added this to the Gutenberg 6.2 milestone Jul 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mobile App - i.e. Android or iOS Native mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Video Block doesn't continue upload after losing and restoring network connection
4 participants