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

Story published with empty slide frame #407

Open
megsfulton opened this issue Jun 30, 2020 · 5 comments
Open

Story published with empty slide frame #407

megsfulton opened this issue Jun 30, 2020 · 5 comments
Assignees
Labels
Important Jurrasic ninja site Size: M About a day [Type] Blocking Bug The app doesn't stop, but the user can't complete a journey or use a feature.

Comments

@megsfulton
Copy link

Steps to reproduce:

What I expected:
If an upload for an image failed, it would trigger the error handling flow.

@megsfulton
Copy link
Author

Tried uploading the media that failed and that didn't resolve the issue on the web viewing side. But noticed that the media library has two of the same image now so maybe it didn't fail in the first place?

First image:
https://particular-wildcat.jurassic.ninja/wp-content/uploads/2020/06/wp-1593541442772896299511300200912.jpg

Second image (uploaded on retry):
https://particular-wildcat.jurassic.ninja/wp-content/uploads/2020/06/wp-1593541442772896299511300200912-1.jpg

@mzorz
Copy link
Contributor

mzorz commented Jun 30, 2020

that’s interesting! discussed elsewhere but to complete here: the error handling process we introduced for Stories will only come up when saving locally fails, but once media is all ready to be uploaded and starts its way to the server, a different error handling course (the one belonging to current WPAndroid behavior) should come into picture.

We'll look into this for sure 👍

@megsfulton
Copy link
Author

megsfulton commented Jun 30, 2020

In the second story I created using the alpha test site the 5th slide failed and I went through the error handling flow. After going through the error handling the image uploaded fine.

I don't know if this is related but figured it's worth noting since this also happened on the 5th slide.

Screenshot_20200630-120256

@mzorz
Copy link
Contributor

mzorz commented Jul 1, 2020

A technical note / follow up on this for myself, that might be worth exploring:

  • the Gutenberg integration in WPANdroid has a package named mediauploadcompletionprocessors that holds several classes extending from BlockProcessor that might be worth exploring and implementing as well. Processors are called in replaceMediaFileWithUrlInGutenbergPost in PostUtils, which in turn is used in the MediaUploadReadyProcessor interface implementattion in replaceMediaFileWithUrlInPost() method. I'm not entirely sure if this is related to the issue, but it is part of the process of replacing local paths with final urls within the Post content so, it might be worth taking a look.

@mzorz
Copy link
Contributor

mzorz commented Aug 24, 2020

note on this: given I don't see a strong relationship between the reported issue and the task described in #407 (comment) anymore (tl;dr after deeper checking realized BlockProcessor set of classes simply replaces strings just as we do so, I don't see how refactoring the code there would "fix" the reported issue). I'm leaning towards probably this issue being resolved by other fixes we did recently so, moved from in-progress back to the ToDo list, also thinking of closing it until reported again when we can get more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Important Jurrasic ninja site Size: M About a day [Type] Blocking Bug The app doesn't stop, but the user can't complete a journey or use a feature.
Projects
None yet
Development

No branches or pull requests

2 participants