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
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
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
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
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
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
62701e1b6e
fix: tests with outdated datom counts
...
I think caused by recent macros parsing or whiteboard changes
2024-06-05 17:06:16 -04:00
Gabriel Horner
602b236a4c
fix: graph-parser lint
2024-05-02 10:23:20 -04:00
Tienson Qin
1ec4796eff
refactor: replace :block/left with :block/order
...
Finally no need to worry about parent-left conflicts and broken chain.
With :block/order, we only need to re-compute new orders for siblings
with same order (it can happens if there're bugs in our code, or
updates from rtc), but it doesn't break UI.
Another huge potential benefit after discussing with Zhiyuan is:
Ee might be able to simplify both RTC and undo/redo, currently, we
need to handle each new op for both of them, with recently
refactorings like properties being db attributes, :block/order
is a string instead of a ref, we can handle most property value
conflicts using last-write-wins, and others (e.g. :block/parent,
property with :default type) specifically.
I haven't fixed the issues of using :block/left in RTC and undo/redo,
because we might change both soon.
2024-05-02 01:12:22 +08:00
Gabriel Horner
3681ac354b
fix: move db-pipeline and datascript-report back to outliner dep
...
graph-parser is primarily a file graph dep that is maintained separately
from db graphs. We want to move as many namespaces out of it as
possible. Also moved differing count assertions to
their respective tests
2024-04-25 11:22:14 -04:00
Tienson Qin
b55c064305
fix: move :block/path-res calculation to dep graph-parser
2024-04-25 16:50:04 +08:00
Gabriel Horner
878d69f342
fix: graph parser tests
...
extract and dependent namespaces require a db now and :block/path-refs
is no longer being handled in this dep
2024-04-24 16:55:24 -04:00
Tienson Qin
8d9e6da41e
refactor: use :block/type for journal pages instead of :block/journal?
...
breaking change:
removes :block/journal attribute
2024-04-24 20:12:15 +08:00
Tienson Qin
9df8918f94
Remove more :block/name lookup ref usage
2024-04-04 15:57:48 +08:00
Gabriel Horner
f728b7b9f6
fix: multiple bugs with built-in pages, fixes LOG-3046
...
- file graph wasn't creating built in pages
- 3 places where db graphs were incorrectly using file graph built in
page names
- file graphs creating default pages with incorrect format
2024-03-29 16:21:19 -04:00
Gabriel Horner
bf56cd3252
chore: move legacy fns to legacy ns
...
title property is for file graphs and should be kept with its ns
to avoid confusion
2024-01-31 11:11:14 -05:00
Gabriel Horner
951e7cc841
fix: ns-docstring and large-var deps lints
...
Also fixed db-and-file-graphs-separate lint and moved gp-property tests
that should be moved since their source code has moved from frontend
to gp-property
2024-01-12 17:03:09 -05:00
Gabriel Horner
cdddce0120
fix deps db test and most lints
...
Also deleted duplicated gp-util.{page-ref,block-ref} files that were moved to common
and moved a related test to common dep
2024-01-11 14:35:04 -05:00
Tienson Qin
7258cf48da
fix deps
2024-01-03 18:12:12 +08:00
Tienson Qin
9194a671fd
Move outliner core to its own dep
2024-01-03 18:02:48 +08:00
Tienson Qin
a6f83c2445
Move worker.util fns to common.util
2024-01-03 17:08:24 +08:00
Tienson Qin
b7d9098e80
Move gp-util and gp-config to the common dep
2024-01-03 16:38:05 +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
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
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
b1b830c872
fix tests I forgot to update with :block/format fix
2023-10-16 16:14:53 -04:00
Gabriel Horner
e09a5d9988
fix: pages didn't consistenly have :block/format
...
Making attributes consistent reduce bugs in components and query layer (where
most wouldn't know to use get-else)
2023-10-16 12:58:11 -04:00
Gabriel Horner
82994cb79d
fix: tests related to :block/type arity change
2023-09-25 12:30:21 -04:00
Tienson Qin
0e8653985d
refactor: allow a block to have multiple types
...
For example, a whiteboard page can be used both as a property and a class.
2023-09-25 10:46:00 +08:00
Gabriel Horner
172ee0ae24
Provide sqlite.cli for reusable sqlite fns
...
Already had to do read-graph 3 times and will soon need to it outside
logseq so worth putting this behind an api ns
2023-08-15 18:08:44 -04:00