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
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
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
Gabriel Horner
0036a5d9de
fix: invalid throws and remove unused values
...
Caught by updating to latest kondo
2024-10-31 14:12:09 -04: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
Gabriel Horner
c0e7ffe444
fix: graph-parser lint
2024-09-19 10:33:35 -04:00
Tienson Qin
b37a268706
fix: lint and test
2024-09-19 19:46:30 +08:00
Tienson Qin
e7e579d3de
fix: pasting differently formatted dates disappear after entry
...
fixes https://github.com/logseq/db-test/issues/103
2024-09-19 18:39:02 +08:00
Tienson Qin
c3f0cc1953
fix: disallow # in page name
...
Because it creates ambiguity in some cases:
1. With cmd-k we can’t tell the difference between an Apple page
tagged with Fruit and a page named "Apple #Fruit"
2. What should we do with [[Apple #Fruit king]]?
3. Is `#` for Markdown heading or part of a page name?
Fixes https://github.com/logseq/db-test/issues/100
Fixes https://github.com/logseq/db-test/issues/106
Fixes https://github.com/logseq/db-test/issues/105
2024-09-19 06:31:26 +08: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
9423eda275
fix: imported queries don't have #Query
...
Fixes LOG-3233. Also fix some test idents not being valid
2024-09-17 12:27:46 -04:00
Gabriel Horner
85af06beb3
fix: most imported journal pages didn't have #Journal
...
Fixes LOG-3234
2024-09-17 11:31:26 -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
a246db8a82
fix: remove built-in properties only used by file graphs
...
In #11508 we switched to a new table component for db graph queries which left
these built-in properties unused. Also moved file query code to
file-based namespaces and fixed a bug where multiple query properties
couldn't be set for a file graph query
2024-09-13 12:08:42 -04:00
Gabriel Horner
8b9d2a601e
enhance(dev): print ignored properties for CLI import
2024-09-12 17:25:42 -04:00
Gabriel Horner
2059eaa4f2
fix: test assertions changed by last commit
2024-09-09 15:53:40 -04:00
Gabriel Horner
4962aad8ba
fix: file graph console error while typing priority
...
Typed '[#' and saw an error. build-new-class shouldn't be
be called for file graphs
2024-09-09 15:35:02 -04:00
Gabriel Horner
39b0e3e368
enhance: all journal pages have #Journal class
...
Also add some support for importer to do the same
2024-09-06 18:27:58 -04:00
Gabriel Horner
04742d6922
fix: db import of 'parent' property
...
Bug only triggered by user properties that happen to have same name as a
built-in property and the built-in is capitalized. Added a helper fn to
avoid this bug in the future. Removed hack from #11494 as assuming
a user properties are built-in ones would result in surprised users with
buggy imports. Also fixed lint from previous commit
2024-09-05 17:14:20 -04:00
Tienson Qin
f3c59a9db3
fix: graph-parser tests
2024-09-04 12:55:37 +08:00