Gabriel Horner
3cb980bf91
fix: invalid pages and whiteboard pages from import
...
- some pages are missing block/journal? and block/original-name
- removed another file graph only attribute
- fixed whiteboard block schema missing :block/path-refs
- pulled out importing block to its own fn
Part of LOG-2990
2024-01-09 16:03:49 -05:00
Tienson Qin
2d245295a7
fix: outliner core tests
2024-01-10 04:15:09 +08:00
Tienson Qin
9f66e6d7e7
fix: don't fix pages for whiteboards and hidden pages
2024-01-09 16:04:03 +08:00
Gabriel Horner
6ad5fb2dd4
fix: db graphs not adding :block/content for whiteboard shape
...
Caused by hopefully one of the last incorrect lookups of
:block/properties
2024-01-08 16:16:07 -05:00
Gabriel Horner
0957cb15b3
fix: built-in props weren't persisted to opfs
...
and didn't show up in new graphs. Fixes LOG-2998. Issue was that
e6a464e64f introduced transacting built-in
properties twice. Since the first transaction doesn't send tx-data to
the db-worker (an issue with pipeline/invoke-hooks it seems), the 2nd tx
results in missing property info including name. Removing this
incorrectly setup first tx allows the original one to successfully send
initial property data to db-worker
2024-01-08 11:26:22 -05:00
Tienson Qin
5fd91035df
wip: transact to worker directly
...
Previously, the transactions will go though main thread db -> worker
db, this commit changes it to worker db first and then send the
updates to the main thread db.
This change does introduce some bugs because all the db transactions
are async now.
2024-01-08 20:53:23 +08:00
Tienson Qin
dbba75157d
Sync db worker changes back to the main ui thread
2024-01-08 19:09:54 +08:00
Tienson Qin
38ba0dfa7c
Move entity plus to db dep
2024-01-08 15:35:09 +08:00
Tienson Qin
9597330d9f
Remove db/state dep on page handler
2024-01-07 17:24:54 +08:00
Tienson Qin
fa2892cef6
use ldb/transact! instead of d/transact!
2024-01-05 06:42:10 +08:00
Tienson Qin
7c4baf97db
fix both page create and delete
2024-01-05 03:09:35 +08:00
Tienson Qin
1e72d0efc7
Move page-delete to worker
2024-01-05 02:47:40 +08:00
Tienson Qin
9194a671fd
Move outliner core to its own dep
2024-01-03 18:02:48 +08:00
Tienson Qin
b7d9098e80
Move gp-util and gp-config to the common dep
2024-01-03 16:38:05 +08:00
Tienson Qin
670bc3a5c7
enhance: enable entity transaction
2024-01-03 14:42:44 +08:00
Gabriel Horner
4fd0b65639
bump nbb-logseq to use datascript with dirty flag fix
2024-01-02 17:07:11 -05:00
Gabriel Horner
ff5430cfd7
fix: db lint and tests from #10683
2024-01-02 15:42:36 -05:00
Gabriel Horner
56a81f9671
fix: allow UI and validation to know what property types have :position
...
this is done by configuring user-built-in-allowed-schema-attributes
and then using the helper fn to check it
Fix LOG-2955
2024-01-02 15:12:36 -05:00
Tienson Qin
e579f668eb
wip: remove dependency on frontend.db for outliner core
2024-01-02 23:23:49 +08:00
Tienson Qin
0ca1bd61eb
wip: outliner core refactor
2024-01-02 21:46:40 +08:00
Tienson Qin
48b5593008
wip: outliner refactor
2024-01-02 18:07:17 +08:00
Tienson Qin
84851a5639
Move db fix to worker
2023-12-28 22:16:21 +08:00
Tienson Qin
4016f93884
Move db validate to worker
2023-12-28 21:25:00 +08:00
Tienson Qin
ee12e58254
refactor ns
2023-12-28 18:46:09 +08:00
Tienson Qin
eb679bd941
wip: file worker
2023-12-28 17:32:43 +08:00
Tienson Qin
dda11a33a7
Move outliner tree to the outliner dep
2023-12-27 02:53:00 +08:00
Tienson Qin
5b13fe6df4
perf: reduce disk writes
2023-12-27 00:06:39 +08:00
Tienson Qin
54d2cd6a0d
fix: tests and warnings
2023-12-25 17:36:46 +08:00
Tienson Qin
e6a464e64f
enhance: creating built-in properties when creating db conn
2023-12-23 17:53:57 +08:00
Tienson Qin
018e1ae8ee
Merge branch 'master' into feat/db
2023-12-23 14:18:25 +08:00
Tienson Qin
5bc80ccf22
Disable property position for date and page types
...
Close LOG-2955
2023-12-22 22:43:39 +08:00
Tienson Qin
822001aace
Merge branch 'feat/db' into refactor/worker-search
2023-12-22 21:33:53 +08:00
Tienson Qin
90ed070104
bump datascript
2023-12-22 18:04:33 +08:00
Gabriel Horner
d4f438f228
bump nbb-logseq for latest datascript
2023-12-21 13:00:44 -05:00
Tienson Qin
77a8ea13ab
Merge branch 'feat/db' into refactor/worker-search
2023-12-21 21:35:41 +08:00
Tienson Qin
d39f2b6a36
fix: release bug
2023-12-21 20:44:49 +08:00
Tienson Qin
8f7c496ab4
chore: bump datascript
2023-12-21 19:01:38 +08:00
Gabriel Horner
0fc1fd0f15
fix: error or notify loudly if db transactions aren't being transacted
...
followup to
https://github.com/logseq/logseq/pull/10726#discussion_r1431990823
2023-12-20 13:44:45 -05:00
Tienson Qin
75c396a92f
fix: file graph restore
2023-12-21 02:40:03 +08:00
Tienson Qin
4cdc718cea
fix: file version path
2023-12-20 21:06:59 +08:00
Tienson Qin
cd36c1a0ce
Merge branch 'feat/db' into refactor/worker-search
2023-12-20 19:46:10 +08:00
Tienson Qin
66499c2df5
fix: sanitize graph name before creating
...
This commit also stores dbs in `/logseq-pool-graph-name/db.sqlite`
which will affect existing dbs on OPFS.
2023-12-20 17:03:17 +08:00
Gabriel Horner
6a321a846d
Merge branch 'feat/db' into enhance/write-to-disk
2023-12-19 14:32:30 -05:00
Gabriel Horner
52f7afa18f
bump nbb-logseq to latest datascript with another storage delete fix
...
part of LOG-2974
2023-12-19 13:42:13 -05:00
Gabriel Horner
72f5218b39
dev: add tasks for saving and diffing datoms
...
part of LOG-2974
2023-12-19 13:19:10 -05:00
Tienson Qin
2811dc7d51
Merge branch 'enhance/write-to-disk' into refactor/worker-search
2023-12-20 01:34:48 +08:00
Tienson Qin
dfaec37fef
Merge branch 'feat/db' into enhance/write-to-disk
2023-12-19 22:52:51 +08:00
Tienson Qin
dd2f1014eb
Bump datascript
...
This version reuses addresses to reduce writes and make GC easier
2023-12-19 21:15:57 +08:00
Gabriel Horner
de3d82baba
bump to latest nbb-logseq with datascript.storage delete fix
2023-12-18 11:10:59 -05:00
Tienson Qin
222b2f84bc
fix: remove unused addr+data from sqlite
2023-12-18 20:56:28 +08:00