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

:collapsed? true in advansed query cannot query the info #11366

Open
2 tasks done
simonmz20 opened this issue Jun 10, 2024 · 1 comment
Open
2 tasks done

:collapsed? true in advansed query cannot query the info #11366

simonmz20 opened this issue Jun 10, 2024 · 1 comment

Comments

@simonmz20
Copy link

Search first

  • I searched and no similar issues were found

What Happened?

sorry to bother you
and i try to find some info in issues, but all of them seem to be solved, so i report a new issue
as the title, when i turn the collapsed to true in advansed query, it cannot query anything.
and i tried to edit the config.edn just like below

[{:title "🔨 NOW"
    :query [:find (pull ?h [*])
            :in $ ?start ?today
            :where
            [?h :block/marker ?marker]
            [(contains? #{"NOW" "DOING"} ?marker)]
            [?h :block/page ?p]
            [?p :block/journal? true]
            [?p :block/journal-day ?d]
            [(>= ?d ?start)]
            [(<= ?d ?today)]]
    :inputs [:14d :today]
    :result-transform (fn [result]
                        (sort-by (fn [h]
                                   (get h :block/priority "Z")) result))
    :group-by-page? false
    :collapsed? true}

as the code above i turn the collapsed to true
then the journals page cannot display the task which is doing
maybe it's a bug, if it is a bug, i look forward to fixing this bug
by the way the logseq graph is in icloud

Reproduce the Bug

  1. open the logseq
  2. type <query, and type the query statement
  3. if i type the :collapsed? true at the end of the query statement
  4. the query result is empty
  5. now even though i turn the collapsed to false, the query resule is still empty
  6. but when i copy the query statements which the collapsed is false to other page and query result is display in right way

Expected Behavior

No response

Screenshots

No response

Desktop or Mobile Platform Information

i have three platform with this problem

  1. macOS 12.7.4 macmini 2018 desktop logseq app version: 0.10.10 and 0.10.9 which i tried both
    2.macOS 13.5.1 macbook 2020 desktop logseq app version: 0.9.17
  2. ios 17.5.1 iphone 14 pro app version 0.10.9

Additional Context

No response

Are you willing to submit a PR? If you know how to fix the bug.

  • I'm willing to submit a PR (Thank you!)
@simonmz20
Copy link
Author

i have tested another platform in my office office this morning, and the same problem persist
macOS 14.5 macmini m2 desktop logseq version 0.10.9

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

No branches or pull requests

1 participant