Skip to content

Hide recycled nested pages from All Pages - #13492

Merged
tiensonqin merged 1 commit into
masterfrom
logseq/fix-recycled-child-pages-all-pages-ba85
Sep 30, 2026
Merged

tiensonqin merged 1 commit into
masterfrom
logseq/fix-recycled-child-pages-all-pages-ba85

Conversation

@tiensonqin

@tiensonqin tiensonqin commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Fixes logseq/db-test#1333

Behavior

Moving a parent page to Recycle now hides its nested child pages from All Pages (first window, full list, and title filters). Graph View All Pages uses the same descendant contract. ldb/get-all-pages already walked hidden/deleted parents and now has a regression test.

Cause

All Pages' id-only exclude set only dropped pages with a direct :logseq.property/deleted-at or :logseq.property/hide? datom. A nested #Page child keeps its own name and is recycled only through its parent, so it stayed listed.

Tests

  • Reproduced first with a failing All Pages view test for recycled parent + nested child/grandchild pages.
  • Added coverage for hidden parents, ldb/get-all-pages, and Graph View All Pages.
  • pnpm test-v in deps/db for the new All Pages cases: 3 tests, 13 assertions, 0 failures.
  • Full logseq.db.common.view-test: 44 tests, 141 assertions, 0 failures.
  • bb dev:lint-and-test: clj-kondo 0 errors / 0 warnings, all unit batches 0 failures (includes frontend.worker.graph-view-test).
Open in Web Open in Cursor 

Devin Review

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 Devin Review: 2 flags

Not posted on this PR by your GitHub settings — view them in Devin Review. (Configure)

Devin Review

All Pages and Graph View listed child pages after their parent was
moved to Recycle, because the id-only exclude set only dropped pages
with a direct deleted-at/hide flag.

Co-authored-by: Tienson Qin <[email protected]>
@tiensonqin
tiensonqin force-pushed the logseq/fix-recycled-child-pages-all-pages-ba85 branch from c755e8e to c6dc222 Compare September 30, 2026 10:33
@tiensonqin
tiensonqin merged commit 768f525 into master Sep 30, 2026
23 of 25 checks passed
@tiensonqin
tiensonqin deleted the logseq/fix-recycled-child-pages-all-pages-ba85 branch September 30, 2026 10:33
devin-ai-integration Bot pushed a commit that referenced this pull request Sep 30, 2026
Co-authored-by: Tienson Qin <[email protected]>
Signed-off-by: Tienson Qin <[email protected]>
devin-ai-integration Bot pushed a commit that referenced this pull request Oct 1, 2026
All Pages and Graph View listed child pages after their parent was
moved to Recycle, because the id-only exclude set only dropped pages
with a direct deleted-at/hide flag.

Co-authored-by: Cursor Agent <[email protected]>
devin-ai-integration Bot pushed a commit that referenced this pull request Oct 1, 2026
Co-authored-by: Tienson Qin <[email protected]>
Signed-off-by: Tienson Qin <[email protected]>
devin-ai-integration Bot pushed a commit that referenced this pull request Oct 8, 2026
All Pages and Graph View listed child pages after their parent was
moved to Recycle, because the id-only exclude set only dropped pages
with a direct deleted-at/hide flag.

Co-authored-by: Cursor Agent <[email protected]>
devin-ai-integration Bot pushed a commit that referenced this pull request Oct 8, 2026
Co-authored-by: Tienson Qin <[email protected]>
Signed-off-by: Tienson Qin <[email protected]>
devin-ai-integration Bot pushed a commit that referenced this pull request Oct 8, 2026
All Pages and Graph View listed child pages after their parent was
moved to Recycle, because the id-only exclude set only dropped pages
with a direct deleted-at/hide flag.

Co-authored-by: Cursor Agent <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Child page remains visible in All Pages after its parent page is moved to Trash

2 participants