Commit Graph

3732 Commits

Author SHA1 Message Date
Tienson Qin
84b83397cc enhance: remove parent extends when setting a child class for extends 2025-06-29 15:21:09 +08:00
Tienson Qin
6b13406e92 fix: remove extends class adds Root Tag 2025-06-29 15:21:09 +08:00
Gabriel Horner
a1967ef748 fix: db lint
also move class fn to db-class
2025-06-29 15:21:09 +08:00
Gabriel Horner
1ae6e5ceb5 fix: build doesn't fail if one extends
doesn't have a class-db id. Also fix export
which should always export extends unless it's the default
2025-06-29 15:21:09 +08:00
Gabriel Horner
268889d0b7 chore: rename sqlite.build :build/class-parent to :build/class-extends
Matches new property name and its arity. :build/class-parent deprecated
2025-06-29 15:21:09 +08:00
Tienson Qin
c07d8a6a6e fix: tests 2025-06-29 15:21:09 +08:00
Tienson Qin
ded9c8e517 fix: update :build/class-parent to multiple values 2025-06-29 15:21:09 +08:00
Tienson Qin
6902578358 add migration for tag extends 2025-06-29 15:21:09 +08:00
Tienson Qin
9c49f63a6f add tests for extends cycle validation 2025-06-29 15:21:09 +08:00
Tienson Qin
326ed9f753 fix: prevent extends cycle 2025-06-29 15:21:09 +08:00
Tienson Qin
9bede53a34 fix: tests 2025-06-29 15:21:09 +08:00
Tienson Qin
cc39c1c1fb refactor: extends support multiple tags 2025-06-29 15:21:09 +08:00
charlie
b6e3e98990 Merge branch 'master' into feat/capacitor-new 2025-06-28 11:06:25 +08:00
Tienson Qin
f830bccadf fix: invalid block when adding existing pages to library 2025-06-28 00:44:56 +08:00
Gabriel Horner
7968058d4b fix: asset links with regex characters not getting updated
Fixes https://github.com/logseq/db-test/issues/358
2025-06-27 10:51:18 -04:00
Tienson Qin
3cd604787f fix: remove block.temp/* attrs from vector tx-data 2025-06-27 22:30:35 +08:00
Gabriel Horner
32a29f5f3d enhance(dev): CLI can diff other export types 2025-06-26 17:02:14 -04:00
Gabriel Horner
16ac807894 enhance: import + sqlite.build supports classes and properties
from multiple namespaces
2025-06-26 16:57:39 -04:00
Gabriel Horner
0cb5c99502 enhance(dev): CLI can export other types e.g. graph-ontology 2025-06-26 12:12:50 -04:00
Tienson Qin
7037a84137 fix: failed to export EDN because default value property refed 2025-06-26 18:40:06 +08:00
charlie
593aca94c0 fix: lint 2025-06-26 17:15:38 +08:00
charlie
3a66ea8920 enhance(plugins): improve get db indent from the plugin caller 2025-06-26 17:15:38 +08:00
Tienson Qin
bbbb2f32a8 fix: delete default property values when deleting blocks
fixes
https://test.logseq.com/#/page/685c3794-3b3e-4909-9292-9c0cdf0d1d80
fixes
https://test.logseq.com/#/page/685c38a1-3e2d-4089-b34d-add09ef9a20f
fixes
https://test.logseq.com/#/page/685aad5f-67dc-48c8-9e7c-6505baaa9074
2025-06-26 13:20:42 +08:00
charlie
b68c305872 Merge branch 'master' into feat/capacitor-new 2025-06-26 09:55:02 +08:00
Gabriel Horner
0f3957ace8 fix: :block/alias not exported with :page export
Fixes https://github.com/logseq/db-test/issues/305
2025-06-25 15:08:16 -04:00
Tienson Qin
e443bbca9c fix: lint 2025-06-25 18:41:34 +08:00
Tienson Qin
cb88d84a5e fix: dnd-kit sortable items require ids 2025-06-25 18:30:35 +08:00
Tienson Qin
cbfe85523c fix: unset property can break system nodes/pages
fixes https://github.com/logseq/db-test/issues/354
2025-06-25 17:39:41 +08:00
charlie
08b824934c Merge branch 'master' into feat/capacitor-new 2025-06-25 14:06:52 +08:00
Gabriel Horner
9f924dd587 chore: remove dev flag 2025-06-24 10:40:02 -04:00
Gabriel Horner
e4ffd13340 fix: tags can have duplicate names
Tags should not have duplicate names regardless of their
extends or if they're built-in or not.
Fixes https://github.com/logseq/db-test/issues/338 and fixes
https://github.com/logseq/db-test/issues/349
2025-06-24 08:35:49 -04:00
Tienson Qin
c770c91409 fix: url type validation
This commit also fixes the unknown error in db validations.

fixes https://github.com/logseq/db-test/issues/348
2025-06-24 12:25:07 +08:00
Gabriel Horner
42f0519797 fix: import property that changes from :node to :default
on same page :as :node property is defined. Also affects :date ->
:default. Fixes https://github.com/logseq/db-test/issues/340
2025-06-23 14:02:28 -04:00
Gabriel Horner
957eab73d8 fix: import fails on query sort with built-in properties
Fix for https://github.com/logseq/db-test/issues/341
2025-06-23 09:17:26 -04:00
Gabriel Horner
58d3abbafb fix: use ast blocks for simple queries conversions
Fixes cases where {{query nested in BEGIN_* blocks were incorrectly
being converted to queries. Also made ast block handling faster
by only doing one prewalk and cleaned up handling of queries
2025-06-23 19:04:03 +08:00
Gabriel Horner
cc05518ea5 fix: use ast blocks for advanced queries conversion
Fixes cases where BEGIN_QUERY nested in BEGIN_SRC were incorrectly
being converted to queries e.g. most queries in
https://docs.logseq.com/#/page/advanced%20queries
2025-06-23 19:04:03 +08:00
Gabriel Horner
507ff3ce29 enhance: import page and block embeds
One embed per block as that's what DB version supports.
Fixes https://github.com/logseq/db-test/issues/198
2025-06-23 19:04:03 +08:00
Tienson Qin
3c52bced5c Merge branch 'master' into feat/capacitor-new 2025-06-22 21:39:37 +08:00
Tienson Qin
b5f0a4d236 fix: building search index shouldn't blocked by one block
related to https://github.com/logseq/db-test/issues/332
2025-06-22 10:22:02 +08:00
Gabriel Horner
fdff75cdf8 fix: import not handling scheduled and deadline property
on same block. Fixes https://github.com/logseq/db-test/issues/318
2025-06-20 17:06:52 -04:00
Gabriel Horner
5479564899 fix: outliner lint 2025-06-20 15:11:54 -04:00
Gabriel Horner
b22e5af239 fix: built-in page converts to tag
from editor. Another fix for
https://github.com/logseq/db-test/issues/333
2025-06-20 15:06:55 -04:00
Gabriel Horner
e489cc283c fix: built-in pages could be turned into tags
Fixes https://github.com/logseq/db-test/issues/333.
Also added guards at handler level in case they are used elsewhere.
Made sure to couple them to outliner-validate as centralizing validation
is important if we want to have a consistent, bug-free approach
to updating entities
2025-06-20 12:53:23 -04:00
Tienson Qin
119485fafb enhance(perf): reduce get-block calls when children have been loaded 2025-06-19 22:21:45 +08:00
Tienson Qin
b6c06b692a enhance(perf): reduce <get-block calls for children 2025-06-19 21:31:16 +08:00
Tienson Qin
0047730991 enhance(perf): sort view data using datoms when possible 2025-06-19 19:26:09 +08:00
Tienson Qin
21a9b37ed0 enhance(perf): render references after table has been loaded
Also, use search index to check whether there're unlinked refs.
2025-06-19 18:37:02 +08:00
Tienson Qin
6c14572e9e perf: lazy render references 2025-06-19 16:37:48 +08:00
Tienson Qin
5d6f5ad8dd fix: a few bugs on sentry 2025-06-19 14:33:22 +08:00
Tienson Qin
477029d2ed fix(regression): assets referenced in blocks do not load correctly
on initial graph load

fixes https://test.logseq.com/#/page/6852fb42-bb45-486c-82cc-23ce9a4013d4
2025-06-19 14:11:52 +08:00