Skip to content

Async media: broken reattachment identification #6654

@mzorz

Description

@mzorz

Expected behavior

You should be able to insert a video or image in a Post and exit the editor or come back into it as many times as you want, and the Post will end up being updated remotely (as long as connectivity exists) each time.

Actual behavior

When uploading a video, exiting, re-attaching, then waiting to finish:
once it finishes, exiting the editor shows a [video] tag in the Post list, and entering the editor again shows the failed/retry overlay on the video.

For images, it seems to be working but when you come back again and tap on the image (expecting to see the image settings screen), it RETRIES THE UPLOAD, even when the failed/retry overlay wasn’t showing there.

Steps to reproduce the behavior

FOR VIDEO:

  1. start a new draft
  2. insert a video
  3. while the video is uploading, exit the editor
  4. enter the editor again
  5. confirm the progress gets re-attached
  6. wait until the video is finished uploading
  7. tap on the video, confirm the player is executed
  8. exit the editor
  9. enter the editor for that post again
  10. observe it's shown with the failed/retry overlay

FOR IMAGES:

  1. start a new draft
  2. insert an image
  3. while the image is uploading, exit the editor
  4. enter the editor again
  5. confirm the progress gets re-attached
  6. wait until the image is finished uploading
  7. tap on the image, confirm the image settings screen is displayed
  8. exit the editor
  9. enter the editor for that post again
  10. tap on the image, observe the image settings screen is not displayed this time, but rather the image starts to upload again, as if it was a failed image.
Tested on [Google Pixel], Android [8.0]

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions