Skip to content

test(db, db-sync, worker): tests for operator changes the suite let through (export, checksum, validate, pipeline) - #13682

Open
yuxi-liu-wired wants to merge 7 commits into
logseq:masterfrom
yuxi-liu-wired:test/mutation-tests-3
Open

yuxi-liu-wired wants to merge 7 commits into
logseq:masterfrom
yuxi-liu-wired:test/mutation-tests-3

Conversation

@yuxi-liu-wired

@yuxi-liu-wired yuxi-liu-wired commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Tests only. No source changes. Follows #13679 and #13680 (same method).

These tests come from mutation testing: each change of one operator in the source (= to not=, and to or, first to last, when to when-not, true to false and so on) that the existing tests let through. Each new test passes on master and fails on at least one such change. Changes that no test could observe got no test.

What the tests cover

deps/db/test/logseq/db/sqlite/export_mutation_test.cljs (logseq.db.sqlite.export):

  • page exports: alias pages, user closed values (including recycled ones still in use), property value blocks with children (kept inside the value, not also as top-level blocks), :node values that point at property value blocks
  • class and property page exports: class properties shallow-copied, the property itself imported
  • selected-node exports shallow-copy selected class pages
  • graph exports: excluded namespaces (with the properties they use taken from the target graph), property and class aliases kept, user closed values of blocks, invalid keywords patched only for graphs older than schema 64.8, an undefined property rejected unless validation errors are caught
  • imports: a page export imported with a current block, and import validation that keeps data and reports real errors

deps/db-sync/test/logseq/db_sync/checksum_mutation_test.cljs (logseq.db-sync.checksum): incremental checksum against a full recompute for tag-only pages, edits of non-page tagged blocks, uuid-string and non-uuid tempids, a parent with two uuid datoms, a page with false-then-true built-in datoms, and a retracted page dropping its blocks.

src/test/frontend/worker/db/validate_mutation_test.cljs (frontend.worker.db.validate): the repairs fix-invalid-blocks! makes (titled orphans, untagged URL blocks, page tags on properties and classes, description blocks, created-by refs, a class used as a property), numeric-prefix db-ident renames, closed-value cleanup, icon and extends repairs, child-page ordering, and the notification for a valid graph.

src/test/frontend/worker/pipeline_mutation_test.cljs (frontend.worker.pipeline): refs rebuilt only for outliner ops that change content; journal and tag templates (fresh copies of all children in order, uuids derived from the new journal); page tags fixed; inline built-in classes removed from titles; blocks that become pages (tagged as a page, moved to the library, on a class page); display types adding their class; query and comments properties; created-by refs except on undo; built-in protected attributes reverted except in fix-db; repeating tasks not rescheduled by undo; reference attributes following public and private ref properties; deleted assets listed for hooks.

Checks

  • On master (f11f5f8): logseq.db.sqlite.export-mutation-test 19 tests, 35 assertions (nbb); logseq.db-sync.checksum-mutation-test, frontend.worker.db.validate-mutation-test, frontend.worker.pipeline-mutation-test 46 tests, 101 assertions (app test build); 0 failures, 0 errors.
  • Each test claimed to catch a change was run with that change applied and failed.
  • Lint as in CI: deps/db and deps/db-sync (clj-kondo --lint src test, carve, large-vars, and ns-docstrings / rules where the workflow runs them) and the app (clj-kondo --parallel --lint src, carve, large-vars, ns-docstrings, lang:lint-hardcoded, lint:worker-and-frontend-separate, lang:validate-translations).
Which mutants each test catches

Each row: a change of one operator in the source (at the commit the mutation pass ran on) that the existing tests let through and this test fails on.

