Tienson Qin
31305e1904
Merge branch 'feat/db' into feat/tables
2024-07-04 14:48:55 +08:00
Gabriel Horner
e268f2a719
chore: add test for db import of icon
...
part of LOG-3092
2024-07-03 17:08:02 -04:00
Gabriel Horner
96b6763d22
fix: db import of pre-block children
...
Caused by :block/name no longer being unique. Also created helper
for common lookup of page-names-to-uuids. Part of LOG-3176
2024-07-03 16:37:33 -04:00
Tienson Qin
2f50b41066
feat: DB migration for built-in properties && persistent table state
2024-07-04 04:12:51 +08:00
Tienson Qin
6da32a33a0
wip: persist table state
2024-07-04 01:01:12 +08:00
Gabriel Horner
4fb25ff269
fix: incorrect properties warning for empty pages in db import
...
Also remove unused macros and tweaked test assertions from last import
commit
2024-07-03 12:48:10 -04:00
Gabriel Horner
766add9f0c
fix: pages with tags import as classes with
...
:tag-classes option. Part of LOG-3176
2024-07-03 10:01:05 -04:00
Tienson Qin
d078974ee2
fix: loop recur of get-class-parents
2024-07-03 18:05:21 +08:00
Tienson Qin
d132522590
enhance: checkbox color
2024-07-03 10:51:28 +08:00
Tienson Qin
484c4305ef
fix: checkbox
2024-07-03 10:25:14 +08:00
Tienson Qin
a4f7014700
Style tweaks
2024-07-03 09:42:06 +08:00
Gabriel Horner
f0ecf03c4a
fix: db import of tagged page with pageTags
...
Part of LOG-3176
2024-07-02 16:50:00 -04:00
Gabriel Horner
cc4d4588e3
fix: db import of tagged blocks
...
Test this and and :tag-classes option. Part of LOG-3176
2024-07-02 15:59:04 -04:00
Gabriel Horner
1ede4721b7
fix: db import of query properties
...
Part of LOG-3176
2024-07-02 13:32:48 -04:00
Tienson Qin
cba34dbfcf
feat: table properties dnd
2024-07-02 23:36:52 +08:00
Tienson Qin
3c0e57c75c
enhance: add muted color for th
2024-07-02 22:30:06 +08:00
Gabriel Horner
b754234ac3
chore: add import test for deprecated properties
...
Also improved test readability. Part of LOG-3092
2024-07-02 09:59:59 -04:00
Gabriel Horner
7d1f18a6c6
fix: db import of priority and status
...
Part of LOG-3176. Also fix incorrect test assertion for deadline test
2024-07-02 09:32:44 -04:00
Gabriel Horner
98122fb3c8
fix: db import of deadline and scheduled
...
Part of LOG-3176
2024-07-02 20:17:02 +08:00
Gabriel Horner
178ccab99b
chore: add test for importing block/refs
...
Also removes precarious and outdated property update in refs. Part of
LOG-3092
2024-07-02 20:17:02 +08:00
Gabriel Horner
8929d12736
fix: converting existing page into a property page
...
part of LOG-3176
2024-07-02 20:17:02 +08:00
Gabriel Horner
d4f691f54c
fix: db import of page properties
...
For new and existing pages. Part of LOG-3176
2024-07-02 20:17:02 +08:00
Gabriel Horner
c088317548
fix lints
2024-07-02 20:17:02 +08:00
Gabriel Horner
3de05eb97a
fix: db import of basic block properties
...
Some FIXMEs will be fixed soon. Part of LOG-3176
2024-07-02 20:17:02 +08:00
Gabriel Horner
fa4790f027
Revert "fix: prefer to use db-based schema's cardinality && valueType"
...
This reverts commit dbd9ab6bbb .
This was only temporarily needed for rtc graphs which should longer have
this problem
2024-07-02 20:17:02 +08:00
Gabriel Horner
2e823a5555
fix: cleanup inconsistent and incorrect import error handling
...
Some notified errors didn't include error object. Import cli didn't fail
on failure and stack was reversed. Error notifications sometimes
included full error which makes errors unreadable in CLI and possibly
confusing for users. Also fixed missing classpath. Part of
LOG-3176
2024-07-02 20:17:02 +08:00
Gabriel Horner
0c1cdbdd67
fix: add import test for asset
...
part of LOG-3092
2024-07-02 20:17:02 +08:00
Gabriel Horner
ba9d8d7920
Bump nbb with latest datascript
...
Test fixes are reasonable as datascript catches more invalid uses of
query
2024-07-02 20:17:02 +08:00
Gabriel Horner
d7adee57e8
fix: Insufficient bindings error after datascript upgrade
...
After upgrading our forked datascript from 1.5.3 to 1.7.1,
bindings in two of our rules behaved differently. The workaround
of adding an `and` where none was required before is sufficient.
Fixes LOG-3177
2024-07-02 20:17:02 +08:00
Gabriel Horner
99769dbcbf
fix: db/id enhancement failing non-tx validation contexts
...
Simplify addition of :db/id and add it without forcing adding :db/id
in all schema declarations
2024-07-02 20:17:02 +08:00
Gabriel Horner
772b2d7836
chore: add docs to explain property values more
2024-07-02 20:17:02 +08:00
Gabriel Horner
3809d58b21
fix: typos
2024-07-02 20:17:02 +08:00
Tienson Qin
52987fc02f
enhance: table use fixed layout
2024-07-02 18:17:44 +08:00
Gabriel Horner
3622a83024
fix: db import of deadline and scheduled
...
Part of LOG-3176
2024-07-01 17:45:20 -04:00
Gabriel Horner
e80f16731a
chore: add test for importing block/refs
...
Also removes precarious and outdated property update in refs. Part of
LOG-3092
2024-07-01 16:05:52 -04:00
Gabriel Horner
52ffb9a04f
fix: converting existing page into a property page
...
part of LOG-3176
2024-07-01 15:23:25 -04:00
Gabriel Horner
71b1586df6
fix: db import of page properties
...
For new and existing pages. Part of LOG-3176
2024-07-01 12:35:07 -04:00
Gabriel Horner
f685101c2d
fix lints
2024-07-01 09:22:54 -04:00
Gabriel Horner
bd5f43d233
fix: db import of basic block properties
...
Some FIXMEs will be fixed soon. Part of LOG-3176
2024-06-28 17:56:27 -04:00
Tienson Qin
6c653094dd
wip: class objects table
2024-06-29 00:50:30 +08:00
Gabriel Horner
9160f5a347
Revert "fix: prefer to use db-based schema's cardinality && valueType"
...
This reverts commit dbd9ab6bbb .
This was only temporarily needed for rtc graphs which should longer have
this problem
2024-06-28 12:04:10 -04:00
Gabriel Horner
9ee09372aa
fix: cleanup inconsistent and incorrect import error handling
...
Some notified errors didn't include error object. Import cli didn't fail
on failure and stack was reversed. Error notifications sometimes
included full error which makes errors unreadable in CLI and possibly
confusing for users. Also fixed missing classpath. Part of
LOG-3176
2024-06-28 11:16:22 -04:00
Gabriel Horner
92134dec71
fix: add import test for asset
...
part of LOG-3092
2024-06-28 09:14:43 -04:00
Gabriel Horner
e24b386079
Bump nbb with latest datascript
...
Test fixes are reasonable as datascript catches more invalid uses of
query
2024-06-27 18:07:44 -04:00
Gabriel Horner
e58f1221d2
fix: Insufficient bindings error after datascript upgrade
...
After upgrading our forked datascript from 1.5.3 to 1.7.1,
bindings in two of our rules behaved differently. The workaround
of adding an `and` where none was required before is sufficient.
Fixes LOG-3177
2024-06-27 16:15:08 -04:00
Gabriel Horner
6b0b9c5e18
fix: db/id enhancement failing non-tx validation contexts
...
Simplify addition of :db/id and add it without forcing adding :db/id
in all schema declarations
2024-06-27 14:50:54 -04:00
Gabriel Horner
53bb0b689d
chore: add docs to explain property values more
2024-06-27 12:11:30 -04:00
Gabriel Horner
ab118d3a27
fix: typos
2024-06-27 12:05:16 -04:00
Tienson Qin
dbd9ab6bbb
fix: prefer to use db-based schema's cardinality && valueType
...
Instead of those values stored in the property blocks.
2024-06-27 23:24:35 +08:00
Tienson Qin
16c7a52468
enhance: add :db/id to invalid entity map when validated failed
2024-06-27 22:40:54 +08:00