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
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
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
Tienson Qin
a9f62baf6d
wip: transact tx to disk to avoid data-loss
2023-12-15 09:39:56 +08:00
Gabriel Horner
ffa6aaae29
fix: remove unused db.sqlite related fns
...
- remove sqlite-db/close! as its not used and didn't make sense to be
used in other electron ns
- remove sqlite-db/connections atom as its not needed
- remove read-graph as its not necessary
- rename cli.persist-graph as its primary purpose has changed
- update effected scripts
2023-12-13 12:06:24 -05:00
Gabriel Horner
79a9c59dd5
fix: lint and minor cleanup from datascript-storage PR
...
- remove unused electron state
- remove comment with nonexistent fns
- rename fn which didn't read well
2023-12-13 09:53:16 -05:00
rcmerci
7bca037e71
fix: update <transact-data caller, remove unused build-upsert-blocks
2023-12-13 11:18:00 +08:00
Gabriel Horner
e228bd1fb6
fix: tweak schema to be valid for new db graphs
...
Also reuse initialization data
2023-12-12 16:05:06 -05:00
Gabriel Horner
36a553e4a1
chore merge sqlite-restore into sqlite-db
...
Also use it on the frontend. Also remove another unnecessary sqlite.db fn
2023-12-12 15:41:02 -05:00
Gabriel Horner
a207296a42
chore: reuse some sqlite db fns
...
Also removed datascript db atom fetching, unused fns and dep in sqlite.db
2023-12-12 15:09:44 -05:00
Gabriel Horner
0f4cdbbadf
bump outdated nbb-logseq and fix lint
2023-12-11 15:55:38 -05:00
Gabriel Horner
fb3e8e8d8a
fix: update ds sqlite persistance to match latest frontend
...
also removed unused util fns
2023-12-11 13:52:26 -05:00
Gabriel Horner
e0901b9d04
bump nbb-logseq to first version
...
that works for forked datascript. Deps tests pass locally
without needing to rely on local builds
2023-12-11 13:52:15 -05:00
Gabriel Horner
b5eabc80ee
fix: db and graph-parser nbb tests to pass locally
...
Updated sqlite fns to use updated approach. Deleted some unused
fns from old approach
2023-12-11 13:51:47 -05:00
Tienson Qin
75c010e1c3
WIP: use OPFS db for electron
2023-12-06 15:03:29 +08:00
Tienson Qin
ea3f5973b7
Merge branch 'feat/db' into feat/datascript-storage
2023-12-06 01:10:23 +08:00
Tienson Qin
3df099a15e
fix: don't retract attributes for db if block content is not updated
2023-12-05 18:07:48 +08:00
Tienson Qin
67fd609170
fix: typing a normal page as a tag silently changes its page type
...
User can choose to create either a page or a class with '#' now.
FIXES LOG-2742
2023-12-05 17:31:21 +08:00
Gabriel Horner
e847c0899a
enhance: bring back built-in properties using closed values
...
Fixes LOG-2903. Also fixed a bug with logseq.color property
not working with latest accent color
2023-12-04 17:29:41 -05:00
Gabriel Horner
2554016d63
enhance: make closed values scriptable
...
Added closed value examples of all 5 property types
to properties graph. Part of LOG-2903
2023-12-04 10:11:52 -05:00
Tienson Qin
e04a5b4316
Merge branch 'master' into feat/db
2023-12-04 20:47:37 +08:00
Tienson Qin
ecde2c3bfc
fix: cross-platform shotcuts ( #10590 )
...
This PR also simplifies the implementation of shui/shortcut a lot.
* fix: consistent char for the Enter key
* fix: show ctrl instead of ⌘ for copy ref
* fix: "Ctrl" should be split from "Ctrl X"
2023-12-03 12:40:08 +08:00
Gabriel Horner
0ffce18d15
chore: rename property.type vars
...
- renamed schema-type to property-type as its not
a type of schema and schema is an ambiguous context
as it also applies to a class
- renamed builtin to built-in to be more correct
2023-11-30 16:26:44 -05:00
Gabriel Horner
f5e339293f
fix: add validation for property types and :schema attributes
...
Part of LOG-2953. We shouldn't persist unusuable property type
configurations as shown by this bug. By enumerating what schema
attributes are allowed for each type, we can prevent future bugs
like this. When changing between property types, this also cleans up
:classes, :position and :values that were accidentally hanging around
for certain types. Also modify test since we don't allow users
to use a :default property with :cardinality
2023-11-30 16:24:11 -05:00
Tienson Qin
47082c8a16
fix: do not hide shortcuts in the search modal
...
Fixes #10575
2023-11-30 22:31:27 +08:00
Gabriel Horner
d218db4e6f
fix: fixes bug with unusuable :default property
...
Part of LOG-2953. Also fixes bug when a new property first displays
configure modal and incorrectly shows cardinality for :default property
2023-11-29 17:15:35 -05:00
Andelf
f1d763aa12
chore: comment out electron? feature gate
2023-11-30 02:29:08 +08:00
Gabriel Horner
1117ad3cb4
fix lint
...
also comment out print that prevented chaining query results with bb
2023-11-29 10:14:53 -05:00
Gabriel Horner
6517f6f12a
Merge branch 'master' into feat/db
2023-11-29 09:56:12 -05:00
Tienson Qin
e60ea3ac10
fix: remove debug assert
2023-11-29 21:03:52 +08:00
Gabriel Horner
548fa98605
enhance: allow CLI and github action to set color accent
2023-11-28 22:32:34 +08:00
Tienson Qin
86b70e3b33
update datascript
2023-11-28 15:10:43 +08:00
Tienson Qin
716c496590
Update datascript
2023-11-28 14:57:06 +08:00
Andelf
68bae90039
test(fs): add unittests for new fn
2023-11-28 02:39:52 +08:00
Andelf
3069f5d7e3
fix(fs): path-join testcase
2023-11-28 02:39:52 +08:00
Andelf
61a3c19176
fix(fs): windows unc path support
2023-11-28 02:39:52 +08:00
Gabriel Horner
5e547a1663
fix: open db graph urls
...
Also introduced var for logseq_db_ in deps
2023-11-27 10:55:22 -05:00
Tienson Qin
232c1cb4c2
wip: debug
2023-11-26 15:58:26 +08:00
Tienson Qin
a4c30bc62f
Works!!
2023-11-25 14:14:02 +08:00
Tienson Qin
a408f93b26
fix: db restore
2023-11-25 11:58:11 +08:00
Tienson Qin
6ff1207339
Replace data load and transact
2023-11-25 11:51:59 +08:00
Tienson Qin
b7ce9a7ca5
fix: add transact and datoms load
2023-11-25 11:22:59 +08:00