{"action":"created","issue":{"url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues/4325","repository_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android","labels_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues/4325/labels{/name}","comments_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues/4325/comments","events_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues/4325/events","html_url":"https://github.com/wordpress-mobile/WordPress-Android/issues/4325","id":163147600,"number":4325,"title":"Post auto-save mechanism","user":{"login":"0nko","id":1522856,"avatar_url":"https://avatars.githubusercontent.com/u/1522856?v=3","gravatar_id":"","url":"https://api.github.com/users/0nko","html_url":"https://github.com/0nko","followers_url":"https://api.github.com/users/0nko/followers","following_url":"https://api.github.com/users/0nko/following{/other_user}","gists_url":"https://api.github.com/users/0nko/gists{/gist_id}","starred_url":"https://api.github.com/users/0nko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0nko/subscriptions","organizations_url":"https://api.github.com/users/0nko/orgs","repos_url":"https://api.github.com/users/0nko/repos","events_url":"https://api.github.com/users/0nko/events{/privacy}","received_events_url":"https://api.github.com/users/0nko/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/labels/Posting/Editing","name":"Posting/Editing","color":"006b75"},{"url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/labels/[Type]%20Enhancement","name":"[Type] Enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"0nko","id":1522856,"avatar_url":"https://avatars.githubusercontent.com/u/1522856?v=3","gravatar_id":"","url":"https://api.github.com/users/0nko","html_url":"https://github.com/0nko","followers_url":"https://api.github.com/users/0nko/followers","following_url":"https://api.github.com/users/0nko/following{/other_user}","gists_url":"https://api.github.com/users/0nko/gists{/gist_id}","starred_url":"https://api.github.com/users/0nko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0nko/subscriptions","organizations_url":"https://api.github.com/users/0nko/orgs","repos_url":"https://api.github.com/users/0nko/repos","events_url":"https://api.github.com/users/0nko/events{/privacy}","received_events_url":"https://api.github.com/users/0nko/received_events","type":"User","site_admin":false},"assignees":[{"login":"0nko","id":1522856,"avatar_url":"https://avatars.githubusercontent.com/u/1522856?v=3","gravatar_id":"","url":"https://api.github.com/users/0nko","html_url":"https://github.com/0nko","followers_url":"https://api.github.com/users/0nko/followers","following_url":"https://api.github.com/users/0nko/following{/other_user}","gists_url":"https://api.github.com/users/0nko/gists{/gist_id}","starred_url":"https://api.github.com/users/0nko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0nko/subscriptions","organizations_url":"https://api.github.com/users/0nko/orgs","repos_url":"https://api.github.com/users/0nko/repos","events_url":"https://api.github.com/users/0nko/events{/privacy}","received_events_url":"https://api.github.com/users/0nko/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2016-06-30T11:56:09Z","updated_at":"2016-07-01T12:49:56Z","closed_at":null,"body":"Based on a discussion here #4240, I thought it could be useful to have a separate thread about the new auto-saving mechanism, because there a few open questions. \r\n\r\n#### Conclusion from our discussion on Slack\r\n \r\n1. We ditch the Save alert dialog\r\n2. On editor exit, a Snackbar is displayed with a timeout, when users can discard the changes\r\n3. If a user reverts the changes, all local changes are discarded. Otherwise, after the timeout the post gets uploaded (if a device is offline, changes are saved locally)\r\n\r\nImagine a scenario: I have a draft post both online and in my phone. I make some changes but since the phone is offline the changes are saved locally. Later someone makes changes on the website. Because the app ignores updates on posts with local changes, I'll never see this new draft on my phone. After I make additional changes on the phone, the post gets uploaded and overwrites the previous changes. \r\n\r\nSo my question is -- Is there a way to detect remote changes and shouldn't we tell the users about it?\r\n\r\nCC: @hypest, @diegoreymendez, @nbradbury, @maxme "},"comment":{"url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues/comments/229938340","html_url":"https://github.com/wordpress-mobile/WordPress-Android/issues/4325#issuecomment-229938340","issue_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues/4325","id":229938340,"user":{"login":"0nko","id":1522856,"avatar_url":"https://avatars.githubusercontent.com/u/1522856?v=3","gravatar_id":"","url":"https://api.github.com/users/0nko","html_url":"https://github.com/0nko","followers_url":"https://api.github.com/users/0nko/followers","following_url":"https://api.github.com/users/0nko/following{/other_user}","gists_url":"https://api.github.com/users/0nko/gists{/gist_id}","starred_url":"https://api.github.com/users/0nko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0nko/subscriptions","organizations_url":"https://api.github.com/users/0nko/orgs","repos_url":"https://api.github.com/users/0nko/repos","events_url":"https://api.github.com/users/0nko/events{/privacy}","received_events_url":"https://api.github.com/users/0nko/received_events","type":"User","site_admin":false},"created_at":"2016-07-01T12:49:56Z","updated_at":"2016-07-01T12:49:56Z","body":"Thanks @hypest! I didn't know the local DB keeps the remote state as well. I really like the idea of detecting conflicts and letting the user know. Since we can compare both revisions it shouldn't be too hard."}}
{"actor":{"display_login":"0nko"}}