mirror of https://github.com/logseq/logseq
test(rtc): create namespace/page cause CONFLICT pages (part 2)
parent
67049b1c58
commit
2bb4b0e08d
|
@ -73,4 +73,11 @@
|
|||
[(d/entity @conn [:block/uuid uuid1])]
|
||||
opts))
|
||||
(let [ops (gen-ops-fn)]
|
||||
(is (contains? (set ops) [:remove {:block-uuids [uuid1]}]))))))
|
||||
(is (contains? (set ops) [:remove {:block-uuids [uuid1]}]))))
|
||||
|
||||
(testing "create 'aaa/bbb/ccc' namespace-page"
|
||||
(let [page-uuid (random-uuid)]
|
||||
(page-handler/create! "aaa/bbb/ccc" {:redirect? false :create-first-block? false :uuid page-uuid})
|
||||
(let [ops (gen-ops-fn)]
|
||||
(is (= #{[:update-page "aaa"] [:update-page "aaa/bbb"] [:update-page "aaa/bbb/ccc"]}
|
||||
(set (map (juxt first (comp :page-name second)) ops)))))))))
|
||||
|
|
|
@ -464,10 +464,12 @@ server: ;; remove 2
|
|||
(outliner-core/insert-blocks!
|
||||
repo
|
||||
conn
|
||||
[{:block/uuid uuid1-client :block/content "uuid1-client"
|
||||
[{:block/uuid uuid1-client
|
||||
:block/content "uuid1-client"
|
||||
:block/left [:block/uuid page1-uuid]
|
||||
:block/parent [:block/uuid page1-uuid]}
|
||||
{:block/uuid uuid2-client :block/content "uuid2-client"
|
||||
{:block/uuid uuid2-client
|
||||
:block/content "uuid2-client"
|
||||
:block/left [:block/uuid uuid1-client]
|
||||
:block/parent [:block/uuid page1-uuid]}]
|
||||
(d/pull @conn '[*] [:block/name page-name])
|
||||
|
|
Loading…
Reference in New Issue