Repository navigation
fix(outliner): keep recycle parent until both sides restore - #13514
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Devin Review found 1 potential issue.
1 flag not posted on this PR by your GitHub settings — view it in Devin Review. (Configure)
Restoring a namespace child while its parent is still in Recycle no longer drops :logseq.property.recycle/original-parent. When the parent comes back, waiting live children are reattached. Co-authored-by: Tienson Qin <[email protected]>
tiensonqin
force-pushed
the
logseq/fix-restore-namespace-parent-5fc1
branch
from
September 29, 2026 05:29
8f577ea to
9f448d9
Compare
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#1350
Problem
Deleting a namespace child then its parent, and restoring the child first, left the child as a top-level page. Restoring the parent later could not reattach it.
restore-targetonly reused a parent that was already live.restore-tx-datathen retracted:logseq.property.recycle/original-parent, so the later parent restore had nothing to re-link.Restoring the parent first already worked.
Change
:logseq.property.recycle/original-parentand:logseq.property.recycle/original-order.Tests
Added recycle tests in
deps/outliner/test/logseq/outliner/recycle_test.cljsfor:Verified with
pnpm exec nbb-logseq -cp test -m nextjournal.test-runnerindeps/outliner(140 tests, 0 failures) plus clj-kondo, large-vars, and carve lint on the touched files.