Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing nil orphans #3809

Merged
merged 2 commits into from Jan 7, 2022
Merged

Removing nil orphans #3809

merged 2 commits into from Jan 7, 2022

Conversation

houshuang
Copy link
Contributor

Fixes #3774. When printing the returned list of orphaned pages, turns out a lot of them are nil.
image

Simply removing these seems to fix the problem on my side. However, I'm not exactly sure why these are nil, whether there is a deeper underlying problem (we're already filtering for false).

Copy link
Collaborator

@andelf andelf left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for the fix.

@andelf andelf requested review from cnrpman and llcc January 7, 2022 14:13
@cnrpman
Copy link
Collaborator

cnrpman commented Jan 7, 2022

Thanks for the fix!
I guess the nil comes from the lack of page-name-sanity at:

(let [name (string/lower-case page)]

Just a guess, and #3797 is addressing such cases

Copy link
Collaborator

@cnrpman cnrpman left a comment

Choose a reason for hiding this comment

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

LGTM

@andelf andelf merged commit c660715 into logseq:master Jan 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove orphaned pages show lots of empty pages
3 participants