Repository navigation
fix: restore property values after undoing a block move or delete - #13335
Merged
Merged
Conversation
tiensonqin
force-pushed
the
logseq/undo-property-value-move-617c
branch
from
September 21, 2026 09:52
d43966d to
0a022af
Compare
tiensonqin
force-pushed
the
logseq/undo-property-value-move-617c
branch
from
September 21, 2026 10:40
5bfae4c to
006f358
Compare
Undo of move-blocks now reattaches :logseq.property/created-from-property so text/url property values return as property values, not page children. Co-authored-by: Tienson Qin <[email protected]>
Undo of delete-blocks now reattaches :logseq.property/created-from-property so text/url property values return as property values, not missing values. Co-authored-by: tiensonqin <[email protected]>
tiensonqin
force-pushed
the
logseq/undo-property-value-move-617c
branch
from
September 21, 2026 11:10
006f358 to
40b6ee6
Compare
devin-ai-integration Bot
pushed a commit
that referenced
this pull request
Oct 1, 2026
…3335) * fix: restore property values after undoing a block move Undo of move-blocks now reattaches :logseq.property/created-from-property so text/url property values return as property values, not page children. Co-authored-by: Tienson Qin <[email protected]> * fix: restore property values after undoing a block delete Undo of delete-blocks now reattaches :logseq.property/created-from-property so text/url property values return as property values, not missing values. Co-authored-by: tiensonqin <[email protected]> --------- Co-authored-by: Cursor Agent <[email protected]>
devin-ai-integration Bot
pushed a commit
that referenced
this pull request
Oct 8, 2026
…3335) * fix: restore property values after undoing a block move Undo of move-blocks now reattaches :logseq.property/created-from-property so text/url property values return as property values, not page children. Co-authored-by: Tienson Qin <[email protected]> * fix: restore property values after undoing a block delete Undo of delete-blocks now reattaches :logseq.property/created-from-property so text/url property values return as property values, not missing values. Co-authored-by: tiensonqin <[email protected]> --------- Co-authored-by: Cursor Agent <[email protected]>
devin-ai-integration Bot
pushed a commit
that referenced
this pull request
Oct 8, 2026
…3335) * fix: restore property values after undoing a block move Undo of move-blocks now reattaches :logseq.property/created-from-property so text/url property values return as property values, not page children. Co-authored-by: Tienson Qin <[email protected]> * fix: restore property values after undoing a block delete Undo of delete-blocks now reattaches :logseq.property/created-from-property so text/url property values return as property values, not missing values. Co-authored-by: tiensonqin <[email protected]> --------- Co-authored-by: Cursor Agent <[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.
Fixes logseq/db-test#1241
Text and URL property values are real blocks, so they can be moved with
Ctrl+Shift+Mor deleted like other blocks. Undo rebuilt those actions as a plain:move-blocks/:insert-blocksback to the owner, which does not reattach:logseq.property/created-from-propertyor the owner's property ref. The value came back as a missing property (delete) or a normal child of the page/node (move).Changes
move-blocksincludes:created-from-propertywhen the moved root was a property value.delete-blocks/insert-blocksuses the same opt so undo restore reattaches both the created-from-property marker and the owner's property ref.move-blockandinsert-blocksuse that opt (or a sibling property-value target) to restore the value as a property instead of a child block.Tests