Tienson Qin
4169f20a28
Merge branch 'feat/db' into perf/app-start
2025-04-07 20:06:45 +08:00
Gabriel Horner
99331545c4
enhance: give partial exports reliable page sort order
...
Could be useful as partial exports are used more often
2025-04-04 15:12:11 -04:00
Gabriel Horner
ffca9c862f
enhance: add export+import of selected nodes
...
Fixes https://github.com/logseq/db-test/issues/232
2025-04-04 14:48:09 -04:00
Gabriel Horner
a1bd567906
fix: build+export of closed :many property values
2025-04-01 13:42:42 -04:00
Gabriel Horner
ad64632c1b
enhance: export tags for property values
2025-04-01 11:47:33 -04:00
Gabriel Horner
29ac5a9c18
enhance: export+import property value properties
...
For https://github.com/logseq/db-test/issues/242 . Also added timestamp
support for proprety values
2025-03-31 18:24:11 -04:00
Gabriel Horner
1e29c9ee15
enhance: add sqlite.build support for properties on property values
...
Needed for export in https://github.com/logseq/db-test/issues/242
2025-03-31 17:04:45 -04:00
Tienson Qin
5923f24f56
fix: lint and test
2025-03-31 22:38:34 +08:00
Gabriel Horner
6209bd0ae2
fix: block/collapsed? not built for properties
2025-03-28 11:16:06 -04:00
Gabriel Horner
dd4b68a140
fix: export for overlapping property+class
...
overlapping entity with blocks was exporting duplicate blocks
2025-03-28 10:39:20 -04:00
Gabriel Horner
872b130eec
fix: export of class + property aliases
2025-03-27 17:27:47 -04:00
Gabriel Horner
9dfb6713ca
enhance: export+import supports properties
...
that double/overlap as classes
2025-03-27 17:02:32 -04:00
Gabriel Horner
144ad2623c
enhance: export+import of class + property page blocks
2025-03-27 09:13:14 -04:00
Gabriel Horner
0233adfebd
fix: remove invalid page-less blocks
...
Also improve validation error message so it's clear what next steps are
2025-03-26 11:30:54 -04:00
Gabriel Horner
11f765638e
fix: invalid graphs b/c of blocks with missing title
2025-03-26 11:10:04 -04:00
Gabriel Horner
f3f73e53a0
enhance: graph export+import supports :block/alias
2025-03-20 15:01:50 -04:00
Gabriel Horner
f99a89f9b3
enhance: add :logseq.kv data to graph export
...
Addresses
https://github.com/logseq/logseq/pull/11784#pullrequestreview-2697690952 .
Also improves :set option and removes outdated code in a test
2025-03-19 15:41:12 -04:00
Gabriel Horner
103af910d0
refactor: provide default for build/prorties-ref-types
...
Reasonable default reduces building config which could change
2025-03-18 09:54:16 -04:00
Gabriel Horner
a24a765a1e
fix: content ref extraction breaks any export+import
2025-03-17 11:59:16 -04:00
Gabriel Horner
ce8a3eae68
fix: export+import fails on :logseq.property/default-value
...
This property needs additional config since it has an unusual internal
property type
2025-03-17 11:59:16 -04:00
Gabriel Horner
d7721981af
enhance: add :exclude-namespaces export option
...
Useful for graphs with existing ontologies to avoid noisy
and needless exporting. Also update related scripts and noted
that create script has always been able to also update
2025-03-17 11:59:16 -04:00
Gabriel Horner
c85ce5b17c
fix: page property values that are uuids weren't exported
...
causes more complex schema graph to fail to export
2025-03-17 11:59:16 -04:00
Gabriel Horner
9232d10ac2
Provide consistent sort for graph's pages-and-blocks
...
Also allow full timestamp test now that all timestamp issues are fixed
2025-03-17 11:58:30 -04:00
Gabriel Horner
3dd196d8f8
fix duplicate pages in imported graph for page property values
...
Don't use :build/page for graph exports as it leads to needless
complexity when reconciling referenced nodes
2025-03-17 11:58:30 -04:00
Gabriel Horner
25efc164c6
add graph export support for property + class refs
...
Also fixed class + property refs forgetting keep-uuid?.
Also moved test helpers
2025-03-17 11:58:30 -04:00
Gabriel Horner
fae1e8a6cb
graph export optionally exports timestamps
2025-03-17 11:58:30 -04:00
Gabriel Horner
5d1e532122
fix: graph exports with pvalue classes or properties failed
2025-03-17 11:58:30 -04:00
Gabriel Horner
c67745c4fa
refactor: sqlite.build was adding noisy
...
uuid indices for every block. uuid indices are only needed
for referenced uuids
2025-03-17 11:58:30 -04:00
Gabriel Horner
29eff25887
fix: property closed values were not importing correctly from graph export
...
They need their uuids to import for blocks
2025-03-17 11:58:30 -04:00
Gabriel Horner
e0a7418ad2
Add pvalue uuid support to graph export
2025-03-17 11:58:30 -04:00
Gabriel Horner
a7b586b2b0
add export+import support for files
2025-03-17 11:58:30 -04:00
Gabriel Horner
e896641f6e
add block/link support for graphs and
...
confirm views and favorites work
2025-03-17 11:58:30 -04:00
Gabriel Horner
27f81c3325
enhance: basic graph export of pages and blocks
...
Still doing redundant properties and classes. Content refs partially
work and uuid refs are todo
2025-03-17 11:58:30 -04:00
Gabriel Horner
7e5d8ed686
fix: export+import of property values
...
that are internal entities. Don't reference internal ents
with uuids as it is not graph agnostic and causes failure on import
2025-03-03 17:45:05 -05:00
Gabriel Horner
16930aa23c
enhance: add :block/link support for export+import edn
2025-03-03 16:20:42 -05:00
Gabriel Horner
0852dec984
chore: Add optional verbose test runner for db deps
...
Also adjust one test which made verbose mode unreadable by printing a
large data structure where an assertion should go
2025-03-03 09:55:35 -05:00
Gabriel Horner
1d855d012f
enhance: add EDN export for any view
2025-02-26 16:43:23 -05:00
Gabriel Horner
841fbdcdf6
enhance: export+import handles nested :build/page
...
property values
2025-02-24 14:48:38 -05:00
Gabriel Horner
05037c456e
Merge branch 'feat/db' into enhance/reference-view
2025-02-21 15:33:40 -05:00
Gabriel Horner
054c8c42d2
fix: importing more than once created duplicate pages
...
for property values with :build/page
2025-02-21 12:42:56 -05:00
Gabriel Horner
a483a41aff
fix: import blocks with :build/page property values
...
more than once. Was failing on tx ordering
2025-02-21 11:12:45 -05:00
Gabriel Horner
0ccb59a2ad
fix: merging exports for same journal
...
or page and their blocks. Also fix lint
2025-02-20 17:18:16 -05:00
Gabriel Horner
cdf6183852
enhance: export+import refs in property values
2025-02-20 15:58:18 -05:00
Tienson Qin
bd779e3007
Merge branch 'feat/db' into enhance/reference-view
2025-02-20 18:04:58 +08:00
rcmerci
d567261e61
enhance: make build-db-initial-data idempotent ( #11750 )
...
* enhance: make build-db-initial-data idempotent (1)
handle logseq/{config.edn,custom.css,custom.js}
* test: add build-db-initial-data-test
2025-02-20 18:02:37 +08:00
Tienson Qin
20d483fa30
Merge branch 'feat/db' into enhance/reference-view
2025-02-20 17:39:46 +08:00
Gabriel Horner
0964331b8a
chore: move 2 more db namespaces to db.common
...
b/c they are used by both graph types
2025-02-19 16:29:26 -05:00
Gabriel Horner
73cff9db44
chore: mv file-specific vars in db dep
...
to their own file-based.* namespaces. logseq.db.frontend
can now be linted
2025-02-19 16:29:26 -05:00
Gabriel Horner
033c7e5060
fix: export+import references to block
...
in same page
2025-02-17 15:03:06 -05:00
Gabriel Horner
52acbd0ed2
fix: block objects failed import if they have properties
2025-02-14 14:29:53 -05:00