fix: remove file graph code from query-dsl

Allows removing unused file-rules and common.marker. Also remove
any incorrect or unused references to file graph markers like NOW
This commit is contained in:
Gabriel Horner
2026-01-07 12:59:36 -05:00
parent e07ff6dd88
commit 96a9f95622
21 changed files with 187 additions and 507 deletions

View File

@@ -144,20 +144,17 @@
(and (vector? f) (= :tags (keyword (first f))))
[(symbol :tags) (->page-ref (second f))]
(and (vector? f) (= :page-tags (keyword (first f))))
[(symbol :page-tags) (->page-ref (second f))]
(and (vector? f) (= :between (keyword (first f))))
(into [(symbol :between)] (map ->page-ref (rest f)))
;; property key value
(and (vector? f) (= 3 (count f)) (contains? #{:page-property :property :private-property} (keyword (first f))))
(and (vector? f) (= 3 (count f)) (contains? #{:property :private-property} (keyword (first f))))
(let [l (if (page-ref/page-ref? (str (last f)))
(symbol (last f))
(last f))]
(into [(symbol (first f))] [(second f) l]))
(and (vector? f) (contains? #{:page :tags :namespace} (keyword (first f))))
(and (vector? f) (contains? #{:page :tags} (keyword (first f))))
(into [(symbol (first f))] (map ->page-ref (rest f)))
:else f))