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
Enhance: Property page enhancements #6024
Conversation
747ab69
to
bb56b63
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -464,7 +475,7 @@ | |||
|
|||
(defn get-page-refs-from-properties | |||
[format properties db date-formatter] | |||
(let [page-refs (get-page-ref-names-from-properties format properties)] | |||
(let [page-refs (get-page-ref-names-from-properties format properties {})] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't pass the user config here as I didn't understand if this config mattered here. If it does, there is some small work to find all callers to this fn outside the graph-parser and pass in (state/get-config)
to it
3034397
to
3254c0b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Also fix carve linter and make nbb test invocation easier
Introduced hidden naming as that is a more accurate name for its usage. There may be a possible bug with existing built-in-properties but not familiar with all cases here and don't want to introduce more bugs before release
e.g. numbers, boolean
3cd196b
to
44c7208
Compare
44c7208
to
df07b86
Compare
df07b86
to
cd6c355
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @logseq-cldwalker. It works as expected now.
I added some fixes to this PR and commented on every change.
Produced two many extra pages.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just skipped the blocked E2E. Will fix in #6037
They were also being referred to elsewhere in block.cljs Also moved filters to editable as that is existing behavior Also disabled verbosity of cli tests to allow graph-parser tests to be more readable
Thanks for the reviews and additional fixes |
As a follow up to #5922, this does the following:
This PR is an alternative PR to #6009 and #6022. I tested this by removing all page properties from
logseq/pages-metadata.edn
and then re-indexing