Bring back namespaces/page merge/nested pages

This commit is contained in:
Tienson Qin
2024-04-07 13:48:55 +08:00
parent b9195e40e5
commit 6eb6e60b55
29 changed files with 851 additions and 131 deletions

View File

@@ -621,3 +621,18 @@ created-at:: 1608968448116
(not [?b :block/priority #{"A"}]
[(contains? #{"A"} ?priority)]))]
(frontend.db/get-db test-db))))
(deftest namespace-queries
(load-test-files [{:file/path "pages/ns1.page1.md"
:file/content "foo"}
{:file/path "pages/ns1.page2.md"
:file/content "bar"}
{:file/path "pages/ns2.page1.md"
:file/content "baz"}])
(is (= #{"ns1/page1" "ns1/page2"}
(set (map :block/name (dsl-query "(namespace ns1)")))))
(is (= #{}
(set (map :block/name (dsl-query "(namespace blarg)"))))
"Correctly returns no results"))