Gabriel Horner
3d732cb018
fix: new class should always set :block/type to "class"
...
New change with :block/type "page" was causing :tag-classes option to
fail. Part of LOG-3176
2024-07-08 11:46:27 -04:00
Gabriel Horner
f7b753758c
fix: tests with outdated :block/type assertions
...
also fix lint
2024-07-08 09:51:29 -04:00
Tienson Qin
1854286cf0
refactor: persistent views stored using blocks
2024-07-07 21:05:14 +08:00
Tienson Qin
1a0b333e7d
Merge branch 'refactor/add-page-type' into feat/db
2024-07-07 13:31:27 +08:00
Gabriel Horner
564effbe07
fix: db import of property pages with new properties
...
Part of LOG-3176
2024-07-06 21:42:31 -04:00
Gabriel Horner
8008ae4a76
fix: db import of tagged pages and blocks
...
using :property-classes option. Part of LOG-3176
2024-07-06 17:13:44 -04:00
Gabriel Horner
b870d71ea2
chore: configure and test importing favorites
...
Also test :hidden config with existing page count assertion and new ignored page
2024-07-06 12:15:52 -04:00
Tienson Qin
84f7266d96
wip: add "page" :block/type
2024-07-05 21:27:33 +08:00
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
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
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
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
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
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
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
Tienson Qin
ade53ebce1
fix: prefer passed page-uuid
2024-06-27 17:55:35 +08:00
Gabriel Horner
b70ba087b3
fix: new graph-parser test passes with clj runner
...
part of LOG-3092
2024-06-26 16:14:50 -04:00
Gabriel Horner
e619874dc4
enhance: add acceptance test for file to db graph import
...
Part of LOG-3092
2024-06-26 15:59:09 -04:00
Gabriel Horner
51a2c1425f
fix: db import for very basic file
...
Basic file couldn't import because :block/name is no longer unique for
db graphs. Part of LOG-3176
2024-06-26 15:59:09 -04:00
Gabriel Horner
5520bc1d33
fix: import single file from CLI didn't print error
...
Also improved CLI error reporting so sci stack is readable and
not filled with stack fn docstrings
2024-06-26 15:59:09 -04:00
rcmerci
dc785a92a7
refactor: make journal-day page's uuid like this
...
00000001-2024-0620-0000-000000000000
2024-06-20 17:01:58 +08:00
Tienson Qin
62a2564f4d
fix: add missing file/created-at attribute for db graphs
2024-06-20 16:57:38 +08:00
Tienson Qin
626e0b67e8
fix: store latest file stat
...
Fixes LOG-3143
2024-06-20 09:22:35 +08:00
Tienson Qin
b294896f8a
fix: reuse page uuids when parsing files
...
This commit also removes `with-id?` because it's too confusing.
Fixes LOG-3143
2024-06-15 22:52:30 +08:00
Tienson Qin
4281274512
fix: graph parser tests
2024-06-15 21:08:25 +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
95db811f55
fix: frontend tests shouldn't depend on sqlite3
...
frontend.test.helper was accidentally coupled to sqlite3 via
logseq.outliner.db-pipeline. Split out sqlite3 dependent fns to
logseq.outliner.cli so it's clear this shouldn't be coupled to frontend
2024-06-14 14:41:24 -04:00