Commit Graph

293 Commits

Author SHA1 Message Date
Gabriel Horner
a61ee21e25 enhance: add basic script to test db graph import
also tweaked query script to work with db graphs by relative path
2024-02-24 00:42:46 -05:00
Tienson Qin
86b70c1f6d fix: compute block/refs and block/path-refs after pulling remote 2024-02-23 21:35:11 +08:00
Gabriel Horner
bfc5bf9ccc enhance: allow user macros for :url property values
and single line :default values
2024-02-22 14:49:03 -05:00
Gabriel Horner
f28cf73ef4 enhance: validate db once for an import
and notify if there are invalid blocks. Removed validating per tx during
import which speeds up import 5-10% on small graphs and more on larger
graphs. Also print some useful stats in the console
2024-02-19 15:34:58 -05:00
Gabriel Horner
3bf7ee5645 enhance: import support for :page and infer :date properties 2024-02-16 11:36:06 -05:00
Gabriel Horner
0bba0a2ca9 enhance: import built-in logseq.* props - part of LOG-2977 2024-02-15 15:01:01 -05:00
Gabriel Horner
b5a52edae8 fix: db lint 2024-02-14 17:20:27 -05:00
Gabriel Horner
3b745ac035 enhance: first pass at importing block properties
part of LOG-2985. Still somethings failing for docs graph
2024-02-14 17:16:36 -05:00
Gabriel Horner
48b974d64e enhance: all page refs in imported content are special ids
close LOG-3055. Also fix graph-parser errors being ignored
2024-02-12 22:02:54 -05:00
Gabriel Horner
26bc6f0d1d chore: mv logseq.graph-parser.util.db to db dep
This ns is more appropriate in db and was only in graph-parser because
the date-time-util lib wasn't accessible to db until #10933 landed.
graph-parser dep is specific to file graphs and as much as possible
anything unrelated to this should not be in this dep
2024-02-09 16:16:33 -05:00
Tienson Qin
62b90b7ae7 Merge branch 'feat/db' into perf/lazy-load-data 2024-02-09 09:28:36 +08:00
Gabriel Horner
dab6b5aff4 enhance: add support for importing page and block tags
Allows users to specify which tags are tag classes and
the rest are just normal pages. Fixes LOG-2984
2024-02-08 16:49:27 -05:00
Gabriel Horner
58b2888729 fix: test and lints
also remove unused binding not caught by linter b/c it's used
2024-02-07 12:23:14 -05:00
Tienson Qin
bee1cbfeb5 fix: load page tags 2024-02-07 07:22:40 +08:00
Tienson Qin
bd9ebaf3fd perf: skip loading classes for the initial data
re-init commands after pages has been loaded
2024-02-07 04:54:54 +08:00
Tienson Qin
6c6cc8ec34 Load classes for initial data since task commands require them 2024-02-07 04:47:57 +08:00
Gabriel Horner
b1bcc1b2dd fix: unit test, lint + script 2024-02-07 04:09:01 +08:00
Tienson Qin
7e8ab72494 Merge branch 'feat/db' into perf/lazy-load-data 2024-02-07 04:07:40 +08:00
Tienson Qin
140287e3ea perf: don't load properties and classes for initial data
This commit also fixed the issue that some pages such as "Status" will
be shown as lower cased.
2024-02-07 03:45:35 +08:00
Tienson Qin
1a040b01de feat: /scheduled and /deadline for db graphs 2024-02-05 23:54:46 +08:00
Tienson Qin
fa9d5fac1e Load whole data for shorter pages 2024-02-03 19:02:25 +08:00
Tienson Qin
873fdc6339 enhance: lazy load all pages 2024-02-03 12:42:45 +08:00
Tienson Qin
2bc2e9e8ca fix: indent on file graphs 2024-02-03 10:54:27 +08:00
Tienson Qin
8f845a7145 attach block left and parent for <pull & <get-block 2024-02-03 07:09:52 +08:00
Tienson Qin
2e1e3572df fix: add db requests for outliner core tx 2024-02-02 03:46:12 +08:00
Tienson Qin
620ad617f9 fix: load closed values 2024-02-01 17:18:23 +08:00
Tienson Qin
3dfe5c5751 fix: load all pages and files when app starts 2024-02-01 17:04:44 +08:00
Tienson Qin
c9f52e8a9b fix: ref not shows when starting the app 2024-02-01 04:29:32 +08:00
Tienson Qin
c1a15c0708 Merge branch 'feat/db' into perf/lazy-load-data 2024-02-01 03:58:04 +08:00
Tienson Qin
1b99388f54 fix: can't save file 2024-02-01 02:57:28 +08:00
Tienson Qin
420e361381 fix: async <get-file and <get-files 2024-01-30 21:17:18 +08:00
Tienson Qin
7b754c672f fix: page unlinked refs
Use search indice to search first and then filter the result by the
db worker. This avoids using `d/datoms` which loads all the blocks to
the memory.
2024-01-30 18:31:06 +08:00
Tienson Qin
1e6daf6563 fix: page/block refs and refs count 2024-01-30 17:10:38 +08:00
Gabriel Horner
28e637e855 chore: merge 2 new property fns together
refactor possible since page-name-sanity-lc in common-util
2024-01-29 09:55:34 -05:00
Tienson Qin
b5b85dd44d fix: lazy load whiteboards 2024-01-29 18:54:52 +08:00
Tienson Qin
eba0fe9545 Lazy load block container 2024-01-29 15:25:42 +08:00
Tienson Qin
752f88de19 Async get block and children 2024-01-29 14:48:41 +08:00
Tienson Qin
3addb5905b perf: load partial data when loading a graph
Instead of all the datoms
2024-01-29 13:17:37 +08:00
Gabriel Horner
9f4ffbe750 fix lint by refactoring large var 2024-01-24 15:52:24 -05:00
Gabriel Horner
22ed198c29 enhance: add icons to task status
also adds support for properties in initial-data to reference each other
via uuid
2024-01-24 15:39:46 -05:00
Tienson Qin
d1af653273 chore: ldb/transact! should takes repo instead of conn for UI 2024-01-24 17:35:09 +08:00
Gabriel Horner
77bc1d5d6b chore: update better-sqlite3 and mldoc in deps to match app 2024-01-23 11:36:32 -05:00
Gabriel Horner
0768809a86 fix: lints and disable intermittent failing test
- Reverted config/db-based-graph? check in a db only namespace
- Removed unused ns as it appears we just used another fn instead.
- /cc @RCmerci on failing test
2024-01-23 10:48:14 -05:00
Tienson Qin
575624c650 chore: revert inline tags 2024-01-23 21:45:54 +08:00
Tienson Qin
8204c93977 fix: outliner dep test 2024-01-22 12:21:42 +08:00
Tienson Qin
036f1b5ab7 feat: /todo/other-status and /urgent/other-priority to set property 2024-01-19 02:36:23 +08:00
Tienson Qin
8a846f6f81 feat: add task class and default properties status and priority 2024-01-18 23:16:08 +08:00
Gabriel Horner
095894b255 Revert most of "fix: new db graph couldn't be created"
Last commit removed built-in pages and was noticed on imports.
Previous bug of new db graphs leading to a blank screen no longer
occurred after I printed transact! transactions
2024-01-16 16:05:02 -05:00
Gabriel Horner
d232a8e08c fix: new db graph couldn't be created
Caused by duplicate transacting of default-pages. Also
removed reference to deleted ns
2024-01-16 11:37:25 -05:00
Gabriel Horner
34222b3436 chore: bump nbb-logseq that points to upstream nbb 2024-01-15 18:07:49 -05:00