rcmerci
b0379811c0
fix: fix validate db test (2)
2024-12-02 13:59:06 +08:00
rcmerci
d2c877b484
fix: fix validate db test
2024-12-02 13:51:27 +08:00
Tienson Qin
f46372b346
chore: keep using class instead of tag for internal usage
2024-08-06 07:15:41 +08:00
Tienson Qin
411b05e7ba
Prefer to use ldb/{type}? check when possible
2024-08-05 17:51:24 +08:00
Tienson Qin
4083a2d0a0
enhance: prefer tag instead of class on UI
...
Some users are confused with Classes/Objects, so on UI it'll be
Tags/Nodes.
2024-08-05 15:06:54 +08:00
Tienson Qin
d26e620a82
refactor: update :block/type to cardinality one instead of many
2024-07-31 19:35:26 +08:00
Tienson Qin
d847023dc1
Refactor: rename :block/content to :block/title
2024-07-10 22:33:44 +08:00
Gabriel Horner
9a8c91c0cc
chore: mv logseq.db.sqlite.db into sqlite.cli
...
for more explicit name and purpose. Also updated outdated db readme
and removed unused fns in logseq.db.sqlite.db
2024-06-14 16:53:19 -04:00
Gabriel Horner
670b46f221
fix: validate property values again
...
caused by property pair revert 5d4ae66d86
2024-04-30 12:25:12 -04:00
Gabriel Horner
8ec360759a
enhance(dev): humanize option for validation script
...
also fix nil entity query results
2024-04-15 09:36:09 -04:00
Gabriel Horner
8cbc0ac32a
fix: validate property values
2024-04-12 15:27:26 -04:00
Gabriel Horner
4f3b7e7687
fix: ref checks in schema
...
attribute in the wrong schema and db graph only vars had file graph
keys. Also temp fix to avoid crashing ui with props
2024-04-12 12:15:59 -04:00
Gabriel Horner
b2a22498ea
fix: closed validation with new properties
...
Also fix group error reporting incorrectly and improve it by adding
:db/id
2024-04-12 11:32:03 -04:00
Gabriel Horner
354c0c1e42
fix: built-in? helper and most deps tests
...
Also fix validate script's count
2024-04-12 10:04:43 -04:00
Gabriel Horner
608d627544
fix: add back properties validation
...
and fix closed validation. Also temporarily comment out properties graph parts
that are still invalid
2024-04-04 21:09:28 -04:00
Gabriel Horner
3d49585078
fix: create properties graph and validate graph script
2024-04-02 13:58:52 -04:00
Gabriel Horner
5d915de2e2
enhance: add more useful counts to validation script
...
helpful for checking a new/imported db graph hasn't regressed
2024-02-26 11:52:46 -05:00
Gabriel Horner
f28cf73ef4
enhance: validate db once for an import
...
and notify if there are invalid blocks. Removed validating per tx during
import which speeds up import 5-10% on small graphs and more on larger
graphs. Also print some useful stats in the console
2024-02-19 15:34:58 -05: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
e5e25bb403
update schema for new hidden page attributes
...
part of LOG-2854. Also update --closed-maps to use library fn
2023-10-26 12:05:12 -04:00
Gabriel Horner
4fd591620b
validate entities that are changed per transact!
...
This should help us catch bugs due to invalid data fairly quickly.
This only runs when in dev?
part of LOG-2818
2023-10-20 16:57:00 -04:00
Gabriel Horner
edaf9b286a
chore: move frontend db namespaces to a dedicated parent ns
...
Moved these namespaces to logseq.db.frontend.* to make their purpose
explicit and make the namespaces easier to maintain
2023-10-16 17:24:51 -04:00
Gabriel Horner
8756600fd7
Add CI job to test creating and validating a db graph
...
also update older actions
2023-10-13 10:53:01 -04:00
Gabriel Horner
82bcd01525
simplify :map declarations in db schema
...
Make :closed opt in rather than required in order for --closed-maps
to work
2023-10-12 10:02:45 -04:00
Gabriel Horner
fe7a46eac9
Move db malli schema into db dep since it's stable
...
Also add a validate-db task. Part of LOG-2739
2023-10-11 08:40:26 -04:00