If a more recent revision/autosave exists, store its state on editor setup#7945
If a more recent revision/autosave exists, store its state on editor setup#7945
Conversation
73ed574 to
4c32e56
Compare
This comment has been minimized.
This comment has been minimized.
f5f49f9 to
27b921b
Compare
|
This seems an important bug to fix, but I'm moving to 3.8 for now as it doesn't seem ready. |
40cb6ab to
847c699
Compare
68791dd to
2af62da
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
53a19b0 to
9e1a31b
Compare
This comment has been minimized.
This comment has been minimized.
|
There's quite a bit which has since been changed in affected code here, for which I'm largely to blame (both for the changes and neglecting to review this sooner). Let me know if there's anything I can do to help with bringing this back up to date. |
e44f855 to
8cb8fe3
Compare
|
@aduth - I've rebased it. I ended up dropping a couple of commits that didn't seem relevant any more. They seem to have been fixed since. My understanding is that if we want to introduce this, the PHP code will need to patched into core. Is that right? |
|
Yes, and there may be some conflict to anticipate between this and the changes introduced to core as part of Trac#45194 (specifically 43833), which doesn't appear to have yet been ported back to the plugin (cc @imath @danielbachhuber). |
It's still a WIP on #4155 |
…t been fetched from the REST API
Co-Authored-By: talldan <daniel.p.richards@gmail.com>
|
@aduth - have fixed that issue with |
Is this still the case? I don't see any PHP file edits included. Is it possible that due to an earlier rebase where we'd been relying on redundant code in If we need it, we should filter |
aduth
left a comment
There was a problem hiding this comment.
Thanks for the patience in delayed reviews. Nice work on this one 👍
Consider my prior comment as far as whether we should be preloading this path. I don't consider it a blocker since the preloading is more an optimization, but I'll leave it to you whether we should include it.
|
Thanks so much for you guidance, @aduth! This one has been through a few iterations, but feels good to finally get it merged. I'll work on some follow-ups for the preloading. |
|
10 months and 5 days—that must be a record! 😀👏 |
|
@aduth here's a ticket with a patch for adding the preloading: |
👍 Depending if you think it's important, we could also introduce a filter in the Gutenberg plugin ahead of this being patched in core. |
I'm not completely convinced it's needed, but I made a PR - #15067 |
closes #7416
Attempts to resolve an issue whereby the editor is unaware of the existence of
a more recent autosave, resulting in attempts to perform an autosave fail.
Description
This PR results in autosave state being fetched when the editor loads (via a resolver). This request is preloaded (will require a core patch). Changes include:
How has this been tested?
Types of changes
Bug fix (non-breaking change which fixes an issue)
Checklist: