Repository navigation
fix(ui): preserve published content when restoring drafts - #18394
Merged
jacobsfletch merged 3 commits intoOct 21, 2026
Merged
jacobsfletch merged 3 commits into
jacobsfletch merged 3 commits into
Conversation
PINYOPATTANAWASANPORN
requested review from
AlessioGr,
JarrodMFlesch and
jacobsfletch
as code owners
September 29, 2026 16:32
jacobsfletch
approved these changes
Oct 21, 2026
jacobsfletch
left a comment
Member
There was a problem hiding this comment.
Thanks for the fix! I added an e2e regression test and tightened up the PR title and description a bit.
Moving forward, we're considering making Restore as draft the standard for all version restores when drafts are enabled. See #18892.
jacobsfletch
enabled auto-merge (squash)
October 21, 2026 15:47
Contributor
|
🚀 This is included in version v4.0.0-beta.4 |
jacobsfletch
pushed a commit
that referenced
this pull request
Nov 16, 2026
Identical to #18394, back-ported for 3.x. Co-authored-by: Maarten Behr <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Restoring a draft version could overwrite and unpublish the live document.
Restore as draftmenu option.draft: false, so restoring a draft writes its content and status to the live document.The fix is to restore draft versions with
draft: trueand label the primary actionRestore as draft.Adds an e2e regression verifying that draft content is restored while newer published content and status remain unchanged.
Fixes #18389.