Repository navigation
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
Open
yuxi-liu-wired wants to merge 7 commits into
yuxi-liu-wired wants to merge 7 commits into
Conversation
yuxi-liu-wired
added a commit
to yuxi-liu-wired/logseq
that referenced
this pull request
Oct 12, 2026
This was referenced 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
force-pushed
the
test/mutation-tests-3
branch
5 times, most recently
from
October 22, 2026 11:01
7febfd9 to
f369554
Compare
yuxi-liu-wired
force-pushed
the
test/mutation-tests-3
branch
5 times, most recently
from
October 31, 2026 11:00
ce922a7 to
b2222d8
Compare
yuxi-liu-wired
force-pushed
the
test/mutation-tests-3
branch
from
November 3, 2026 12:00
b2222d8 to
562423d
Compare
yuxi-liu-wired
force-pushed
the
test/mutation-tests-3
branch
6 times, most recently
from
November 18, 2026 13:59
7bdab35 to
0d9ab6d
Compare
yuxi-liu-wired
force-pushed
the
test/mutation-tests-3
branch
from
November 18, 2026 14:37
0d9ab6d to
606ecc1
Compare
…, aliases, excluded namespaces, imports
…y pages, tempids, uuid datoms, page retracts
…ery and comments, built-ins
yuxi-liu-wired
force-pushed
the
test/mutation-tests-3
branch
from
November 19, 2026 12:00
606ecc1 to
72a65c8
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 (
=tonot=,andtoor,firsttolast,whentowhen-not,truetofalseand 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)::nodevalues that point at property value blocksdeps/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 repairsfix-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
logseq.db.sqlite.export-mutation-test19 tests, 35 assertions (nbb);logseq.db-sync.checksum-mutation-test,frontend.worker.db.validate-mutation-test,frontend.worker.pipeline-mutation-test46 tests, 101 assertions (app test build); 0 failures, 0 errors.deps/dbanddeps/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.
tag-only-page-edit-changes-incremental-checksum-testdeps/db-sync/src/logseq/db_sync/checksum.cljseligible-datoms?=→not=(or (boolean (some #(and (= :block/tags (:a %))non-page-tagged-block-edit-leaves-checksum-testdeps/db-sync/src/logseq/db_sync/checksum.cljseligible-datoms?and→or(or (boolean (some #(and (= :block/tags (:a %))uuid-string-entity-edit-matches-recompute-testdeps/db-sync/src/logseq/db_sync/checksum.cljsparse-uuid-stringwhen→when-not(when (string? value)new-block-with-non-uuid-tempid-matches-recompute-testdeps/db-sync/src/logseq/db_sync/checksum.cljstx-item-eids=→not=(and (= op :db/add) (= attr :block/uuid))parent-with-2-uuid-datoms-normalizes-to-its-first-uuid-testdeps/db-sync/src/logseq/db_sync/checksum.cljsget-block-uuidfirst→last(:v (first (d/datoms db :eavt eid :block/uuid))))page-with-false-then-true-built-in-datoms-counts-testdeps/db-sync/src/logseq/db_sync/checksum.cljsrecompute-statetrue→false(set! (.-built-in-seen? w) true)retracted-page-drops-its-blocks-from-incremental-checksum-testdeps/db-sync/src/logseq/db_sync/checksum.cljsnet-tuple-deltaor→and(or (checksum-eligible-entity? db-before eid)page-export-includes-alias-pagesdeps/db/src/logseq/db/sqlite/export.cljsbuild-page-exportwhen→when-notalias-export (when (:block/alias page-entity)page-export-keeps-user-closed-valuesdeps/db/src/logseq/db/sqlite/export.cljsbuildable-propertiesor→and(or (:block/closed-value-property v)page-export-keeps-user-closed-valuesdeps/db/src/logseq/db/sqlite/export.cljsbuildable-propertiesor→and(or (some #(when (= (:value %) (db-property/property-value-content val))page-export-keeps-user-closed-valuesdeps/db/src/logseq/db/sqlite/export.cljsbuildable-propertieswhen→when-not(or (some #(when (= (:value %) (db-property/property-value-content val))page-export-keeps-user-closed-valuesdeps/db/src/logseq/db/sqlite/export.cljsbuildable-properties=→not=(or (some #(when (= (:value %) (db-property/property-value-content val))page-export-keeps-property-value-childrendeps/db/src/logseq/db/sqlite/export.cljsbuildable-propertieswhen→when-notbuild-children (when (seq child-blocks)page-export-keeps-property-value-childrendeps/db/src/logseq/db/sqlite/export.cljsbuildable-propertiesseq→empty?build-children (when (seq child-blocks)page-export-keeps-property-value-childrendeps/db/src/logseq/db/sqlite/export.cljsbuild-node-exportfalse→true:or {include-uuid-fn (constantly false)}selected-nodes-export-shallow-copies-selected-class-pagesdeps/db/src/logseq/db/sqlite/export.cljsbuild-nodes-exporttrue→false(build-mixed-properties-and-classes-export db node-pages {:shallow-copy? true})graph-export-excludes-namespacesdeps/db/src/logseq/db/sqlite/export.cljsbuild-graph-ontology-exportwhen→when-not(let [exclude-regex (when (seq exclude-namespaces)graph-export-excludes-namespacesdeps/db/src/logseq/db/sqlite/export.cljsbuild-graph-ontology-exportseq→empty?(let [exclude-regex (when (seq exclude-namespaces)graph-export-patches-invalid-keywords-only-for-old-graphsdeps/db/src/logseq/db/sqlite/export.cljspatch-invalid-keywords=→not=(let [initial-version (:kv/value (first (filter #(= :logseq.kv/graph-initial-schgraph-export-patches-invalid-keywords-only-for-old-graphsdeps/db/src/logseq/db/sqlite/export.cljspatch-invalid-keywordsif→if-not(if (some-> initial-version (db-schema/compare-schema-version {:major 64 :minorgraph-export-patches-invalid-keywords-only-for-old-graphsdeps/db/src/logseq/db/sqlite/export.cljspatch-invalid-keywordsif→if-not(if (not= sanitized-kw e) sanitized-kw e))graph-export-patches-invalid-keywords-only-for-old-graphsdeps/db/src/logseq/db/sqlite/export.cljspatch-invalid-keywordsnot=→=(if (not= sanitized-kw e) sanitized-kw e))validate-import-txs-keeps-data-and-reports-real-errorsdeps/db/src/logseq/db/sqlite/export.cljsdisallowed-key-error?=→not=(some #(= "disallowed key" %)validate-import-txs-keeps-data-and-reports-real-errorsdeps/db/src/logseq/db/sqlite/export.cljsremove-disallowed-key-datomsand→or(and (vector? tx)page-export-keeps-referenced-recycled-closed-valuesdeps/db/src/logseq/db/sqlite/export.cljsreferenced-property-value-contentsif→if-not(if (= :db.type/ref (:db/valueType property))page-export-keeps-referenced-recycled-closed-valuesdeps/db/src/logseq/db/sqlite/export.cljsreferenced-property-value-contents=→not=(if (= :db.type/ref (:db/valueType property))graph-export-keeps-user-closed-values-of-blocksdeps/db/src/logseq/db/sqlite/export.cljsbuild-blocks-exportor→and(let [*properties (atom (or (get-in opts [:graph-ontology :properties]) {}))graph-export-keeps-property-and-class-aliasesdeps/db/src/logseq/db/sqlite/export.cljsbuild-export-propertiesnot→identity(and (not shallow-copy?) include-alias? (:block/alias property))graph-export-keeps-property-and-class-aliasesdeps/db/src/logseq/db/sqlite/export.cljsbuild-export-classnot→identity(and (not shallow-copy?) include-alias? (:block/alias class-ent))class-page-export-shallow-copies-class-propertiesdeps/db/src/logseq/db/sqlite/export.cljsbuild-page-export*true→false{:properties (build-export-properties db props {:shallow-copy? true})})property-page-export-imports-the-propertydeps/db/src/logseq/db/sqlite/export.cljsbuild-export-propertiestrue→false(assoc :block/uuid (:block/uuid property) :build/keep-uuid? true)page-export-exports-property-value-children-only-inside-the-valuedeps/db/src/logseq/db/sqlite/export.cljspvalue-descendant?if-not→if(if-not parentgraph-export-excluding-namespaces-imports-their-used-propertiesdeps/db/src/logseq/db/sqlite/export.cljsbasic-validate-exportwhen-not→when(when-not (seq (:exclude-namespaces graph-options)) (sqlite-build/validate-optiograph-export-excluding-namespaces-imports-their-used-propertiesdeps/db/src/logseq/db/sqlite/export.cljsbasic-validate-exportseq→empty?(when-not (seq (:exclude-namespaces graph-options)) (sqlite-build/validate-optiograph-export-excluding-namespaces-imports-their-used-propertiesdeps/db/src/logseq/db/sqlite/export.cljsbasic-validate-exportempty?→seq(empty? (:exclude-namespaces graph-options))graph-export-excluding-namespaces-imports-their-used-propertiesdeps/db/src/logseq/db/sqlite/export.cljsbuild-importif→if-notexport-map' (if (and (#{:graph :graph-human} (::export-type export-map*)) (seq (graph-export-excluding-namespaces-imports-their-used-propertiesdeps/db/src/logseq/db/sqlite/export.cljsbuild-importseq→empty?export-map' (if (and (#{:graph :graph-human} (::export-type export-map*)) (seq (page-export-imported-with-current-block-imports-the-pagedeps/db/src/logseq/db/sqlite/export.cljsbuild-importand→or(let [export-map (if (and (::block export-map*) current-block)page-export-allows-node-values-that-are-property-value-blocksdeps/db/src/logseq/db/sqlite/export.cljsfind-undefined-uuidswhen→when-not(let [eid (when id [:block/uuid id])]graph-export-of-undefined-property-is-rejected-unless-errors-are-caughtdeps/db/src/logseq/db/sqlite/export.cljsbuild-exportif→if-not(if (get-in options [:graph-options :catch-validation-errors?])fix-invalid-blocks-retracts-titled-orphan-that-has-uuidsrc/main/frontend/worker/db/validate.cljsblock-missing-uuid?and→or(and (nil? (:block/uuid entity))fix-invalid-blocks-retracts-untagged-external-url-blocksrc/main/frontend/worker/db/validate.cljsfix-invalid-blocks!nil?→some?(nil? (:block/tags entity)))fix-invalid-blocks-keeps-block-whose-created-by-ref-is-an-entitysrc/main/frontend/worker/db/validate.cljsfix-invalid-blocks!not→identity(not (de/entity? (:logseq.property/created-by-ref entity))))fix-invalid-blocks-removes-page-tag-from-property-onlysrc/main/frontend/worker/db/validate.cljsfix-invalid-blocks!and→or(and (ldb/property? entity)fix-invalid-blocks-removes-page-tag-from-property-onlysrc/main/frontend/worker/db/validate.cljsfix-invalid-blocks!and→or(and (ldb/property? entity)fix-invalid-blocks-removes-page-tag-from-class-and-keeps-its-ident-and-extendssrc/main/frontend/worker/db/validate.cljsfix-invalid-blocks!and→or(and (ldb/class? entity) (:kv/value entity))fix-invalid-blocks-removes-page-tag-from-class-and-keeps-its-ident-and-extendssrc/main/frontend/worker/db/validate.cljsfix-invalid-blocks!and→or(and (ldb/property? entity)fix-invalid-blocks-removes-page-tag-from-class-and-keeps-its-ident-and-extendssrc/main/frontend/worker/db/validate.cljsfix-invalid-blocks!nil?→some?(and (ldb/class? entity) (nil? (:db/ident entity)) (:block/title entity))fix-invalid-blocks-puts-description-block-under-its-propertysrc/main/frontend/worker/db/validate.cljsfix-invalid-blocks!=→not=(= (:block/title (:logseq.property/created-from-property entity)) "description")fix-invalid-blocks-puts-description-block-under-its-propertysrc/main/frontend/worker/db/validate.cljsfix-invalid-blocks!nil?→some?(nil? (:block/page entity)))fix-invalid-blocks-replaces-class-used-as-property-by-same-titled-propertysrc/main/frontend/worker/db/validate.cljsfix-invalid-blocks!when→when-not(when (ldb/class? entity)fix-invalid-blocks-replaces-class-used-as-property-by-same-titled-propertysrc/main/frontend/worker/db/validate.cljsfix-invalid-blocks!if→if-not(if propertyvalidate-db-retracts-non-closed-values-and-keeps-closed-onessrc/main/frontend/worker/db/validate.cljsfix-non-closed-values!if→if-notmatches (if (every? de/entity? closed-values)validate-db-retracts-non-closed-values-and-keeps-closed-onessrc/main/frontend/worker/db/validate.cljsfix-non-closed-values!when-not→when(when-not (or (matches v)validate-db-retracts-non-closed-values-and-keeps-closed-onessrc/main/frontend/worker/db/validate.cljsfix-non-closed-values!or→and(when-not (or (matches v)validate-db-retracts-non-closed-values-and-keeps-closed-onessrc/main/frontend/worker/db/validate.cljsfix-non-closed-values!=→not=(= :logseq.property/empty-placeholder (:db/ident (d/entity db v))))validate-db-retracts-non-closed-values-and-keeps-closed-onessrc/main/frontend/worker/db/validate.cljsvalidate-dbwhen→when-not(when fixfix-extends-cardinality-makes-extends-cardinality-manysrc/main/frontend/worker/db/validate.cljsfix-extends-cardinality!when→when-not(when (not= :db.cardinality/many (:db/cardinality (d/entity @conn :logseq.properfix-extends-cardinality-makes-extends-cardinality-manysrc/main/frontend/worker/db/validate.cljsfix-extends-cardinality!not=→=(when (not= :db.cardinality/many (:db/cardinality (d/entity @conn :logseq.properfix-icon-wrong-type-retracts-ref-value-typesrc/main/frontend/worker/db/validate.cljsfix-icon-wrong-type!when→when-not(when (= :db.type/ref (:db/valueType icon))fix-icon-wrong-type-retracts-ref-value-typesrc/main/frontend/worker/db/validate.cljsfix-icon-wrong-type!=→not=(when (= :db.type/ref (:db/valueType icon))fix-num-prefix-db-idents-renames-property-its-values-and-hidden-columnssrc/main/frontend/worker/db/validate.cljsfix-num-prefix-db-idents!when→when-not(when propertyfix-num-prefix-db-idents-renames-property-its-values-and-hidden-columnssrc/main/frontend/worker/db/validate.cljsfix-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-columnssrc/main/frontend/worker/db/validate.cljsfix-num-prefix-db-idents!when→when-not(when (seq tx-data')fix-num-prefix-db-idents-renames-property-its-values-and-hidden-columnssrc/main/frontend/worker/db/validate.cljsfix-num-prefix-db-idents!seq→empty?(when (seq tx-data')fix-missing-internal-page-parent-orders-orders-child-page-as-a-repairsrc/main/frontend/worker/db/validate.cljsfix-missing-internal-page-parent-orders!when→when-not(when (seq tx-data)fix-missing-internal-page-parent-orders-orders-child-page-as-a-repairsrc/main/frontend/worker/db/validate.cljsfix-missing-internal-page-parent-orders!seq→empty?(when (seq tx-data)validate-db-orders-child-page-that-also-misses-updated-atsrc/main/frontend/worker/db/validate.cljsfix-missing-internal-page-parent-orders!true→false(let [report (ldb/transact! conn tx-data {:fix-db? true})]validate-db-notifies-valid-graphsrc/main/frontend/worker/db/validate.cljsvalidate-dbif→if-not(if errorsrefs-are-rebuilt-only-for-outliner-ops-that-change-content-testsrc/main/frontend/worker/pipeline.cljsrefs-need-recalculated?or→and(not (orrefs-are-rebuilt-only-for-outliner-ops-that-change-content-testsrc/main/frontend/worker/pipeline.cljsrebuild-block-refsand→or(when (or (and (:outliner-op tx-meta) (refs-need-recalculated? tx-meta))refs-are-rebuilt-only-for-outliner-ops-that-change-content-testsrc/main/frontend/worker/pipeline.cljstransact-pipelineand→orblock-refs (when (and (or derive-extra-data?tag-template-inserts-fresh-copies-of-all-children-in-order-testsrc/main/frontend/worker/pipeline.cljsinsert-tag-templatesand→orjournal-template? (some (fn [d] (and (:added d)tag-template-inserts-fresh-copies-of-all-children-in-order-testsrc/main/frontend/worker/pipeline.cljsinsert-tag-templates=→not=(= (:v d) journal-id)))tag-template-inserts-fresh-copies-of-all-children-in-order-testsrc/main/frontend/worker/pipeline.cljsinsert-tag-templatesfirst→last(->> (cons (assoc (first template-children)undo-tag-addition-does-not-insert-the-tag-template-testsrc/main/frontend/worker/pipeline.cljscompute-extra-tx-dataor→andinsert-templates-tx (when-not (or (rtc-tx-or-download-graph? tx-meta)journal-template-blocks-get-uuids-derived-from-the-new-journal-testsrc/main/frontend/worker/pipeline.cljsinsert-tag-templateswhen→when-notjournal-page (some (fn [d] (when (and (= :block/journal-day (:a d)) (:added d))journal-template-blocks-get-uuids-derived-from-the-new-journal-testsrc/main/frontend/worker/pipeline.cljsinsert-tag-templatesand→orjournal-page (some (fn [d] (when (and (= :block/journal-day (:a d)) (:added d))journal-template-blocks-get-uuids-derived-from-the-new-journal-testsrc/main/frontend/worker/pipeline.cljsinsert-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-testsrc/main/frontend/worker/pipeline.cljsinsert-tag-templates=→not=(= (:a d) :block/tags)journal-template-blocks-get-uuids-derived-from-the-new-journal-testsrc/main/frontend/worker/pipeline.cljsinsert-tag-templates=→not=(= (:v d) journal-id)))fix-page-tags-testsrc/main/frontend/worker/pipeline.cljsfix-page-tags=→not=(= (:db/id page-tag) (:v datom))fix-page-tags-testsrc/main/frontend/worker/pipeline.cljsfix-page-tagsand→or(when (and (seq tags)fix-page-tags-testsrc/main/frontend/worker/pipeline.cljsfix-page-tagsseq→empty?(when (and (seq tags)inline-built-in-page-class-is-removed-from-block-title-testsrc/main/frontend/worker/pipeline.cljsfix-inline-built-in-page-classeswhen-not→when(when-not (rtc-tx-or-download-graph? tx-meta)inline-built-in-page-class-is-removed-from-block-title-testsrc/main/frontend/worker/pipeline.cljsfix-inline-built-in-page-classes=→not=(when (and (= :block/tags (:a datom))inline-built-in-page-class-is-removed-from-block-title-testsrc/main/frontend/worker/pipeline.cljsfix-inline-built-in-page-classesor→andtitle (or (:block/raw-title entity) (:block/title entity))block-tagged-page-becomes-a-page-testsrc/main/frontend/worker/pipeline.cljstoggle-page-and-block=→not=page-tag-update? (and (= :block/tags (:a datom))block-tagged-page-becomes-a-page-testsrc/main/frontend/worker/pipeline.cljstoggle-page-and-blockand→ormove-under-page? (and added-parent?block-tagged-page-becomes-a-page-testsrc/main/frontend/worker/pipeline.cljstoggle-page-and-blockwhen→when-not(when (and child (not (ldb/page? child)))block-tagged-page-becomes-a-page-testsrc/main/frontend/worker/pipeline.cljstoggle-page-and-blockand→or(when (and child (not (ldb/page? child)))block-tagged-page-becomes-a-page-testsrc/main/frontend/worker/pipeline.cljstoggle-page-and-blocknot→identity(when (and child (not (ldb/page? child)))block-tagged-page-becomes-a-page-testsrc/main/frontend/worker/pipeline.cljstoggle-page-and-blockor→and(or (nil? block-before) (not (ldb/page? block-before))))block-tagged-page-becomes-a-page-testsrc/main/frontend/worker/pipeline.cljstoggle-page-and-blocknot→identity(or (nil? block-before) (not (ldb/page? block-before))))block-moved-to-library-becomes-a-page-testsrc/main/frontend/worker/pipeline.cljstoggle-page-and-blocknot→identity(and move-to-library? (not (ldb/page? block-after)))class-page-tagged-page-does-not-move-its-parent-to-library-testsrc/main/frontend/worker/pipeline.cljstoggle-page-and-blockand→ormove-under-page? (and added-parent?class-page-tagged-page-does-not-move-its-parent-to-library-testsrc/main/frontend/worker/pipeline.cljstoggle-page-and-blocknil?→some?(or (nil? block-before) (not (ldb/page? block-before))))class-page-tagged-page-does-not-move-its-parent-to-library-testsrc/main/frontend/worker/pipeline.cljstoggle-page-and-blocknot→identity(or (nil? block-before) (not (ldb/page? block-before))))block-on-class-page-converted-to-page-drops-class-parent-testsrc/main/frontend/worker/pipeline.cljstoggle-page-and-block=→not=page-tag-update? (and (= :block/tags (:a datom))block-on-class-page-converted-to-page-drops-class-parent-testsrc/main/frontend/worker/pipeline.cljstoggle-page-and-blockand→ormove-under-page? (and added-parent?block-on-class-page-converted-to-page-drops-class-parent-testsrc/main/frontend/worker/pipeline.cljstoggle-page-and-blockor→and(or (nil? block-before) (not (ldb/page? block-before))))block-on-class-page-converted-to-page-drops-class-parent-testsrc/main/frontend/worker/pipeline.cljstoggle-page-and-blocknot→identity(or (nil? block-before) (not (ldb/page? block-before))))block-on-class-page-converted-to-page-drops-class-parent-testsrc/main/frontend/worker/pipeline.cljstoggle-page-and-blockor→and(when (or (ldb/class? block-parent) (ldb/property? block-parent))display-type-adds-its-class-testsrc/main/frontend/worker/pipeline.cljsadd-missing-properties-to-typed-display-blocks=→not=(and (= (:a d) :logseq.property.node/display-type) (keyword? (:v d)) (:added d))query-and-comments-properties-testsrc/main/frontend/worker/pipeline.cljsensure-query-property-on-tag-additionsand→or(when (and query-classquery-and-comments-properties-testsrc/main/frontend/worker/pipeline.cljsensure-query-property-on-tag-additionsand→or(filter (fn [d] (and (= :block/tags (:a d)) (:added d))))query-and-comments-properties-testsrc/main/frontend/worker/pipeline.cljsensure-comments-blocks-property-on-tag-additionsand→or(when (and comments-classquery-and-comments-properties-testsrc/main/frontend/worker/pipeline.cljsensure-comments-blocks-property-on-tag-additionsand→or(when (and (= :block/tags (:a datom))query-and-comments-properties-testsrc/main/frontend/worker/pipeline.cljsensure-comments-blocks-property-on-tag-additionsand→or(when (and (:block/parent block)created-by-ref-is-added-to-new-blocks-except-on-undo-testsrc/main/frontend/worker/pipeline.cljsadd-created-by-ref-hookwhen→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-testsrc/main/frontend/worker/pipeline.cljsadd-created-by-ref-hookand→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-testsrc/main/frontend/worker/pipeline.cljsadd-created-by-ref-hooknot→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-testsrc/main/frontend/worker/pipeline.cljsadd-created-by-ref-hookor→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-testsrc/main/frontend/worker/pipeline.cljsadd-created-by-ref-hookseq→empty?(seq tx-data))built-in-protected-attrs-are-reverted-except-in-fix-db-testsrc/main/frontend/worker/pipeline.cljsrevert-disallowed-changesor→and(when-not (or (rtc-tx-or-download-graph? tx-meta)undo-of-task-done-does-not-reschedule-testsrc/main/frontend/worker/pipeline.cljscompute-extra-tx-dataor→andcommands-tx (when-not (or (:undo? tx-meta)reference-attrs-follow-public-and-private-ref-properties-testsrc/main/frontend/worker/pipeline.cljsreference-attrsfalse→true(d/datoms db :avet :logseq.property/public? false))]new-ref-property-is-a-reference-attr-in-later-transactions-testsrc/main/frontend/worker/pipeline.cljsprojected-reference-owner-idswhen-not→when(do (when-not reference-attrs-changed?invoke-hooks-lists-only-deleted-assets-testsrc/main/frontend/worker/pipeline.cljsinvoke-hooks-defaultwhen→when-not(when (ldb/asset? e)