wordpress-mobile / wordpress-mobile/WordPress-iOS

Duplicate and grey images if uploading images to Media Library with bad network

Open
#15,470 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

[Pri] Medium [Type] Bug Media
Dominant language
Swift
Stars
3.9k
Forks
1.2k
Avg merge
23h 51m
Merged PRs (30d)
58

Description

Expected behavior

Retry should only load one copy after reconnection

Actual behavior

I get duplicate images and greyed images were reported (see video)
(The video also shows how annoying the black Retry message is)

https://cloudup.com/cnf0OOvc9Hl

Steps to reproduce the behavior
  1. In Media Library, add an image from device
  2. During the upload, enter airplane mode
  3. Turn off airplane mode and you will see option to retry
  4. Retry and you will get a duplicate (may have to refresh to see them all)
Tested on iPhone Pro 12, iOS 14.2, WPiOS 16.3

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Media Library upload flow described in the steps on an iPhone or iOS simulator, including airplane mode during upload. Trace the retry path after reconnection and verify that one image remains, no image is greyed out, and the retry message behaves as expected.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, swift
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.