wordpress-mobile / wordpress-mobile/WordPress-Android
Post list item has invalid "can't upload media" status
Open
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
- Create a new post in Gutenberg
- Turn on airplane mode
- Add a media Block
- Choose an image from the local storage
- Remove the media block
- Notice "EditorFragmentListener.onMediaDeleted" does not get invoked
- Press back
- Notice the post is in "failed media" state even though it doesn't contain any media anymore
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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