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

If a post was deleted on a remote and modified locally, it can't be deleted #22037

Closed
kean opened this issue Nov 13, 2023 · 2 comments
Closed

Comments

@kean
Copy link
Contributor

kean commented Nov 13, 2023

Expected behavior

The app notifies you that the post was deleted and suggest saving the changes as a new draft

Actual behavior

  • There is no way to save the post
  • There is no way to delete the post
  • Every time you open the app, it shows an "upload failed" popup
Simulator.Screen.Recording.-.iPhone.15.Pro.-.2023-11-13.at.07.14.58.mp4

Steps to reproduce the behavior

  • Create a post in the app
  • Close the Posts page
  • Open wp.com and permanently delete the created post
  • Return the to the app
  • Open the Posts page and quickly open the deleted post before the refresh finishes
  • Modify and save the post
  • Try to delete the post
Tested on [device], iOS [version], Jetpack iOS / WordPress iOS [version]
@crazytonyli
Copy link
Contributor

The trash post HTTP API probably returns an error that indicates the post has been deleted. The app should handle the error better, and potentially show another alert with options like "Save as draft", "Discard the post".

@kean kean changed the title If the post was deleted on a remote and modified locally, it can't be deleted If a post was deleted on a remote and modified locally, it can't be deleted Nov 21, 2023
@kean
Copy link
Contributor Author

kean commented Apr 30, 2024

This has been fixed in the scope of the "Offline Mode (Sync Issues)" project (pilot in 24.8; release in 24.9).

@kean kean closed this as completed Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants