{"action":"created","issue":{"url":"https://api.github.com/repos/wordpress-mobile/WordPress-Editor-Android/issues/33","repository_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Editor-Android","labels_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Editor-Android/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Editor-Android/issues/33/comments","events_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Editor-Android/issues/33/events","html_url":"https://github.com/wordpress-mobile/WordPress-Editor-Android/issues/33","id":66361929,"number":33,"title":"Deleting a remote post discards all posts' local changes","user":{"login":"bummytime","id":154014,"avatar_url":"https://avatars.githubusercontent.com/u/154014?v=3","gravatar_id":"","url":"https://api.github.com/users/bummytime","html_url":"https://github.com/bummytime","followers_url":"https://api.github.com/users/bummytime/followers","following_url":"https://api.github.com/users/bummytime/following{/other_user}","gists_url":"https://api.github.com/users/bummytime/gists{/gist_id}","starred_url":"https://api.github.com/users/bummytime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bummytime/subscriptions","organizations_url":"https://api.github.com/users/bummytime/orgs","repos_url":"https://api.github.com/users/bummytime/repos","events_url":"https://api.github.com/users/bummytime/events{/privacy}","received_events_url":"https://api.github.com/users/bummytime/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/wordpress-mobile/WordPress-Editor-Android/labels/old%20editor","name":"old editor","color":"f7c6c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-04T20:21:06Z","updated_at":"2016-03-25T11:00:57Z","closed_at":null,"body":"Original issue: https://github.com/wordpress-mobile/WordPress-Android/issues/2183\n\nIf there are one or more posts with local changes and any remote (non-local draft) post is deleted, the local changes of all posts are discarded without warning."},"comment":{"url":"https://api.github.com/repos/wordpress-mobile/WordPress-Editor-Android/issues/comments/201240447","html_url":"https://github.com/wordpress-mobile/WordPress-Editor-Android/issues/33#issuecomment-201240447","issue_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Editor-Android/issues/33","id":201240447,"user":{"login":"maxme","id":40213,"avatar_url":"https://avatars.githubusercontent.com/u/40213?v=3","gravatar_id":"","url":"https://api.github.com/users/maxme","html_url":"https://github.com/maxme","followers_url":"https://api.github.com/users/maxme/followers","following_url":"https://api.github.com/users/maxme/following{/other_user}","gists_url":"https://api.github.com/users/maxme/gists{/gist_id}","starred_url":"https://api.github.com/users/maxme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxme/subscriptions","organizations_url":"https://api.github.com/users/maxme/orgs","repos_url":"https://api.github.com/users/maxme/repos","events_url":"https://api.github.com/users/maxme/events{/privacy}","received_events_url":"https://api.github.com/users/maxme/received_events","type":"User","site_admin":false},"created_at":"2016-03-25T11:00:57Z","updated_at":"2016-03-25T11:00:57Z","body":"The problem is a bit different now and local changes are not lost:\r\n\r\n* Edit a published post with wpandroid, don't publish the changes.\r\n* Go back to the Post list, you should see a \"Local changes\" notice on the post you just edited\r\n* Move this post to trash on the Web\r\n* Refresh the post list in wpandroid: the post and local changes are still there\r\n* Publish the local changes and notice the post move from trash to published (IMO, that's the correct behavior)\r\n\r\nA problem appears when you delete the post completely:\r\n\r\n* Edit a published post with wpandroid, don't publish the changes.\r\n* Go back to the Post list, you should see a \"Local changes\" notice on the post you just edited\r\n* **Delete the post completely**\r\n* Refresh the post list in wpandroid: the post and local changes are still there\r\n* Publish the local changes and get an error: \"Invalid post ID [404]\" which seems normal. Error message comes from the XMLRPC response, not ideal.\r\n\r\nI think it's an acceptable behavior if we had a better message."}}