Mega Yu
38e5e0fe7f
fix(test): move start-time initialization after clone repo
2026-03-12 23:18:27 +08:00
Gabriel Horner
ae003f1469
fix: clean up template property handling
...
When new built-in properties are supported in exporter, all-built-in-names
and file-built-in-property-names should be updated. No need
to handle block/properties-order and block/properties-text-values
as those are ignored
2026-03-11 15:44:12 -04:00
Gabriel Horner
fdf1a8f8cc
fix: imported Template blocks
...
Template blocks were being copied instead of updated in place. Would
feel buggy to user as Template blocks would show up twice in search and
would not be where they had defined them
2026-03-11 15:44:12 -04:00
Mega Yu
371b1d5301
feat(exporter): support template import
2026-03-11 15:44:12 -04:00
Mega Yu
935673a860
update path handling in exporter tests to make it compatible with Windows path
2026-03-11 15:44:12 -04:00
Gabriel Horner
5f7885dff5
fix: outdated docs and misc cleanup
...
Also added the new option to the import CLI,
improved tests that only test one file to only import 1 file
and cleaned up some hard to read code
2026-03-11 15:44:12 -04:00
Mega Yu
7522a87939
skip heavier parsing if code fences in the title
...
add split-title-by-code-fences test
2026-03-11 15:44:12 -04:00
Mega Yu
ecad45531d
feat: add support for Template, Math blocks and Cards in exporter
2026-03-11 15:44:12 -04:00
Mega Yu
309070fda0
fix typo
2026-03-11 15:44:12 -04:00
Mega Yu
e2f98a1507
standalone code blocks and tag them in-place during exporting
2026-03-11 15:44:12 -04:00
Mega Yu
1c351aebff
feat: add code snippet extraction functionality in exporter and UI options
2026-03-11 15:44:12 -04:00
Gabriel Horner
3d88cd1fd6
fix: import of multi word tags
...
Also fixes quirky editor bug for inline multi word tags. Both bugs
reported in https://github.com/logseq/db-test/issues/724
2026-02-16 14:35:53 -05:00
Tienson Qin
603489e379
Merge branch 'master' into feat/worker-sync
2026-02-12 00:43:42 +08:00
Gabriel Horner
e5c0cd036b
fix: graph-parser cljs tests
2026-02-11 11:36:32 -05:00
Gabriel Horner
e7b5c9a6b6
fix: CLI import results in invalid nodes
...
Had to add <get-file-stat w/ changes in #12313
2026-02-11 11:30:58 -05:00
Tienson Qin
2341fb9b7f
Merge branch 'master' into feat/worker-sync
2026-02-11 18:12:22 +08:00
megayu
40c9c86129
Fix issues related to importing Zotero ( #12313 )
...
* Fix import Zotero not recognized as asset
* Fix the inconsistency between imported Zotero label and actual filename
* Import support for zotero linked file like using zotfile
* Fix zotero highlighting block error after importing from file
* compatible with old configuration
* fix zotero picture highlight block does not consider as asset after importing
* Reconstructed to meet bb requirements
* empty datascript to avoid Conflicting upsert error after importing file to db graph
* use external-file-name instead of adding new property
* fix zotero link file can't open in asset page
* compatible with commit 33db791
* compatible with windows path & support zotero path can be relative for ci testing
* add zotero importing test
* remove prn log
* remove useless line
* Revert commit 45ebb9e
Future imports will be performed in the worker, will no longer encounter these issues
* refactor: update today page check to use async block retrieval
* Revert "refactor: update today page check to use async block retrieval"
This reverts commit 6750333df1 .
2026-02-11 17:43:04 +08:00
Gabriel Horner
5f34b04faa
chore: add test for / property page fix from #12353
2026-02-02 11:23:32 -05:00
Tienson Qin
d169b587f9
fix: graph parser tests
2026-01-30 20:45:02 +08:00
Tienson Qin
0eadb024de
Merge branch 'master' into feat/worker-sync
2026-01-30 17:37:29 +08:00
megayu
60297778a8
Fix issues related to importing file to db ( #12353 )
...
* fix multiline block containing attributes will be truncated and lose data after importing
* fix the issues with block attribute name contains "/" after importing
* standardize eol, all files except .bat files use lf
* compatible with windows path
* fix multiple line importing issues
2026-01-30 17:36:12 +08:00
Gabriel Horner
e7bfd53a7c
fix: import of namespace tags
...
w/ 2+ levels of namespaces. This should fix
https://github.com/logseq/db-test/issues/679
2026-01-27 16:01:25 -05:00
Gabriel Horner
23d6f1538a
fix: import of unlinked pdf annotations
...
This addresses the importer failing for
https://github.com/logseq/db-test/issues/732
2026-01-26 12:05:44 -05:00
Tienson Qin
729ca7fcbf
Merge branch 'master' into feat/worker-sync
2026-01-26 18:52:12 +08:00
Gabriel Horner
538d10a20a
fix: rm whiteboard and tldraw from graph-parser
...
Also disable test block which is causing an intermittent ref issue
to investigate later
2026-01-22 13:19:58 -05:00
Gabriel Horner
05ffa3eeb6
chore: remove fns made unused by OG removal
...
Found unused ones in deps/common, from unused frontend.db aliases
and from fns that only existed for their corresponding tests
2026-01-22 13:19:58 -05:00
Gabriel Horner
4bb7430682
fix: rm the last file-based namespaces in db dep
...
Also remove the following related file schema
attributes and their dependent code:
:block/marker, :block/priority, :block/scheduled,
:block/deadline,:block/repeated?, :block/pre-block?,
:block/properties-order, :block/properties-text-values, :block/macros,
:block/invalid-properties
2026-01-22 13:19:58 -05:00
Gabriel Horner
ab137a962a
fix: remove file graph imports
...
Remove mention of removed JSON import in descriptions. Also mv frontend.util.fs
to where they are used instead of keeping an outdated file ns
2026-01-22 13:19:58 -05:00
Gabriel Horner
37d9ebda1f
chore: remove file-specific graph-parser code
...
Also removed file graph code for markdown export as a prereq
2026-01-22 13:19:57 -05:00
Gabriel Horner
2bcc331916
fix: remove gp-db ns, especially since it's unused
...
or incorrect in case of graph-view. Removed file graph
specific tests that depended on gp-db
2026-01-22 13:19:57 -05:00
Gabriel Horner
b91b892181
chore: remove unused file ns graph-parser.cli
2026-01-22 13:19:57 -05:00
Gabriel Horner
98ab051328
fix: importing journals with tags
...
Fixes https://github.com/logseq/db-test/issues/588
2026-01-20 10:24:19 -05:00
Gabriel Horner
045cd5f537
enhance: import block tags that are
...
specified via tags property. Fixes
https://github.com/logseq/db-test/issues/434
2025-12-18 13:35:42 -05:00
Gabriel Horner
b4f3e364e6
fix: duplication of exporter config leads to bugs
...
in script and test. Also fix <export-file not being waited on and new docs
after #12260
2025-12-15 12:15:48 -05:00
Tienson Qin
33db791ac0
fix: import Zotero pdf blocks ( #12260 )
...
fix: support zotero files when importing pdf annotations
2025-12-15 23:28:58 +08:00
Gabriel Horner
8fc56bfaa3
refactor: Update importer to use validate-local-db
...
Also update validation in DB scripts:
* replace alternative validate-db impl with standard CLI one
* Add validation to import script
* Choose to decouple other DB scripts from validate-db as it may go away
later
2025-12-04 10:30:56 -05:00
Tienson Qin
e311e1b85c
fix: don't create child tags when saving inline
2025-11-21 00:33:34 +08:00
Gabriel Horner
c91661f022
fix: import code block inside quote block
...
Fixes https://github.com/logseq/db-test/issues/523
2025-11-04 10:48:09 -05:00
Tienson Qin
248fdeb422
fix: tests
2025-09-29 17:37:04 -04:00
Tienson Qin
971cec54bc
fix(import): remove asset byte-array usage to prevent OOM
...
This commit also combine read-asset and copy-asset to read-and-copy-asset
2025-09-29 17:37:04 -04:00
Tienson Qin
248d8c33f2
refactor: remove block/path-refs ( #12081 )
...
1. refactor: use :block/refs and has-ref rule instead of path-refs
2. remove block/path-refs
3. removes :block-parent rule since there's already :parent
4. enhance: skip pipeline calculation for rtc initial download tx
5. refactor(rtc): remove memoize
---------
Co-authored-by: rcmerci <rcmerci@gmail.com >
2025-09-03 20:33:33 +08:00
Gabriel Horner
a81274cd0d
fix: import quoted math blocks
...
and lists in quote blocks. Addresses main issue in https://github.com/logseq/db-test/issues/434
2025-09-02 13:52:32 -04:00
Gabriel Horner
f4a8b9438e
fix: block references to annotations
...
Don't rewrite annotation uuids as we don't do that for other existing blocks
2025-07-22 08:57:21 -04:00
Gabriel Horner
ad5c776f46
fix: doc files in assets shouldn't be extracted
...
Asset files that are edn or md were being treated like assets and
extracted as doc files. This was noticed because pdf annotation edn was being
needlessly extracted
2025-07-22 08:57:21 -04:00
Gabriel Horner
3f21c297b2
enhance: import markdown annotations
...
for pdfs and any children blocks under highlight. Only
imports text from md annotations
2025-07-22 08:57:21 -04:00
Gabriel Horner
4c9d063323
enhance: import pdf area annotations
2025-07-22 08:57:21 -04:00
Gabriel Horner
536f39cbbd
enhance: import basic pdf text annotation
...
Only read edn for now. Works in UI and CLI.
Also correctly keeps annotation edn from being copied since
it's no longer used
2025-07-22 08:57:21 -04:00
Tienson Qin
9bede53a34
fix: tests
2025-06-29 15:21:09 +08:00
Gabriel Horner
42f0519797
fix: import property that changes from :node to :default
...
on same page :as :node property is defined. Also affects :date ->
:default. Fixes https://github.com/logseq/db-test/issues/340
2025-06-23 14:02:28 -04:00
Gabriel Horner
cc05518ea5
fix: use ast blocks for advanced queries conversion
...
Fixes cases where BEGIN_QUERY nested in BEGIN_SRC were incorrectly
being converted to queries e.g. most queries in
https://docs.logseq.com/#/page/advanced%20queries
2025-06-23 19:04:03 +08:00