Tienson Qin
f05cb555fe
Merge branch 'feat/db' into refactor/block-schema
2025-01-14 15:43:39 +08:00
rcmerci
3e025dd311
enhance: add created-by prop to blocks
2025-01-14 14:57:33 +08:00
Tienson Qin
2e12918d5c
Merge branch 'feat/db' into refactor/block-schema
2025-01-14 14:17:24 +08:00
Gabriel Horner
1ab621069d
enhance: importer displays one notification about ignored files
...
rather than one notification per file. Also ignore pdf highlight pages
as user graphs shouldn't fail hard on features that aren't imported yet.
This allowed the user graph in
https://github.com/logseq/db-test/issues/191 to import without errors
2025-01-13 11:44:02 -05:00
Tienson Qin
93a7034249
Remove more cases of :block/schema
2025-01-13 10:00:00 +08:00
Gabriel Horner
b8c569f1c4
fix: importer failing and invalid on two page to class conversion cases
...
Failed for edge case when page converts to class via -p or -P. Page to
class conversions sometimes resulted in invalid :block/tags. Also
cleaned up last of class or page tx that were embedded in db attributes
2025-01-09 20:57:40 -05:00
Gabriel Horner
697147540f
fix: importer fails to find classes with property-parent-classes option
...
when on pages that have the same name as a built-in
2025-01-09 14:51:24 -05:00
Tienson Qin
8a0a05183e
refactor: remove :block/format for db graphs ( #11667 )
2025-01-05 12:10:47 +08:00
Gabriel Horner
b7723db753
fix: importer importing some pages as both Tag and Page
...
Also fixed using pages as a tag first time via '#' didn't build tx correctly.
Fixing these allowed for enabling logseq.class/Page validation
2025-01-02 17:29:22 -05:00
Tienson Qin
cdd4ccfccf
refactor: update deadline to :datetime type
2024-12-26 22:29:30 +08:00
Tienson Qin
223928343a
Merge branch 'refactor/tag-as-type' into feat/repeated-tasks
2024-12-22 14:46:31 +08:00
Gabriel Horner
dbb84f0327
Merge branch 'feat/db' into refactor/tag-as-type
2024-12-19 15:29:25 -05:00
Gabriel Horner
052d239682
enhance(dev): add debug context for get-page-uuid in importer
2024-12-19 14:54:13 -05:00
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
05a31b7d76
fix: importer had incorrect set of Page based classes
...
Just derive from built-in-classes so this doesn't keep happening
2024-12-17 22:04:29 +08:00
Gabriel Horner
3dff9e26c0
fix: aliasing of namespaced pages broken
...
Also fixes docs graph warnings about ignored attributes
2024-12-17 22:04:28 +08:00
Gabriel Horner
f58f83eb38
fix: more imported properties and tags
...
that had extra :logseq.class/Page. Explains the page
count change in this branch
2024-12-17 22:04:28 +08:00
Tienson Qin
06b9f6107d
fix: tests
2024-12-17 22:04:28 +08:00
Gabriel Horner
596700c6a3
fix: imported tags aren't both a Page and a Tag
...
imported tags should behave like app
2024-12-17 22:04:28 +08:00
Gabriel Horner
afab95f8fc
fix: imported properties aren't both a Page and Property
...
imported property should behave like app
2024-12-17 22:04:28 +08:00
Tienson Qin
a2a08ef647
fix: graph parser tests
2024-12-17 22:04:28 +08:00
Gabriel Horner
87caca8c68
fix: some imported pages were missing Page class
...
Also fix error reporting for users wasn't working. Also fix lint
and add another attribute to linter
2024-12-17 22:04:28 +08:00
Tienson Qin
380628650e
fix: more tests
2024-12-17 22:04:28 +08:00
Tienson Qin
c6c925d40e
fix: exporter whiteboards tests
2024-12-17 22:04:28 +08:00
Tienson Qin
a025b4b096
wip: fix exporter tests
2024-12-17 22:04:28 +08:00
Tienson Qin
e737a69583
fix: importing tags that have the same names as internal tags
2024-12-17 22:04:28 +08:00
Tienson Qin
c78d019389
fix: don't overwrite internal tags when importing md files
2024-12-17 22:04:28 +08:00
Tienson Qin
caab95af52
fix: Page tag in exporter
2024-12-17 22:04:28 +08:00
Tienson Qin
c428b87dce
wip: schema migration
2024-12-17 22:04:27 +08:00
Tienson Qin
c5fa699db0
Replace more :block/type
2024-12-17 22:04:27 +08:00
Tienson Qin
9e10dc1737
wip: use :block/tags to represent block types
2024-12-17 22:04:27 +08:00
Gabriel Horner
af044ddb1e
fix: remove unnecessary block/refs task calculations
...
Part of LOG-3198. Also fix test assertion and add another
2024-12-04 15:57:55 -05:00
Gabriel Horner
14a621fdcb
fix: imported pages don't have :block/refs
...
Fixes logseq/db-test#134 . Also does a good chunk of
https://github.com/logseq/db-test/issues/134 as ref calculation of db
graphs was refactored to be reused across UI and CLI
2024-12-03 16:16:56 -05:00
Tienson Qin
cc27407699
fix: store #tag as #[[uuid]] internally
2024-11-30 17:12:15 +08:00
Tienson Qin
faf7f48860
refactor: internal ref uses [[uuid]] instead of ~^[[uuid]]
2024-11-30 17:12:15 +08: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
bfffde8b2d
fix: import of some class pages can still lose identity
...
Some pages that turn into classes were still having split uuids.
Underlying cause was that existing page uuid was incorrect
2024-11-22 11:30:07 -05:00
Gabriel Horner
5541205674
enhance: default to importing all tags
...
Fixes LOG-3235. Still default to not importing all tags in tests and
scripts to simplify their workflows
2024-11-20 13:31:42 -05:00
Gabriel Horner
484648b986
fix: docs graph fails to import with both property*
...
options enabled
2024-11-20 10:39:21 -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
fb18cc5f52
fix: typo
2024-11-18 17:00:54 -05:00
Gabriel Horner
3469dfd65d
fix: db import of blocks with namespaced tags are only tagged
...
with child leaf tag. Fixes two tags issue reported in
https://github.com/logseq/db-test/issues/7#issuecomment-2463162620
2024-11-18 16:53:03 -05:00
Gabriel Horner
bb98ec1004
refactor: most class creation in db import is like any other page tx
...
and not embedded in :block/tags. Doing this allows for simpler import tx
and is necessary in order to post process :block/tags
2024-11-18 15:47:31 -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
7e25dd2a5d
fix: db import of empty journal failing hard
...
Fixes `Vector's key for assoc must be a number.` error from
https://github.com/logseq/db-test/issues/7#issuecomment-2480564898 .
This lower level graph-parser had been returning the wrong data
structure for awhile
2024-11-18 09:46:39 -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
1e128db972
refactor: also mv favorites page into initial create
...
and mark as built-in since it is
2024-11-14 12:00:14 -05:00
Gabriel Horner
b250e262d2
enhance: journal pages and blocks are created on their journal day
...
Fixes https://github.com/logseq/db-test/issues/77
2024-11-13 14:22:25 -05:00