wordpress-mobile / wordpress-mobile/WordPress-Android

Post list item has invalid "can't upload media" status

Open
#11,039 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[Type] Bug Gutenberg
Dominant language
Kotlin
Stars
3.2k
Forks
1.4k
Avg merge
1d 11h
Merged PRs (30d)
69

Description

Expected behavior

EditorFragmentListener.onMediaDeleted gets invoked when the user removes a media item.

Actual behavior

EditorFragmentListener.onMediaDeleted does not get invoked when the user removes a media item when using Gutenberg.

Steps to reproduce the behavior
  1. Create a new post in Gutenberg
  2. Turn on airplane mode
  3. Add a media Block
  4. Choose an image from the local storage
  5. Remove the media block
  6. Notice "EditorFragmentListener.onMediaDeleted" does not get invoked
  7. Press back
  8. Notice the post is in "failed media" state even though it doesn't contain any media anymore

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 tracing how Gutenberg handles media-block removal and where EditorFragmentListener.onMediaDeleted is expected to be invoked. Reproduce the listed airplane-mode steps, then verify that removing the media block invokes the callback and that pressing back does not leave the post in a failed-media state.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.