{"action":"created","issue":{"url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues/8768","repository_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android","labels_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues/8768/labels{/name}","comments_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues/8768/comments","events_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues/8768/events","html_url":"https://github.com/wordpress-mobile/WordPress-Android/pull/8768","id":389732999,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM3NjU0NTA0","number":8768,"title":"Wire-up the revert from history ability","user":{"login":"marecar3","id":28219092,"node_id":"MDQ6VXNlcjI4MjE5MDky","avatar_url":"https://avatars3.githubusercontent.com/u/28219092?v=4","gravatar_id":"","url":"https://api.github.com/users/marecar3","html_url":"https://github.com/marecar3","followers_url":"https://api.github.com/users/marecar3/followers","following_url":"https://api.github.com/users/marecar3/following{/other_user}","gists_url":"https://api.github.com/users/marecar3/gists{/gist_id}","starred_url":"https://api.github.com/users/marecar3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marecar3/subscriptions","organizations_url":"https://api.github.com/users/marecar3/orgs","repos_url":"https://api.github.com/users/marecar3/repos","events_url":"https://api.github.com/users/marecar3/events{/privacy}","received_events_url":"https://api.github.com/users/marecar3/received_events","type":"User","site_admin":false},"labels":[{"id":970006741,"node_id":"MDU6TGFiZWw5NzAwMDY3NDE=","url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/labels/Gutenberg","name":"Gutenberg","color":"eae725","default":false}],"state":"open","locked":false,"assignee":{"login":"marecar3","id":28219092,"node_id":"MDQ6VXNlcjI4MjE5MDky","avatar_url":"https://avatars3.githubusercontent.com/u/28219092?v=4","gravatar_id":"","url":"https://api.github.com/users/marecar3","html_url":"https://github.com/marecar3","followers_url":"https://api.github.com/users/marecar3/followers","following_url":"https://api.github.com/users/marecar3/following{/other_user}","gists_url":"https://api.github.com/users/marecar3/gists{/gist_id}","starred_url":"https://api.github.com/users/marecar3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marecar3/subscriptions","organizations_url":"https://api.github.com/users/marecar3/orgs","repos_url":"https://api.github.com/users/marecar3/repos","events_url":"https://api.github.com/users/marecar3/events{/privacy}","received_events_url":"https://api.github.com/users/marecar3/received_events","type":"User","site_admin":false},"assignees":[{"login":"marecar3","id":28219092,"node_id":"MDQ6VXNlcjI4MjE5MDky","avatar_url":"https://avatars3.githubusercontent.com/u/28219092?v=4","gravatar_id":"","url":"https://api.github.com/users/marecar3","html_url":"https://github.com/marecar3","followers_url":"https://api.github.com/users/marecar3/followers","following_url":"https://api.github.com/users/marecar3/following{/other_user}","gists_url":"https://api.github.com/users/marecar3/gists{/gist_id}","starred_url":"https://api.github.com/users/marecar3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marecar3/subscriptions","organizations_url":"https://api.github.com/users/marecar3/orgs","repos_url":"https://api.github.com/users/marecar3/repos","events_url":"https://api.github.com/users/marecar3/events{/privacy}","received_events_url":"https://api.github.com/users/marecar3/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2018-12-11T12:05:35Z","updated_at":"2018-12-11T18:39:54Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/pulls/8768","html_url":"https://github.com/wordpress-mobile/WordPress-Android/pull/8768","diff_url":"https://github.com/wordpress-mobile/WordPress-Android/pull/8768.diff","patch_url":"https://github.com/wordpress-mobile/WordPress-Android/pull/8768.patch"},"body":"Fixes part of wordpress-mobile/gutenberg-mobile#182\r\n\r\nThis change adds History option to the Gutenberg editor. The behavior is same as Aztec, when an older revision is selected among the old revision list the editor content is updated with that revision. After that we need to tap Update button if we want to publish the new content, we can still discard the content by tapping \"Discard Local changes\" or from Toolbar with `Undo` and `Redo` buttons.\r\n\r\nIt's tested against a corresponding [gutenberg-mobile PR](https://github.com/wordpress-mobile/gutenberg-mobile/pull/346)\r\n\r\nTest : \r\nAdd `wp.BUILD_GUTENBERG_FROM_SOURCE = true` in gradle.properties\r\n"},"comment":{"url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues/comments/446313191","html_url":"https://github.com/wordpress-mobile/WordPress-Android/pull/8768#issuecomment-446313191","issue_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues/8768","id":446313191,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NjMxMzE5MQ==","user":{"login":"mzorz","id":6597771,"node_id":"MDQ6VXNlcjY1OTc3NzE=","avatar_url":"https://avatars0.githubusercontent.com/u/6597771?v=4","gravatar_id":"","url":"https://api.github.com/users/mzorz","html_url":"https://github.com/mzorz","followers_url":"https://api.github.com/users/mzorz/followers","following_url":"https://api.github.com/users/mzorz/following{/other_user}","gists_url":"https://api.github.com/users/mzorz/gists{/gist_id}","starred_url":"https://api.github.com/users/mzorz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mzorz/subscriptions","organizations_url":"https://api.github.com/users/mzorz/orgs","repos_url":"https://api.github.com/users/mzorz/repos","events_url":"https://api.github.com/users/mzorz/events{/privacy}","received_events_url":"https://api.github.com/users/mzorz/received_events","type":"User","site_admin":false},"created_at":"2018-12-11T18:39:54Z","updated_at":"2018-12-11T18:39:54Z","author_association":"CONTRIBUTOR","body":"I've tried the same as @hypest, apparently it tries to update the remote version (the Post uploader is triggered), when it should remain the same.\r\n\r\nIn my case I used this:\r\n\r\nSteps to repro:\r\n1. start a new gutenberg post\r\n2. type a title\r\n3. start a paragraph, enter \"first version\" as text.\r\n4. tap back\r\n5. observe the post gets uploaded as a draft\r\n6. open it again and edit  paragraph \"first version\" enter something else, for example I entered \"second version\"\r\n7. tap back to make the first entry in history\r\n8. open it again\r\n9. now add a new paragraph with text \"hello\"\r\n10. tap back, open it again and tap on History to see you have 2 entries there.\r\n11. load one of the older entries\r\n12. wait for the snackbar to hide\r\n13. tap on undo\r\n14. tap back - the post is uploaded (IIUC, it shouldn't).\r\n\r\nNOTE: If you set airplane mode ON before step 14, the post is then marked with `Local changes` as described."}}
{"actor":{"display_login":"mzorz"}}