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

Enhance: Property page enhancements #6024

Merged
merged 12 commits into from Jul 15, 2022

Conversation

logseq-cldwalker
Copy link
Collaborator

@logseq-cldwalker logseq-cldwalker commented Jul 13, 2022

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

@logseq-cldwalker logseq-cldwalker changed the title Don't auto-create pages for built-in properties Fix: Don't auto-create pages for built-in properties Jul 13, 2022
@logseq-cldwalker logseq-cldwalker force-pushed the fix/remove-built-in-property-pages branch from 747ab69 to bb56b63 Compare July 13, 2022 16:40
@logseq-cldwalker logseq-cldwalker changed the title Fix: Don't auto-create pages for built-in properties Enhance: Don't auto-create pages for built-in properties [WIP] Jul 14, 2022
Copy link
Contributor

@llcc llcc left a comment

Choose a reason for hiding this comment

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

LGTM

@logseq-cldwalker logseq-cldwalker changed the title Enhance: Don't auto-create pages for built-in properties [WIP] Enhance: Don't auto-create pages for built-in properties Jul 14, 2022
@logseq-cldwalker logseq-cldwalker changed the title Enhance: Don't auto-create pages for built-in properties Enhance: Property page enhancements Jul 14, 2022
@@ -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 {})]
Copy link
Collaborator Author

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

@llcc llcc force-pushed the fix/remove-built-in-property-pages branch from 3034397 to 3254c0b Compare July 15, 2022 07:10
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

logseq-cldwalker and others added 7 commits July 15, 2022 15:26
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
@cnrpman cnrpman force-pushed the fix/remove-built-in-property-pages branch from 3cd196b to 44c7208 Compare July 15, 2022 07:26
@llcc llcc force-pushed the fix/remove-built-in-property-pages branch from 44c7208 to df07b86 Compare July 15, 2022 07:51
@llcc llcc force-pushed the fix/remove-built-in-property-pages branch from df07b86 to cd6c355 Compare July 15, 2022 07:52
Copy link
Contributor

@llcc llcc left a 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.

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.

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
@logseq-cldwalker
Copy link
Collaborator Author

Thanks for the reviews and additional fixes

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.

PR 5922 - LS turning every property-key into a page
4 participants