Gabriel Horner
bb133c4eba
fix: test cleanup for 2c23731b5d
...
Remove assertion that is no longer valid and remove
property filtering for a test that is no longer needed
2024-11-15 16:04:10 -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
cc126c009c
refactor: Mv creation of initial views blocks for db graph
...
to initial transact!. Db graph should have everything it needs with
initial transact. With views page in new db graphs, test was able to
catch a bug, views page wasn't marked as a built-in? when it is
2024-11-14 11:44:37 -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
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
3154b849dd
enhance(dev): add latest import options to script
2024-11-12 10:56:05 -05:00
Tienson Qin
502e3fd807
Merge branch 'feat/db' into refactor/dsl-query
2024-11-08 15:13:19 +08:00
Gabriel Horner
230e74fcd6
fix: tests and doc strings
2024-11-07 21:34:37 -05:00
Gabriel Horner
0fcbe9fe89
fix(dev): import script's user options
2024-11-06 15:22:45 -05:00
Gabriel Horner
643ff63a10
fix: 3 user options defaulting to #{""} values
...
which could have caused subtle bugs. Also cleaned up user-options so
future changes don't require making so many changes
2024-11-06 11:13:03 -05:00
Tienson Qin
3391ab2076
Merge branch 'feat/db' into refactor/dsl-query
2024-11-06 12:20:51 +08:00
Tienson Qin
1519d035b5
fix: graph-parser tests
2024-11-06 11:43:15 +08:00
Gabriel Horner
a3fde2a9f4
enhance: add import option to remove-inline-tags
...
Part of LOG-3235. Now with the ability to import all tags, Some users
will want to keep inline tags
2024-11-04 17:27:00 -05:00
Tienson Qin
38b0e1bfe3
Merge branch 'feat/db' into refactor/dsl-query
2024-11-04 12:43:36 +08:00
Gabriel Horner
2232fc8a1d
fix: removing tags from content
...
when two tags have same prefix e.g. foo and foo-bar.
Similar issue to b34325be77 .
Also tweaked import wording
2024-11-01 16:50:47 -04:00
Gabriel Horner
0f5faf7b40
enhance: user can optionally import all tags as classes in UI
...
Part of LOG-3235 and part of logseq/db-test#7
2024-11-01 14:19:39 -04:00
Tienson Qin
88a7602bda
fix: graph parser tests
2024-11-01 15:51:04 +08:00
Tienson Qin
ba3a8b84fb
fix: query dsl tests
2024-11-01 09:47:21 +08:00
Gabriel Horner
0036a5d9de
fix: invalid throws and remove unused values
...
Caught by updating to latest kondo
2024-10-31 14:12:09 -04:00
Tienson Qin
03b3291486
Merge branch 'feat/db' into refactor/dsl-query
2024-10-31 20:57:40 +08:00
Gabriel Horner
379b7768ce
enhance: add optional support for importing all tags as classes
...
Part of LOG-3235 and fixes part of logseq/db-test#7 . Not enabled in UI yet as need to test more
2024-10-29 16:17:01 -04:00
Gabriel Horner
a6238233c5
chore: cleanup on namespace import support
...
namespace modifications should happen with other modify fn instead of
in arbitrary property fn. Fixes LOG-3230
2024-10-18 14:32:49 -04: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
594e255d98
fix: db import shouldn't fail on asset imports
...
Correctly display asset related properties as ignored for now.
Related to #11563 . Also fix lint
2024-10-11 11:36:01 -04:00
Gabriel Horner
39994b6891
fix: missing pages caused by import of changed property type
...
related to logseq/db-test#134
2024-10-10 09:34:22 -04:00
Tienson Qin
d765d1ceeb
Merge pull request #11563 from logseq/refactor/assets
...
feat: #Asset tag
2024-10-10 15:54:15 +08:00
Gabriel Horner
e0b5c78374
fix: large exporter var
2024-10-09 15:21:57 -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
Tienson Qin
c049eb28fd
Merge branch 'feat/db' into refactor/assets
2024-10-09 15:51:26 +08:00
Gabriel Horner
79569e8eaf
enhance: add title-format support for import
...
Fixes
https://linear.app/logseq/issue/LOG-3219/import-journalpage-title-format-config .
Part of https://github.com/logseq/db-test/issues/61
2024-10-08 11:51:54 -04:00
Tienson Qin
3acbed2731
chore: remove properties :file and :file-path from db graphs
...
The db version uses :logseq.property/asset.
2024-10-08 22:55:06 +08:00
Tienson Qin
6f615a2b04
fix: graph-parser test
2024-10-08 21:38:25 +08:00
Gabriel Horner
830c275d54
chore: use internal-page? helper
2024-10-03 11:52:23 -04:00
Tienson Qin
604e4be4d8
fix: test
2024-10-03 18:38:58 +08: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
83c59128ad
fix: db import imports simple queries with new query property
...
Part of LOG-3243
2024-10-01 16:57:18 -04:00
Gabriel Horner
939dd23f79
chore: use test helpers across db tests
...
instead of copied and pasted versions
2024-09-27 14:54:03 -04:00
Gabriel Horner
a0d4e43d18
enhance: add /Advanced Query for db graphs
...
Related to
https://linear.app/logseq/issue/LOG-3246/improve-advanced-query-editor .
Had to upgrade promesa to get p/doseq
2024-09-26 10:55:50 -04:00
Gabriel Horner
30a652631d
fix: incorrect return values when edn parsing fails for queries
...
safe-read-string assumed all parsed strings were maps by returning {}
on failure. This could lead to subtle bugs in our new query layer and
other non-map features like hiccup
2024-09-25 11:39:29 -04:00
Gabriel Horner
f41ce9d6df
fix: parser large var
2024-09-24 16:56:31 -04:00
Tienson Qin
0641490fc8
fix: graph-parser tests
2024-09-25 02:12:45 +08:00
Tienson Qin
fb2cc14444
fix: don't parse parent from namespace pages
2024-09-25 01:54:42 +08:00
Gabriel Horner
afe4280c6a
refactor: DRY up spread out definition of db's
...
namespace/parent feature. Following up to #11517 , provide vars
so it's clear how a feature is used and coupled throughout the codebase
2024-09-23 14:53:12 -04:00
Tienson Qin
f494ef9786
fix: "/" page error
2024-09-21 09:51:22 +08:00
Gabriel Horner
fdc0ca58d4
fix: changing tag cases should not break their identity
...
Fixes logseq/db-test#83 . Also add a handy log to toggle when tracing sources
of ui bugs
2024-09-20 16:11:39 -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