rcmerci
b99581968a
fix lint
2025-03-26 16:47:28 +08:00
rcmerci
1151b33df4
refactor: remove defclass DBWorker
2025-03-26 16:47:28 +08:00
rcmerci
b7d65b82e3
refactor(wip): add def-thread-api, and move fns from class DBWorker
2025-03-26 16:47:28 +08:00
rcmerci
d0422948cb
fix: add some comments for logseq.common.defkeywords
2025-03-26 02:08:30 +08:00
rcmerci
336af2a2db
fix(rtc): enable :logseq.property.view/xxx properties rtc-syncing
2025-03-26 01:25:23 +08:00
rcmerci
4036a36f46
test(rtc): add ut for remote-op-value->tx-data
2025-03-26 01:18:43 +08:00
rcmerci
58dd5a8f19
fix(rtc): ignore pre-configured attrs when remote-op-value->tx-data
2025-03-26 01:18:43 +08:00
Gabriel Horner
d6bb065959
fix: publishing failing to load due to nonexistent conn
2025-03-25 12:16:04 -04:00
charlie
0cf44976e5
Merge branch 'feat/db' of https://github.com/logseq/logseq into feat/db
2025-03-25 15:01:39 +08:00
charlie
3d2285f090
chore(plugin): build libs core
2025-03-25 15:01:24 +08:00
charlie
ad1bc36811
chore(dev): remove warning
2025-03-25 14:59:02 +08:00
charlie
2bc243da0d
enhance(ui): improvements for the narrow screen
2025-03-25 14:58:29 +08:00
Gabriel Horner
92ff2a5436
fix: export edn should always be accessible in view
2025-03-24 12:44:51 -04:00
Gabriel Horner
b484316c2d
fix: don't use new and ambiguous terms in views
...
We introduced "record" when table view was first introduced but it's not
a term we use anywhere else in the UI. Better to keep with existing
terms like "node". Also record is not a term that makes sense in other view
types
2025-03-24 11:57:16 -04:00
Gabriel Horner
4d58925ad7
fix: uuid nodes and view nodes not grouping by page
...
They were grouping instead by parent which caused parent blocks to incorrectly
export as pages
2025-03-21 17:10:12 -04:00
Gabriel Horner
1d21a120e7
Merge pull request #11784 from logseq/feat/export-graph-edn
...
feat: export and import graph as edn
2025-03-21 08:52:35 -04:00
charlie
1565e7541d
fix(api): incorrect property type key
2025-03-21 15:27:03 +08:00
Gabriel Horner
4495728abd
enhance: export+import supports :block/collapsed?
2025-03-20 17:11:26 -04:00
Gabriel Horner
aa77ef199d
fix: ident from docs graph couldnt serialize to edn
2025-03-20 16:35:30 -04:00
Gabriel Horner
f3f73e53a0
enhance: graph export+import supports :block/alias
2025-03-20 15:01:50 -04:00
charlie
c51d43332a
fix(plugins): incorrect theme url for the desktop native
2025-03-20 11:29:42 +08:00
charlie
e362cfa0ae
enhance(plugins): types
2025-03-20 10:44:23 +08:00
Gabriel Horner
8ed2aeba37
enhance: simplify and speed up graph import
...
By providing ::export-type we can simplify import handling and
turn off property value translation which. Also adds an option to
sqlite.build which is then used by import
2025-03-19 17:48:16 -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
dc02a292a9
fix: click on some local db graphs doesn't switch to them
...
affected all imported db graphs and possibly some that weren't imported
Fixes
https://github.com/logseq/logseq/pull/11784#pullrequestreview-2697663428
2025-03-19 11:28:15 -04:00
Gabriel Horner
210f583cae
enhance(dev): add set option for diff script
2025-03-18 13:00:43 -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
392fe81173
refactor: mv import to appropriate ns and reuse import fns
2025-03-18 08:58:03 -04:00
Gabriel Horner
06b3bba5fc
enhance: add export edn graph as file
...
Remove command version of export which is a less useful dev tool
than what's possible with cli
2025-03-17 23:28:43 -04:00
Gabriel Horner
4d37ce8565
enhance: add import edn graph option
...
Also fix lint and move other db import fns to db ns
2025-03-17 17:16:49 -04:00
Gabriel Horner
332b7a0825
fix: lints and new scripts having same path bugs as feat/db
2025-03-17 12:08:44 -04:00
Gabriel Horner
e1f7bdfa9d
enhance(dev): add test of export,create and diff to CI
...
A more thorough test than ones in unit tests
2025-03-17 11:59:16 -04:00
Gabriel Horner
9b9c22933f
fix: built-in pages option
...
also renamed option and fixed a sorting bug
2025-03-17 11:59:16 -04:00
Gabriel Horner
fafdbb3dbd
perf: dont build ontology for graph export
...
no need to build it twice for most graph export cases
2025-03-17 11:59:16 -04:00
Gabriel Horner
c215617a0f
fix extra exported property for graph
...
and add import option to diff script
2025-03-17 11:59:16 -04:00
Gabriel Horner
5c07ff3fe7
enhance: option to ignore built-ins for graph export
...
useful for lambda which has buggy built-in pages
2025-03-17 11:59:16 -04:00
Gabriel Horner
c71ec4c441
fix: graph failing to export when there are dupe page titles
...
graph export mustn't use merge-export-maps
2025-03-17 11:59: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
00da28b95a
fix: content refs and property value translation failing graph export
...
of more complex graphs like lambda
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
c344f4a577
CLI can create graphs from exported sqlite.build EDN
2025-03-17 11:59:13 -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
ab9796ae60
Add scripts for exporting and diffing graphs
...
Allows for quick export<->import QA of more complex graphs
and any examples made in app
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