Commit Graph

175 Commits

Author SHA1 Message Date
Gabriel Horner
39e0deeae8 dev: add basic integration test for importing docs graph
Part of LOG-3092
2024-07-22 17:12:45 -04:00
Gabriel Horner
f2ecca08d9 chore: update docs integration tests to use latest released docs version 2024-07-22 15:38:15 -04:00
Gabriel Horner
cd4e0c5642 fix: db import inferring a class' properties
Also remove :block/namespace from page import as its unused.
Part of LOG-3176
2024-07-12 16:17:53 -04:00
Gabriel Horner
1f9b893ba0 fix: tests altered by last commit
Also add a block-ref example to last whiteboard test page
2024-07-12 14:38:03 -04:00
Gabriel Horner
62252479ee fix: db import of some whiteboard pages
Also fix old whiteboards not having correct :block/type.
Part of LOG-3176
2024-07-12 14:22:10 -04:00
Gabriel Horner
60cd9b00da fix: db import of namespaced page created invalid class
Encountered this with docs graph. Part of LOG-3176
2024-07-12 12:32:48 -04:00
Gabriel Horner
7c19f9faad fix: db import of whiteboards shouldn't fail
Can't visually confirm import yet b/c of whiteboard bug
but at least whiteboard import is valid. Part of LOG-3176
2024-07-12 00:28:03 -04:00
Gabriel Horner
9869bed612 fix: db import of some deadline blocks being invalid
Ignore repeated as it's not supported. Part of LOG-3176
2024-07-11 23:29:11 -04:00
Gabriel Horner
879e07b2f4 fix: db import of aliases
Also ignore :filters for now so they don't make graphs invalid and
add more tests for tags. Part of LOG-3176
2024-07-11 23:13:08 -04:00
Gabriel Horner
33785dca66 fix: db-import of :query-sort-by property
Also fix warning notifications printing empty error logs.
Part of LOG-3176
2024-07-11 18:00:21 -04:00
Gabriel Horner
0bcd48d724 fix: db import when :page property changes to :default
Also fix frontend import's db-browser/transact! wasn't getting or
updating all of the imported tx changes. Part of LOG-3176
2024-07-11 17:23:34 -04:00
Gabriel Horner
21f959e5c0 chore: add more db-import tests
Test for float and ref block/content replacement. Part of LOG-3092
2024-07-10 16:18:04 -04:00
Gabriel Horner
7ce983df24 refactor: move ignored properties page to its own test
Moved it to ignored/ so that frontend import of test-exporter-graph isn't
always displaying warnings. Part of LOG-3092
2024-07-10 15:05:38 -04:00
Gabriel Horner
c406cb2461 fix: db import when properties change from :date to :page
Part of LOG-3176
2024-07-09 15:22:35 -04:00
Gabriel Horner
60b13a525e fix: db import of collapsed block being invalid
Also cleanup infer fn which had import-specific code and add tests
for :default to :page :type change. Part of LOG-3176
2024-07-09 14:23:22 -04:00
Gabriel Horner
8279205fc7 fix: db import of property :type changes to :default
Just handles :one cardinality so far. Part of LOG-3176
2024-07-09 12:33:35 -04:00
Gabriel Horner
0f7f4d431e fix: db import of a page with two uses of new property
Also add tests for :date property and first property change.
Part of LOG-3176
2024-07-08 21:48:28 -04:00
Gabriel Horner
5b4cb0d213 chore: add test for block refs
Part of LOG-3092
2024-07-08 16:05:30 -04:00
Gabriel Horner
13048a901c chore: add more property tests for db import
Part of LOG-3092
2024-07-08 15:59:33 -04:00
Gabriel Horner
057d6b459f fix: :url property values with macros
Macros in :url are useful for having urls with a common hostname that
can be configured once. Without this fix, docs graph is invalid
2024-07-08 13:34:28 -04:00
Gabriel Horner
47cbe96126 chore: reduce logging verbosity of parser tests 2024-07-08 12:15:07 -04:00
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
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
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
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