#Export Format: EDN

8 messages · Page 1 of 1 (latest)

twin ice
#
  1. The export to EDN form of nodes should also be available from the current UI for consistency.
  2. Exporting graph data to EDN to merge with another graph would be valuable.
    Example: After working on a prototype in a separate graph, one could add the content of the graph to a bigger one to enrich the knowledge.
slate hill
twin ice
#

Confirmed!

  1. is done. Thank you.
#

Export graph "Export EDN file" is throwing an error at the moment for me

db_worker.cljs:718 export-edn error:  TypeError: Cannot read properties of null (reading 'keys')
    at $me$tonsky$persistent_sorted_set$keys_for$$ (persistent_sorted_set.cljs:678:15)
    at $APP.$JSCompiler_prototypeAlias$$.$me$tonsky$persistent_sorted_set$IIter$_copy$arity$3$ (persistent_sorted_set.cljs:835:21)
    at $APP.$JSCompiler_prototypeAlias$$.$cljs$core$IChunkedNext$_chunked_next$arity$1$ (persistent_sorted_set.cljs:881:16)
    at $APP.$JSCompiler_prototypeAlias$$.$cljs$core$IChunkedSeq$_chunked_rest$arity$1$ (persistent_sorted_set.cljs:874:24)
    at $APP.$cljs$core$_chunked_rest$$ (core.cljs:850:19)
    at core.cljs:3721:4
    at $JSCompiler_StaticMethods_sval$$ (core.cljs:3511:18)
    at $APP.$JSCompiler_prototypeAlias$$.$cljs$core$ISeqable$_seq$arity$1$ (core.cljs:3568:12)
    at $APP.$cljs$core$seq$$ (core.cljs:1260:13)
    at core.cljs:5286:19
(anonymous) @ db_worker.cljs:718
$cljs$core$apply_to_simple$cljs$0core$0IFn$0_invoke$0arity$04$$ @ core.cljs:3996
$cljs$core$apply_to_simple$cljs$0core$0IFn$0_invoke$0arity$03$$ @ core.cljs:3991
$APP.$cljs$core$apply$$.$cljs$core$IFn$_invoke$arity$2$ @ core.cljs:3985
$APP.$frontend$common$thread_api$remote_function$$ @ thread_api.cljc:29
h @ comlink.js:110
#

Graph validation shows:
part 1

{:msg "Validation errors", :errors (
    {:entity {:block/tx-id 536959270, :block/uuid #uuid "67eaae25-5ac1-4c7e-a8fe-875f2ec10e6f", :block/properties [[{:db/ident :logseq.property/template-applied-to, :db/valueType :db.type/ref, :db/cardinality :db.cardinality/many, :logseq.property/type :class} #{17602}]], :block/updated-at 1743467976082, :block/refs #{7 15213 15215 17602 17619}, :block/created-at 1743433253548, :block/tags [{:db/ident :block/tags, :db/valueType :db.type/ref, :db/cardinality :db.cardinality/many, :logseq.property/type :class} #{15213} {:page-class-id 9655, :all-page-class-ids #{9653 9655 9654 56 9656}}], :block/title "template: Podcast", :db/id 17600, :block/path-refs #{353 17602 354 4 7 15213 15215 17619 9654}, :block/parent 15213, :block/order "a1", :block/page {:block/name "template", :block/tags #{{:db/id 9654}}, :db/id 15213, :block/created-at 1741615074078}}, :dispatch-key :block, :errors {84 {:block/properties {0 ["unknown error" "unknown error"]}, :block/order ["disallowed key"]}}} 
#

part 2

{:entity {:block/tx-id 536950389, :db/index true, :logseq.property/type :coll, :block/uuid #uuid "00000002-1702-3936-3300-000000000000", :block/properties [[{:db/ident :logseq.property/built-in?, :db/cardinality :db.cardinality/one, :logseq.property/type :checkbox} true]], :block/updated-at 1735522361278, :block/refs #{7 9653}, :block/created-at 1735522361278, :block/schema {:type :map}, :logseq.property/hide? true, :block/tags [{:db/ident :block/tags, :db/valueType :db.type/ref, :db/cardinality :db.cardinality/many, :logseq.property/type :class} #{9653} {:logseq.property/built-in? true, :page-class-id 9655, :all-page-class-ids #{9653 9655 9654 56 9656}}], :block/title "View filters", :db/cardinality :db.cardinality/one, :db/id 49, :db/ident :logseq.property.table/filters, :block/path-refs #{7 9653}, :block/order "b0d", :block/name "view filters", :logseq.property/public? false}, :dispatch-key :property, :errors {6558 {:block/schema ["disallowed key"]}}} 
{:entity {:block/updated-at 1737598717105, :logseq.property.asset/size 1632410, :db/id 12434}, :dispatch-key nil, :errors {6985 ["invalid dispatch value"]}} 
{:entity {:block/updated-at 1737598717110, :logseq.property.asset/checksum "482c8cd2551f656033b4a82ac52fc4ca4c5b6d52215c84e9b649819ee7078e3f", :db/id 12435}, :dispatch-key nil, :errors {7358 ["invalid dispatch value"]}} 
{:entity {:block/title "Testing of redacted", :db/id 16341}, :dispatch-key nil, :errors {8418 ["invalid dispatch value"]}}
)
}
slate hill
#

If you could send me a debug or sqlite export of your graph to [email protected] , I'll take a look Monday