Gabriel Horner
0cc9205e99
enhance(dev): option to query multiple graphs
2025-03-13 16:00:01 -04:00
Gabriel Horner
14091b42d8
fix: properties with closed value have incorrect title
...
was using ident instead of :block/title
2025-03-13 15:52:18 -04:00
Tienson Qin
5d2ab65d7c
Merge branch 'feat/db' into feat/blocks-action-bar
2025-03-08 13:55:33 +08:00
Tienson Qin
22743b4952
Merge branch 'feat/db' into feat/text-template
2025-03-08 07:03:02 +08:00
Gabriel Horner
db8cd0eed1
fix: export+import of page timestamps
2025-03-07 15:34:06 -05:00
Gabriel Horner
7917afaa45
chore: update nbb scripts to be repl friendly
...
With https://github.com/babashka/nbb/issues/95 done, this allows
all nbb script namespaces to required or used from a repl
2025-03-07 11:49:28 -05:00
Gabriel Horner
1ccdcab8a9
enhance(dev): optionally validate after creating a db
...
Doing this enough that an option makes this faster to invoke
and faster (no re-open) on large graphs
2025-03-07 11:45:17 -05:00
Tienson Qin
d3dc57022b
enhance: no need to set logseq.class/Root for class type properties
2025-03-07 22:32:44 +08:00
Tienson Qin
796c744be1
property word tweak
...
Co-authored-by: Gabriel Horner <97210743+logseq-cldwalker@users.noreply.github.com >
2025-03-07 21:04:30 +08:00
Gabriel Horner
c6a2ea6959
fix(dev): script fails on -h
...
Also minor db scripts cleanup
2025-03-06 16:21:21 -05:00
Gabriel Horner
9828b15b51
fix: export+import preserve property timestamps
2025-03-06 10:18:51 -05:00
Gabriel Horner
9720976d63
fix: invalid uuid detection
...
referenced uuids weren't being picked up
2025-03-04 14:58:54 -05:00
Gabriel Horner
ec9944db2d
enhance: add descriptions for some public built-in properties
...
, especially ones that required external docs to understand their usage
2025-03-04 10:15:04 -05:00
Tienson Qin
4b5989a541
Merge branch 'feat/db' into feat/text-template
2025-03-04 21:58:55 +08: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
6af5720535
chore: remove unnecessary keep-uuid? option
2025-03-03 13:43:40 -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
Tienson Qin
b7e81afd84
feat: auto apply templates to object when adding a tag
2025-03-03 18:59:42 +08:00
Tienson Qin
ff5e8e6748
enhance: add :logseq.property/used-template to group template blocks
2025-03-03 18:03:55 +08:00
Tienson Qin
7d1dda44e1
Merge branch 'feat/db' into feat/text-template
2025-03-03 16:12:46 +08:00
Tienson Qin
0a29d32c65
fix: embed self in property value
2025-03-02 16:09:21 +08:00
Tienson Qin
1aeef85e4a
feat: /template command
2025-03-02 15:23:13 +08:00
Tienson Qin
c84eb9b0bb
Add :logseq.class/Template
2025-03-02 14:48:40 +08:00
Gabriel Horner
1d855d012f
enhance: add EDN export for any view
2025-02-26 16:43:23 -05:00
Tienson Qin
ab5f81123b
feat: cmd-k shows recently updated pages
...
Also increases nodes group limit to 10, it's 5 previously.
2025-02-25 15:55:00 +08:00
Gabriel Horner
aa5080b331
fix: intermittent failure with :build-existing-tx?
...
Would only happen on imports where a complex set of added page property
values failed. Turns out these tx issues were caused by split-blocks-tx
2025-02-24 15:24:00 -05:00
Gabriel Horner
841fbdcdf6
enhance: export+import handles nested :build/page
...
property values
2025-02-24 14:48:38 -05:00
Gabriel Horner
87c09dc2c0
fix(dev): sqlite.build doesn't detect :build/page prop values
...
correctly. Also add :date property inferencing
2025-02-24 14:15:25 -05:00
Tienson Qin
3761194ff4
Rename view/identity to view/feature-type
2025-02-24 14:51:40 +08:00
Gabriel Horner
12c17f220a
fix: misplaced docstring + outdated ignore
2025-02-21 16:30:52 -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
Tienson Qin
38664c7d73
fix: tests
2025-02-21 16:18:33 +08:00
Tienson Qin
dc078b5ec4
fix: wrong check with has-tag?
2025-02-21 16:08:32 +08: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
Gabriel Horner
04b832f5cb
chore: mv file graph specific fns out ldb
2025-02-20 12:37:13 -05:00
Tienson Qin
69f2f49cea
fix: lint
2025-02-20 18:07:39 +08: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
b2d5315a68
enhance(dev): add deps/db/src/logseq/{frontend,sqlite} to
...
separate linter. Will catch mistakes like
e92b107b5b next time. Also fixed
a few more ldb/* calls and expanded /db-based-graph? check
2025-02-19 16:44:17 -05:00
Gabriel Horner
e92b107b5b
fix: entity-util/{journal?,whiteboard?,page?} calls
...
Split up fns of these checks into entity-util, file-entity-util and
common-entity-util so that we have explicit fns for checking in single
or multi-graph contexts. By doing this, were were able to fix more than
20+ fns that were calling general fns in a single graph context e.g.
checking for :block/type in DB graph only namespaces. Some of these
calls were happening on every :block/title lookup so there may be
some perf enhancements
2025-02-19 16:29:26 -05: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
18db6b1937
chore: mv db namespaces common to both graphs to logseq.db.common
2025-02-19 16:29:26 -05:00
Tienson Qin
a838edd0e4
fix: multiple views created if there's no view yet
2025-02-19 21:05:09 +08:00
Tienson Qin
6cf56b6ea8
Merge branch 'feat/db' into enhance/reference-view
2025-02-19 19:04:47 +08:00