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
Tienson Qin
59ad706a72
fix: remove unused property history blocks
...
Remove :logseq.property.attribute/xxx
2025-02-19 15:59:40 +08:00
rcmerci
af56de64cc
enhance(import): remove rtc related entities when import sqlite
...
Otherwise, the imported graph will connect to the corresponding remote graph.
2025-02-19 15:40:01 +08:00
Gabriel Horner
033c7e5060
fix: export+import references to block
...
in same page
2025-02-17 15:03:06 -05:00
Gabriel Horner
fac4a45e62
fix: allow any class to be a build/class-parent e.g. schema class
2025-02-17 09:50:53 -05:00
Tienson Qin
a7c2035682
fix: lint warnings
2025-02-17 22:48:52 +08:00
Tienson Qin
6a5555bfaf
fix: all pages view
2025-02-17 18:14:09 +08:00
Tienson Qin
c5b23f8609
enhance: create linked reference view when there're references
...
The view is created only if it's going to be displayed to avoid
generating meaningless views for all the blocks.
2025-02-17 14:02:54 +08:00
Gabriel Horner
52acbd0ed2
fix: block objects failed import if they have properties
2025-02-14 14:29:53 -05:00
Gabriel Horner
6071681306
enhance: export+import block refs from a block
...
Add more docstrings to help with maintainability
2025-02-14 14:06:04 -05:00
Gabriel Horner
b9e4fad959
fix: import of different types of refs still failed
...
if they had deep enough properties or tags. Shallow copied
the refs to fix these failures. Also added undefined uuid
detection
2025-02-14 12:33:27 -05:00
rcmerci
ce3f618e62
fix: parse-schema-version support sequential arg
2025-02-14 13:48:18 +08:00
Gabriel Horner
a4aacf022d
chore: use medley/dissoc-in instead of copied version
...
Can rely on medley as it is nbb compatible
2025-02-13 17:50:20 -05:00