Gabriel Horner
409107f385
fix: duplicate journal pages when deadline is on same day
...
as block's page. Switched to using page-names-to-uuids instead
of db since it has the uuids of current page. Fixes logseq/db-test#192
2024-12-19 14:27:37 -05:00
Gabriel Horner
a987826a48
enhance: import cards correctly regardless of tag options
...
and also ignore card properties which can't be applied in db version.
Fixes LOG-3062
2024-11-26 16:03:12 -05:00
Gabriel Horner
99bf950bd1
fix: import with journal refs result in invalid blocks
2024-11-22 16:07:38 -05:00
Gabriel Horner
6f0885b374
fix: importing a class via :parent that is then used
...
in :type property fails
2024-11-22 15:01:08 -05:00
Gabriel Horner
b5203fa4d3
fix: db-import of property-classes option fails on docs graph
...
Fixed by ensuring that tag names and namespace names don't conflict
when making class idents. The specific bug was a conflict between
Tool class and Whiteboard/Tool. Interestingly the bug didn't appear
if the Tool's description property wasn't present.
Also fixed some importer tests not parsing namespaces correctly
or taking :verbose option
2024-11-19 16:43:23 -05:00
Gabriel Horner
2569488493
fix: db import of namespaced tags across multiple pages
...
Fixes conflicting upserts seen in
https://github.com/logseq/db-test/issues/7#issuecomment-2480564898
2024-11-18 11:40:55 -05:00
Gabriel Horner
d4caacce3d
fix: tags and refs on same page should have same uuid
...
Fixes identity issue in 1st section of
https://github.com/logseq/db-test/issues/7#issuecomment-2463162620
2024-11-14 17:21:06 -05:00
Gabriel Horner
f1624fb20c
fix: import namespaced tag correctly
...
Fixes db graphs being invalid and some of
https://github.com/logseq/db-test/issues/7#issuecomment-2463162620
2024-11-12 14:10:06 -05:00
Gabriel Horner
90d1b7261f
fix: import bug with aliased namespace pages
...
Was also failing docs graph. Part of logseq/db-test#136 and part of
LOG-3230
2024-10-18 11:54:39 -04:00
Gabriel Horner
3e05347379
fix: db import failing on namespace pages with built-in name
...
e.g. term/alias in docs graph. Also added some basic namespace import
tests. Part of logseq/db-test#136 and part of LOG-3230
2024-10-18 11:46:05 -04:00
Gabriel Horner
28457cd02b
enhance: import namespaces to db graph
...
Working for basic graph but failing on edge case for docs graph.
Part of logseq/db-test#136 and part of LOG-3230
2024-10-18 08:24:45 -04:00
Gabriel Horner
bc4f121572
enhance: add import support for linked ref filters
...
Fixes LOG-3201. Also refactor and fix page-names-to-uuids to include
all existing user page names, not just ones from current file
2024-10-09 14:54:46 -04:00
Gabriel Horner
e74912c850
enhance: import advanced queries as query objects
...
Fixes LOG-3247. Handles migrating deprecated options and string and non-string titles
2024-10-02 16:19:52 -04:00
Gabriel Horner
9531811b68
fix: simple queries without properties not importing
...
Also handle query title for simple queries. Also loosened page-tags to
allow for future logseq class importing. Fixes LOG-3243
2024-10-02 12:23:22 -04:00
Gabriel Horner
27c5d120ef
fix: import fails hard on page names with '#'
...
Follow up to c3f0cc1953
2024-09-19 14:57:18 -04:00
Gabriel Horner
55ce311173
fix: type page failing for docs graph
...
Looks like the introduction of :logseq.property.view/type
triggered a bug with new pages having the same name as a built-in
and having a page property. This is a followup fix to LOG-3039
2024-09-18 16:26:56 -04:00
Gabriel Horner
de14dbe800
enhance: import query properties to use new tables
...
Allows imported queries to use new query tables. Fixes LOG-3232
2024-09-13 18:33:53 -04:00
Gabriel Horner
3a4cc55cda
fix: graph-parser test and lint
...
Removed test as no error handling is needed for ident generation. Also
removed all related downstream uses of catch for
db-ident/create-db-ident-from-name that are no longer needed
2024-08-19 15:40:28 -04:00
Gabriel Horner
4a69e75e88
fix: import doesn't fail if it has a page with new class name
...
fixes LOG-3039
2024-08-08 15:16:21 -04:00
Gabriel Horner
48df03a1fa
fix: finish removing arweave
...
Follow up to a6e0b0a092
2024-08-08 09:24:02 -04:00
Gabriel Horner
dcb73b1003
fix: db import of advanced queries
...
Fixes LOG-3082
2024-08-07 16:30:20 -04:00
Gabriel Horner
66439dde68
fix: db import of markdown tables and multiline blocks
...
Fixes LOG-3072 and fixes LOG-3070
2024-08-07 12:33:13 -04:00
Tienson Qin
d26e620a82
refactor: update :block/type to cardinality one instead of many
2024-07-31 19:35:26 +08:00
Gabriel Horner
6093462555
fix: db import after changes from #11433
2024-07-30 14:47:35 -04:00
Tienson Qin
b3a786db02
Merge branch 'feat/db' into refactor/narrow-gap-between-page-and-block
2024-07-29 13:36:00 +08:00
Gabriel Horner
4c0c87337b
fix: db import of whiteboard block with properties
...
Part of LOG-3176
2024-07-25 15:58:19 -04:00
Tienson Qin
7274a0bb40
Merge branch 'feat/db' into refactor/narrow-gap-between-page-and-block
2024-07-25 09:57:37 +08:00
Gabriel Horner
4b365da70c
fix: display more helpful notifications for invalid
...
properties and classes that can't build a db-ident. Part of LOG-3176
2024-07-24 16:35:05 -04:00
Gabriel Horner
3411f344e3
fix: db import with property-parent-classes option
...
Also fixes some bugs with docs graph having classes split into more than
one db/ident. Part of LOG-3176
2024-07-24 14:55:06 -04:00
Tienson Qin
a44f6c27d5
Merge branch 'feat/db' into refactor/narrow-gap-between-page-and-block
2024-07-21 11:34:49 +08: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
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
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
Tienson Qin
d847023dc1
Refactor: rename :block/content to :block/title
2024-07-10 22:33:44 +08: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
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