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

Editor revisions: loading latest revision makes post get uploaded even if no changes #8773

Closed
mzorz opened this issue Dec 12, 2018 · 4 comments

Comments

@mzorz
Copy link
Contributor

mzorz commented Dec 12, 2018

Expected behavior

When loading the same history revision as the current one, the Post should not get updated.

Actual behavior

The post gets updated when the last history revision version gets loaded on the Editor.

Steps to reproduce the behavior

  1. start a new Post (Aztec)
  2. type a title
  3. start a paragraph, enter "first version" as text.
  4. tap back
  5. observe the post gets uploaded as a draft
  6. open it again and edit paragraph "first version" enter something else, for example I entered "second version"
  7. tap back to make the first entry in history
  8. open it again
  9. now add a new paragraph with text "hello"
  10. tap back, open it again and tap on History to see you have 2 entries there.
  11. load one of the older entries
  12. wait for the snackbar to hide
  13. tap on undo
  14. tap back - the post is uploaded (IIUC, it shouldn't).

NOTE: If you set airplane mode ON before step 14, the post is then marked with Local changes as described in the original report.

Tested on [Google Pixel], Android [8.0]
@malinajirka
Copy link
Contributor

Fixed in #9320

@mzorz
Copy link
Contributor Author

mzorz commented Mar 18, 2019

@malinajirka #9320 has been closed without merging with reasoning behind so explained in #9320 (comment) so, if this issue is still happening then it should be re-opened IIUC. Can you verify and re-open if needed? Thanks!

@malinajirka
Copy link
Contributor

Ohh, I missed the fix wasn't merged. Thanks pointing that out.

However, I believe we can keep this issue closed as step 13 isn't supported anymore -> the undo button in the Toolbar overflow menu is disabled.

If the user clicks on the UNDO action in the SnackBar it works as expected -> the post won't get uploaded.

@mzorz
Copy link
Contributor Author

mzorz commented Mar 18, 2019

🎉 thank you for clarifying!

I believe we can keep this issue closed as step 13 isn't supported anymore -> the undo button in the Toolbar overflow menu is disabled.

Tested and agreed, this issue is not applicable anymore :)

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

3 participants