payload: {"action":"created","issue":{"url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues/9812","repository_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android","labels_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues/9812/labels{/name}","comments_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues/9812/comments","events_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues/9812/events","html_url":"https://github.com/wordpress-mobile/WordPress-Android/issues/9812","id":441225245,"node_id":"MDU6SXNzdWU0NDEyMjUyNDU=","number":9812,"title":"Open a post with a remote auto-save, app must show a dialog asking to restore it","user":{"login":"maxme","id":40213,"node_id":"MDQ6VXNlcjQwMjEz","avatar_url":"https://avatars2.githubusercontent.com/u/40213?v=4","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},"labels":[{"id":557153401,"node_id":"MDU6TGFiZWw1NTcxNTM0MDE=","url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/labels/Needs%20Design","name":"Needs Design","color":"5319e7","default":false},{"id":63777052,"node_id":"MDU6TGFiZWw2Mzc3NzA1Mg==","url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/labels/Posting/Editing","name":"Posting/Editing","color":"006b75","default":false},{"id":57135840,"node_id":"MDU6TGFiZWw1NzEzNTg0MA==","url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/labels/[Pri]%20Medium","name":"[Pri] Medium","color":"fef2c0","default":false},{"id":1345040527,"node_id":"MDU6TGFiZWwxMzQ1MDQwNTI3","url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/labels/[Status]%20Needs%20Discussion","name":"[Status] Needs Discussion","color":"88ef51","default":false},{"id":35106420,"node_id":"MDU6TGFiZWwzNTEwNjQyMA==","url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/labels/[Type]%20Enhancement","name":"[Type] Enhancement","color":"84b6eb","default":false}],"state":"open","locked":false,"assignee":{"login":"malinajirka","id":2261188,"node_id":"MDQ6VXNlcjIyNjExODg=","avatar_url":"https://avatars3.githubusercontent.com/u/2261188?v=4","gravatar_id":"","url":"https://api.github.com/users/malinajirka","html_url":"https://github.com/malinajirka","followers_url":"https://api.github.com/users/malinajirka/followers","following_url":"https://api.github.com/users/malinajirka/following{/other_user}","gists_url":"https://api.github.com/users/malinajirka/gists{/gist_id}","starred_url":"https://api.github.com/users/malinajirka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malinajirka/subscriptions","organizations_url":"https://api.github.com/users/malinajirka/orgs","repos_url":"https://api.github.com/users/malinajirka/repos","events_url":"https://api.github.com/users/malinajirka/events{/privacy}","received_events_url":"https://api.github.com/users/malinajirka/received_events","type":"User","site_admin":false},"assignees":[{"login":"malinajirka","id":2261188,"node_id":"MDQ6VXNlcjIyNjExODg=","avatar_url":"https://avatars3.githubusercontent.com/u/2261188?v=4","gravatar_id":"","url":"https://api.github.com/users/malinajirka","html_url":"https://github.com/malinajirka","followers_url":"https://api.github.com/users/malinajirka/followers","following_url":"https://api.github.com/users/malinajirka/following{/other_user}","gists_url":"https://api.github.com/users/malinajirka/gists{/gist_id}","starred_url":"https://api.github.com/users/malinajirka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malinajirka/subscriptions","organizations_url":"https://api.github.com/users/malinajirka/orgs","repos_url":"https://api.github.com/users/malinajirka/repos","events_url":"https://api.github.com/users/malinajirka/events{/privacy}","received_events_url":"https://api.github.com/users/malinajirka/received_events","type":"User","site_admin":false}],"milestone":null,"comments":7,"created_at":"2019-05-07T13:12:39Z","updated_at":"2019-06-03T08:21:55Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"When a user opens a published post with a remote auto-save, we must show a dialog “A more recent revision of this post exists. Restore?”. Like in Calypso:\r\n\r\n<img width=\"422\" alt=\"screenshot-2019-05-03-at-09 25 19\" src=\"https://user-images.githubusercontent.com/40213/57301854-3a9c1600-70da-11e9-8b51-caace0fe6d33.png\">\r\n\r\n## Corresponding iOS Ticket\r\n\r\nhttps://github.com/wordpress-mobile/WordPress-iOS/issues/11650"},"comment":{"url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues/comments/498160485","html_url":"https://github.com/wordpress-mobile/WordPress-Android/issues/9812#issuecomment-498160485","issue_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues/9812","id":498160485,"node_id":"MDEyOklzc3VlQ29tbWVudDQ5ODE2MDQ4NQ==","user":{"login":"malinajirka","id":2261188,"node_id":"MDQ6VXNlcjIyNjExODg=","avatar_url":"https://avatars3.githubusercontent.com/u/2261188?v=4","gravatar_id":"","url":"https://api.github.com/users/malinajirka","html_url":"https://github.com/malinajirka","followers_url":"https://api.github.com/users/malinajirka/followers","following_url":"https://api.github.com/users/malinajirka/following{/other_user}","gists_url":"https://api.github.com/users/malinajirka/gists{/gist_id}","starred_url":"https://api.github.com/users/malinajirka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malinajirka/subscriptions","organizations_url":"https://api.github.com/users/malinajirka/orgs","repos_url":"https://api.github.com/users/malinajirka/repos","events_url":"https://api.github.com/users/malinajirka/events{/privacy}","received_events_url":"https://api.github.com/users/malinajirka/received_events","type":"User","site_admin":false},"created_at":"2019-06-03T08:21:55Z","updated_at":"2019-06-03T08:21:55Z","author_association":"CONTRIBUTOR","body":">Considering it's a much wider discussion than what this issue initially proposes: would you mind posting it as a new discussion issue? (it should still reference this one)\r\n\r\nSorry @diegoreymendez , I was afk on Friday and I think moving it now would just result in more chaos. \r\n\r\n>Do we have information on how often these conflicts happen?\r\n\r\nI don't think so:(.\r\n\r\n>I'm also wondering if we could create a remote revision from the local revision when the network is back (I'm not sure we have an endpoint to do this).\r\n\r\nAFAIK this endpoint isn't available - we have the `/autosave` endpoint, but it doesn't always create a new revision and has side-effects.\r\n\r\nThe remote revisions support just \"title, content and excerpt\", if the local revisions would do the same I believe we wouldn't even need them, right? We already store changes made while offline. We could do the following\r\n1. Fetch post from remote\r\n2a. Conflict is not detected -> update our local database with the post we just fetched from remote\r\n2b. Conflict is detected -> create a remote revision from the post in our local database and update our local database with the post we just fetched from remote\r\n\r\nIt wouldn't work on self-hosted sites though, so if we can make it work there introducing local revisions makes total sense.\r\n\r\n\r\n\r\n "}}
other: {"actor":{"display_login":"malinajirka"}}