Query don't work.
Nobody has claimed this yet.
- Dominant language
- Clojure
- Stars
- 313
- Forks
- 29
- PR merge metrics
- No merged PRs in 30d
Description
### What Happened?
I have a query, that works perfectly in my graph but not on my published site.
```
#+BEGIN_QUERY
{:title [:h1 "Neusten Einträge"]
:query [:find ?d (pull ?p [*])
:keys d block
:where
[?b :block/page ?p]
[?p :block/properties ?prop]
[(get ?prop :createdon) ?date]
[(get ?prop :type) ?type]
[?j :block/journal-day ?d]
[?j :block/original-name ?name]
[(contains? ?date ?name ?type)]
]
:result-transform (fn [res]
(take 10
(sort-by (fn [s] (get-in s [:block/properties :d])) > (map (fn [m]
(update (:block m) :block/properties
(fn [u] (assoc u :d (get-in m [:d]))
))
) res)))
)
}
#+END_QUERY
```
### Reproduce the Bug
1. Add the Query to your graph
2. You need some pages with the property "createdon:: [[yyyy-mm-dd]]"
3. Publish the site using the github action
### Expected Behavior
The query should show results on the website as on the graph
### Desktop or Mobile Platform Information
OS: NixOS
version: Flaptak Latest
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with the supplied Logseq query, pages using the createdon:: [[yyyy-mm-dd]] property, and the GitHub Action publication flow. Compare query behavior in the graph with the published site and trace the publish path until the discrepancy is located. Done means the published site shows the same query results as the graph.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- clojure, github-actions
- Domain
- ci-cd, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100