Test Source In Change Line
tag-only-page-edit-changes-incremental-checksum-test deps/db-sync/src/logseq/db_sync/checksum.cljs eligible-datoms? = → not= (or (boolean (some #(and (= :block/tags (:a %))
non-page-tagged-block-edit-leaves-checksum-test deps/db-sync/src/logseq/db_sync/checksum.cljs eligible-datoms? and → or (or (boolean (some #(and (= :block/tags (:a %))
uuid-string-entity-edit-matches-recompute-test deps/db-sync/src/logseq/db_sync/checksum.cljs parse-uuid-string when → when-not (when (string? value)
new-block-with-non-uuid-tempid-matches-recompute-test deps/db-sync/src/logseq/db_sync/checksum.cljs tx-item-eids = → not= (and (= op :db/add) (= attr :block/uuid))
parent-with-2-uuid-datoms-normalizes-to-its-first-uuid-test deps/db-sync/src/logseq/db_sync/checksum.cljs get-block-uuid first → last (:v (first (d/datoms db :eavt eid :block/uuid))))
page-with-false-then-true-built-in-datoms-counts-test deps/db-sync/src/logseq/db_sync/checksum.cljs recompute-state true → false (set! (.-built-in-seen? w) true)
retracted-page-drops-its-blocks-from-incremental-checksum-test deps/db-sync/src/logseq/db_sync/checksum.cljs net-tuple-delta or → and (or (checksum-eligible-entity? db-before eid)
page-export-includes-alias-pages deps/db/src/logseq/db/sqlite/export.cljs build-page-export when → when-not alias-export (when (:block/alias page-entity)
page-export-keeps-user-closed-values deps/db/src/logseq/db/sqlite/export.cljs buildable-properties or → and (or (:block/closed-value-property v)
page-export-keeps-user-closed-values deps/db/src/logseq/db/sqlite/export.cljs buildable-properties or → and (or (some #(when (= (:value %) (db-property/property-value-content val))
page-export-keeps-user-closed-values deps/db/src/logseq/db/sqlite/export.cljs buildable-properties when → when-not (or (some #(when (= (:value %) (db-property/property-value-content val))
page-export-keeps-user-closed-values deps/db/src/logseq/db/sqlite/export.cljs buildable-properties = → not= (or (some #(when (= (:value %) (db-property/property-value-content val))
page-export-keeps-property-value-children deps/db/src/logseq/db/sqlite/export.cljs buildable-properties when → when-not build-children (when (seq child-blocks)
page-export-keeps-property-value-children deps/db/src/logseq/db/sqlite/export.cljs buildable-properties seq → empty? build-children (when (seq child-blocks)
page-export-keeps-property-value-children deps/db/src/logseq/db/sqlite/export.cljs build-node-export false → true :or {include-uuid-fn (constantly false)}
selected-nodes-export-shallow-copies-selected-class-pages deps/db/src/logseq/db/sqlite/export.cljs build-nodes-export true → false (build-mixed-properties-and-classes-export db node-pages {:shallow-copy? true})
graph-export-excludes-namespaces deps/db/src/logseq/db/sqlite/export.cljs build-graph-ontology-export when → when-not (let [exclude-regex (when (seq exclude-namespaces)
graph-export-excludes-namespaces deps/db/src/logseq/db/sqlite/export.cljs build-graph-ontology-export seq → empty? (let [exclude-regex (when (seq exclude-namespaces)
graph-export-patches-invalid-keywords-only-for-old-graphs deps/db/src/logseq/db/sqlite/export.cljs patch-invalid-keywords = → not= (let [initial-version (:kv/value (first (filter #(= :logseq.kv/graph-initial-sch
graph-export-patches-invalid-keywords-only-for-old-graphs deps/db/src/logseq/db/sqlite/export.cljs patch-invalid-keywords if → if-not (if (some-> initial-version (db-schema/compare-schema-version {:major 64 :minor
graph-export-patches-invalid-keywords-only-for-old-graphs deps/db/src/logseq/db/sqlite/export.cljs patch-invalid-keywords if → if-not (if (not= sanitized-kw e) sanitized-kw e))
graph-export-patches-invalid-keywords-only-for-old-graphs deps/db/src/logseq/db/sqlite/export.cljs patch-invalid-keywords not= → = (if (not= sanitized-kw e) sanitized-kw e))
validate-import-txs-keeps-data-and-reports-real-errors deps/db/src/logseq/db/sqlite/export.cljs disallowed-key-error? = → not= (some #(= "disallowed key" %)
validate-import-txs-keeps-data-and-reports-real-errors deps/db/src/logseq/db/sqlite/export.cljs remove-disallowed-key-datoms and → or (and (vector? tx)
page-export-keeps-referenced-recycled-closed-values deps/db/src/logseq/db/sqlite/export.cljs referenced-property-value-contents if → if-not (if (= :db.type/ref (:db/valueType property))
page-export-keeps-referenced-recycled-closed-values deps/db/src/logseq/db/sqlite/export.cljs referenced-property-value-contents = → not= (if (= :db.type/ref (:db/valueType property))
graph-export-keeps-user-closed-values-of-blocks deps/db/src/logseq/db/sqlite/export.cljs build-blocks-export or → and (let [*properties (atom (or (get-in opts [:graph-ontology :properties]) {}))
graph-export-keeps-property-and-class-aliases deps/db/src/logseq/db/sqlite/export.cljs build-export-properties not → identity (and (not shallow-copy?) include-alias? (:block/alias property))
graph-export-keeps-property-and-class-aliases deps/db/src/logseq/db/sqlite/export.cljs build-export-class not → identity (and (not shallow-copy?) include-alias? (:block/alias class-ent))
class-page-export-shallow-copies-class-properties deps/db/src/logseq/db/sqlite/export.cljs build-page-export* true → false {:properties (build-export-properties db props {:shallow-copy? true})})
property-page-export-imports-the-property deps/db/src/logseq/db/sqlite/export.cljs build-export-properties true → false (assoc :block/uuid (:block/uuid property) :build/keep-uuid? true)
page-export-exports-property-value-children-only-inside-the-value deps/db/src/logseq/db/sqlite/export.cljs pvalue-descendant? if-not → if (if-not parent
graph-export-excluding-namespaces-imports-their-used-properties deps/db/src/logseq/db/sqlite/export.cljs basic-validate-export when-not → when (when-not (seq (:exclude-namespaces graph-options)) (sqlite-build/validate-optio
graph-export-excluding-namespaces-imports-their-used-properties deps/db/src/logseq/db/sqlite/export.cljs basic-validate-export seq → empty? (when-not (seq (:exclude-namespaces graph-options)) (sqlite-build/validate-optio
graph-export-excluding-namespaces-imports-their-used-properties deps/db/src/logseq/db/sqlite/export.cljs basic-validate-export empty? → seq (empty? (:exclude-namespaces graph-options))
graph-export-excluding-namespaces-imports-their-used-properties deps/db/src/logseq/db/sqlite/export.cljs build-import if → if-not export-map' (if (and (#{:graph :graph-human} (::export-type export-map*)) (seq (
graph-export-excluding-namespaces-imports-their-used-properties deps/db/src/logseq/db/sqlite/export.cljs build-import seq → empty? export-map' (if (and (#{:graph :graph-human} (::export-type export-map*)) (seq (
page-export-imported-with-current-block-imports-the-page deps/db/src/logseq/db/sqlite/export.cljs build-import and → or (let [export-map (if (and (::block export-map*) current-block)
page-export-allows-node-values-that-are-property-value-blocks deps/db/src/logseq/db/sqlite/export.cljs find-undefined-uuids when → when-not (let [eid (when id [:block/uuid id])]
graph-export-of-undefined-property-is-rejected-unless-errors-are-caught deps/db/src/logseq/db/sqlite/export.cljs build-export if → if-not (if (get-in options [:graph-options :catch-validation-errors?])
fix-invalid-blocks-retracts-titled-orphan-that-has-uuid src/main/frontend/worker/db/validate.cljs block-missing-uuid? and → or (and (nil? (:block/uuid entity))
fix-invalid-blocks-retracts-untagged-external-url-block src/main/frontend/worker/db/validate.cljs fix-invalid-blocks! nil? → some? (nil? (:block/tags entity)))
fix-invalid-blocks-keeps-block-whose-created-by-ref-is-an-entity src/main/frontend/worker/db/validate.cljs fix-invalid-blocks! not → identity (not (de/entity? (:logseq.property/created-by-ref entity))))
fix-invalid-blocks-removes-page-tag-from-property-only src/main/frontend/worker/db/validate.cljs fix-invalid-blocks! and → or (and (ldb/property? entity)
fix-invalid-blocks-removes-page-tag-from-property-only src/main/frontend/worker/db/validate.cljs fix-invalid-blocks! and → or (and (ldb/property? entity)
fix-invalid-blocks-removes-page-tag-from-class-and-keeps-its-ident-and-extends src/main/frontend/worker/db/validate.cljs fix-invalid-blocks! and → or (and (ldb/class? entity) (:kv/value entity))
fix-invalid-blocks-removes-page-tag-from-class-and-keeps-its-ident-and-extends src/main/frontend/worker/db/validate.cljs fix-invalid-blocks! and → or (and (ldb/property? entity)
fix-invalid-blocks-removes-page-tag-from-class-and-keeps-its-ident-and-extends src/main/frontend/worker/db/validate.cljs fix-invalid-blocks! nil? → some? (and (ldb/class? entity) (nil? (:db/ident entity)) (:block/title entity))
fix-invalid-blocks-puts-description-block-under-its-property src/main/frontend/worker/db/validate.cljs fix-invalid-blocks! = → not= (= (:block/title (:logseq.property/created-from-property entity)) "description")
fix-invalid-blocks-puts-description-block-under-its-property src/main/frontend/worker/db/validate.cljs fix-invalid-blocks! nil? → some? (nil? (:block/page entity)))
fix-invalid-blocks-replaces-class-used-as-property-by-same-titled-property src/main/frontend/worker/db/validate.cljs fix-invalid-blocks! when → when-not (when (ldb/class? entity)
fix-invalid-blocks-replaces-class-used-as-property-by-same-titled-property src/main/frontend/worker/db/validate.cljs fix-invalid-blocks! if → if-not (if property
validate-db-retracts-non-closed-values-and-keeps-closed-ones src/main/frontend/worker/db/validate.cljs fix-non-closed-values! if → if-not matches (if (every? de/entity? closed-values)
validate-db-retracts-non-closed-values-and-keeps-closed-ones src/main/frontend/worker/db/validate.cljs fix-non-closed-values! when-not → when (when-not (or (matches v)
validate-db-retracts-non-closed-values-and-keeps-closed-ones src/main/frontend/worker/db/validate.cljs fix-non-closed-values! or → and (when-not (or (matches v)
validate-db-retracts-non-closed-values-and-keeps-closed-ones src/main/frontend/worker/db/validate.cljs fix-non-closed-values! = → not= (= :logseq.property/empty-placeholder (:db/ident (d/entity db v))))
validate-db-retracts-non-closed-values-and-keeps-closed-ones src/main/frontend/worker/db/validate.cljs validate-db when → when-not (when fix
fix-extends-cardinality-makes-extends-cardinality-many src/main/frontend/worker/db/validate.cljs fix-extends-cardinality! when → when-not (when (not= :db.cardinality/many (:db/cardinality (d/entity @conn :logseq.proper
fix-extends-cardinality-makes-extends-cardinality-many src/main/frontend/worker/db/validate.cljs fix-extends-cardinality! not= → = (when (not= :db.cardinality/many (:db/cardinality (d/entity @conn :logseq.proper
fix-icon-wrong-type-retracts-ref-value-type src/main/frontend/worker/db/validate.cljs fix-icon-wrong-type! when → when-not (when (= :db.type/ref (:db/valueType icon))
fix-icon-wrong-type-retracts-ref-value-type src/main/frontend/worker/db/validate.cljs fix-icon-wrong-type! = → not= (when (= :db.type/ref (:db/valueType icon))
fix-num-prefix-db-idents-renames-property-its-values-and-hidden-columns src/main/frontend/worker/db/validate.cljs fix-num-prefix-db-idents! when → when-not (when property
fix-num-prefix-db-idents-renames-property-its-values-and-hidden-columns src/main/frontend/worker/db/validate.cljs fix-num-prefix-db-idents! when → when-not (when (re-find #"^(\d)" (name (:v d)))
fix-num-prefix-db-idents-renames-property-its-values-and-hidden-columns src/main/frontend/worker/db/validate.cljs fix-num-prefix-db-idents! when → when-not (when (seq tx-data')
fix-num-prefix-db-idents-renames-property-its-values-and-hidden-columns src/main/frontend/worker/db/validate.cljs fix-num-prefix-db-idents! seq → empty? (when (seq tx-data')
fix-missing-internal-page-parent-orders-orders-child-page-as-a-repair src/main/frontend/worker/db/validate.cljs fix-missing-internal-page-parent-orders! when → when-not (when (seq tx-data)
fix-missing-internal-page-parent-orders-orders-child-page-as-a-repair src/main/frontend/worker/db/validate.cljs fix-missing-internal-page-parent-orders! seq → empty? (when (seq tx-data)
validate-db-orders-child-page-that-also-misses-updated-at src/main/frontend/worker/db/validate.cljs fix-missing-internal-page-parent-orders! true → false (let [report (ldb/transact! conn tx-data {:fix-db? true})]
validate-db-notifies-valid-graph src/main/frontend/worker/db/validate.cljs validate-db if → if-not (if errors
refs-are-rebuilt-only-for-outliner-ops-that-change-content-test src/main/frontend/worker/pipeline.cljs refs-need-recalculated? or → and (not (or
refs-are-rebuilt-only-for-outliner-ops-that-change-content-test src/main/frontend/worker/pipeline.cljs rebuild-block-refs and → or (when (or (and (:outliner-op tx-meta) (refs-need-recalculated? tx-meta))
refs-are-rebuilt-only-for-outliner-ops-that-change-content-test src/main/frontend/worker/pipeline.cljs transact-pipeline and → or block-refs (when (and (or derive-extra-data?
tag-template-inserts-fresh-copies-of-all-children-in-order-test src/main/frontend/worker/pipeline.cljs insert-tag-templates and → or journal-template? (some (fn [d] (and (:added d)
tag-template-inserts-fresh-copies-of-all-children-in-order-test src/main/frontend/worker/pipeline.cljs insert-tag-templates = → not= (= (:v d) journal-id)))
tag-template-inserts-fresh-copies-of-all-children-in-order-test src/main/frontend/worker/pipeline.cljs insert-tag-templates first → last (->> (cons (assoc (first template-children)
undo-tag-addition-does-not-insert-the-tag-template-test src/main/frontend/worker/pipeline.cljs compute-extra-tx-data or → and insert-templates-tx (when-not (or (rtc-tx-or-download-graph? tx-meta)
journal-template-blocks-get-uuids-derived-from-the-new-journal-test src/main/frontend/worker/pipeline.cljs insert-tag-templates when → when-not journal-page (some (fn [d] (when (and (= :block/journal-day (:a d)) (:added d))
journal-template-blocks-get-uuids-derived-from-the-new-journal-test src/main/frontend/worker/pipeline.cljs insert-tag-templates and → or journal-page (some (fn [d] (when (and (= :block/journal-day (:a d)) (:added d))
journal-template-blocks-get-uuids-derived-from-the-new-journal-test src/main/frontend/worker/pipeline.cljs insert-tag-templates = → not= journal-page (some (fn [d] (when (and (= :block/journal-day (:a d)) (:added d))
journal-template-blocks-get-uuids-derived-from-the-new-journal-test src/main/frontend/worker/pipeline.cljs insert-tag-templates = → not= (= (:a d) :block/tags)
journal-template-blocks-get-uuids-derived-from-the-new-journal-test src/main/frontend/worker/pipeline.cljs insert-tag-templates = → not= (= (:v d) journal-id)))
fix-page-tags-test src/main/frontend/worker/pipeline.cljs fix-page-tags = → not= (= (:db/id page-tag) (:v datom))
fix-page-tags-test src/main/frontend/worker/pipeline.cljs fix-page-tags and → or (when (and (seq tags)
fix-page-tags-test src/main/frontend/worker/pipeline.cljs fix-page-tags seq → empty? (when (and (seq tags)
inline-built-in-page-class-is-removed-from-block-title-test src/main/frontend/worker/pipeline.cljs fix-inline-built-in-page-classes when-not → when (when-not (rtc-tx-or-download-graph? tx-meta)
inline-built-in-page-class-is-removed-from-block-title-test src/main/frontend/worker/pipeline.cljs fix-inline-built-in-page-classes = → not= (when (and (= :block/tags (:a datom))
inline-built-in-page-class-is-removed-from-block-title-test src/main/frontend/worker/pipeline.cljs fix-inline-built-in-page-classes or → and title (or (:block/raw-title entity) (:block/title entity))
block-tagged-page-becomes-a-page-test src/main/frontend/worker/pipeline.cljs toggle-page-and-block = → not= page-tag-update? (and (= :block/tags (:a datom))
block-tagged-page-becomes-a-page-test src/main/frontend/worker/pipeline.cljs toggle-page-and-block and → or move-under-page? (and added-parent?
block-tagged-page-becomes-a-page-test src/main/frontend/worker/pipeline.cljs toggle-page-and-block when → when-not (when (and child (not (ldb/page? child)))
block-tagged-page-becomes-a-page-test src/main/frontend/worker/pipeline.cljs toggle-page-and-block and → or (when (and child (not (ldb/page? child)))
block-tagged-page-becomes-a-page-test src/main/frontend/worker/pipeline.cljs toggle-page-and-block not → identity (when (and child (not (ldb/page? child)))
block-tagged-page-becomes-a-page-test src/main/frontend/worker/pipeline.cljs toggle-page-and-block or → and (or (nil? block-before) (not (ldb/page? block-before))))
block-tagged-page-becomes-a-page-test src/main/frontend/worker/pipeline.cljs toggle-page-and-block not → identity (or (nil? block-before) (not (ldb/page? block-before))))
block-moved-to-library-becomes-a-page-test src/main/frontend/worker/pipeline.cljs toggle-page-and-block not → identity (and move-to-library? (not (ldb/page? block-after)))
class-page-tagged-page-does-not-move-its-parent-to-library-test src/main/frontend/worker/pipeline.cljs toggle-page-and-block and → or move-under-page? (and added-parent?
class-page-tagged-page-does-not-move-its-parent-to-library-test src/main/frontend/worker/pipeline.cljs toggle-page-and-block nil? → some? (or (nil? block-before) (not (ldb/page? block-before))))
class-page-tagged-page-does-not-move-its-parent-to-library-test src/main/frontend/worker/pipeline.cljs toggle-page-and-block not → identity (or (nil? block-before) (not (ldb/page? block-before))))
block-on-class-page-converted-to-page-drops-class-parent-test src/main/frontend/worker/pipeline.cljs toggle-page-and-block = → not= page-tag-update? (and (= :block/tags (:a datom))
block-on-class-page-converted-to-page-drops-class-parent-test src/main/frontend/worker/pipeline.cljs toggle-page-and-block and → or move-under-page? (and added-parent?
block-on-class-page-converted-to-page-drops-class-parent-test src/main/frontend/worker/pipeline.cljs toggle-page-and-block or → and (or (nil? block-before) (not (ldb/page? block-before))))
block-on-class-page-converted-to-page-drops-class-parent-test src/main/frontend/worker/pipeline.cljs toggle-page-and-block not → identity (or (nil? block-before) (not (ldb/page? block-before))))
block-on-class-page-converted-to-page-drops-class-parent-test src/main/frontend/worker/pipeline.cljs toggle-page-and-block or → and (when (or (ldb/class? block-parent) (ldb/property? block-parent))
display-type-adds-its-class-test src/main/frontend/worker/pipeline.cljs add-missing-properties-to-typed-display-blocks = → not= (and (= (:a d) :logseq.property.node/display-type) (keyword? (:v d)) (:added d))
query-and-comments-properties-test src/main/frontend/worker/pipeline.cljs ensure-query-property-on-tag-additions and → or (when (and query-class
query-and-comments-properties-test src/main/frontend/worker/pipeline.cljs ensure-query-property-on-tag-additions and → or (filter (fn [d] (and (= :block/tags (:a d)) (:added d))))
query-and-comments-properties-test src/main/frontend/worker/pipeline.cljs ensure-comments-blocks-property-on-tag-additions and → or (when (and comments-class
query-and-comments-properties-test src/main/frontend/worker/pipeline.cljs ensure-comments-blocks-property-on-tag-additions and → or (when (and (= :block/tags (:a datom))
query-and-comments-properties-test src/main/frontend/worker/pipeline.cljs ensure-comments-blocks-property-on-tag-additions and → or (when (and (:block/parent block)
created-by-ref-is-added-to-new-blocks-except-on-undo-test src/main/frontend/worker/pipeline.cljs add-created-by-ref-hook when → when-not (when (and (not (or (:undo? tx-meta) (:redo? tx-meta) (rtc-tx-or-download-graph?
created-by-ref-is-added-to-new-blocks-except-on-undo-test src/main/frontend/worker/pipeline.cljs add-created-by-ref-hook and → or (when (and (not (or (:undo? tx-meta) (:redo? tx-meta) (rtc-tx-or-download-graph?
created-by-ref-is-added-to-new-blocks-except-on-undo-test src/main/frontend/worker/pipeline.cljs add-created-by-ref-hook not → identity (when (and (not (or (:undo? tx-meta) (:redo? tx-meta) (rtc-tx-or-download-graph?
created-by-ref-is-added-to-new-blocks-except-on-undo-test src/main/frontend/worker/pipeline.cljs add-created-by-ref-hook or → and (when (and (not (or (:undo? tx-meta) (:redo? tx-meta) (rtc-tx-or-download-graph?
created-by-ref-is-added-to-new-blocks-except-on-undo-test src/main/frontend/worker/pipeline.cljs add-created-by-ref-hook seq → empty? (seq tx-data))
built-in-protected-attrs-are-reverted-except-in-fix-db-test src/main/frontend/worker/pipeline.cljs revert-disallowed-changes or → and (when-not (or (rtc-tx-or-download-graph? tx-meta)
undo-of-task-done-does-not-reschedule-test src/main/frontend/worker/pipeline.cljs compute-extra-tx-data or → and commands-tx (when-not (or (:undo? tx-meta)
reference-attrs-follow-public-and-private-ref-properties-test src/main/frontend/worker/pipeline.cljs reference-attrs false → true (d/datoms db :avet :logseq.property/public? false))]
new-ref-property-is-a-reference-attr-in-later-transactions-test src/main/frontend/worker/pipeline.cljs projected-reference-owner-ids when-not → when (do (when-not reference-attrs-changed?
invoke-hooks-lists-only-deleted-assets-test src/main/frontend/worker/pipeline.cljs invoke-hooks-default when → when-not (when (ldb/asset? e)

yuxi-liu-wired added a commit to yuxi-liu-wired/logseq that referenced this pull request Oct 12, 2026
yuxi-liu-wired added a commit to yuxi-liu-wired/logseq that referenced this pull request Oct 13, 2026
yuxi-liu-wired added a commit to yuxi-liu-wired/logseq that referenced this pull request Oct 16, 2026
@yuxi-liu-wired
yuxi-liu-wired force-pushed the test/mutation-tests-3 branch 5 times, most recently from 7febfd9 to f369554 Compare October 22, 2026 11:01
@yuxi-liu-wired
yuxi-liu-wired force-pushed the test/mutation-tests-3 branch 5 times, most recently from ce922a7 to b2222d8 Compare October 31, 2026 11:00
@yuxi-liu-wired
yuxi-liu-wired force-pushed the test/mutation-tests-3 branch 6 times, most recently from 7bdab35 to 0d9ab6d Compare November 18, 2026 13:59

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

1 participant