Commit Graph

628 Commits (3d1ed4ca548aed4a6053a42c686a092651b3cbd4)

Author SHA1 Message Date
Gabriel Horner 85e358e57b fix: not able to create case sensitive classes
Also important to keep db graphs decoupled from file specific
:block/name. Made sure that related fix in logseq/db-test#9 still works
2024-08-20 17:08:14 -04:00
Gabriel Horner 3a4cc55cda fix: graph-parser test and lint
Removed test as no error handling is needed for ident generation. Also
removed all related downstream uses of catch for
db-ident/create-db-ident-from-name that are no longer needed
2024-08-19 15:40:28 -04:00
Gabriel Horner 658ea25a21 fix: two db importer bugs introduced last week
- Graphs with description page failed to import
- Graphs that had a page with a built-in class name mangled the block
  types. Reverted fix for logseq/db-test#17
- Also updated test for datom count as some parser changes were made
  last week to alter it
2024-08-19 12:45:12 -04:00
Tienson Qin 7778e0fa7e fix: unable to create page if tag exists
fixes https://github.com/logseq/db-test/issues/6
2024-08-16 17:32:57 +08:00
Tienson Qin 3aae90b7fb fix: can't create tag from existing page 2024-08-16 10:57:12 +08:00
Tienson Qin 8ce71bd413 fix: can't create a new date property
Fixes https://github.com/logseq/db-test/issues/17
2024-08-16 10:18:26 +08:00
Tienson Qin 8f3cdc9d94 fix: inline tag are not created if it doesn't exist in db 2024-08-15 20:59:54 +08:00
Tienson Qin e3dd075a55 enhance: Tag support inline display 2024-08-15 19:02:49 +08:00
charlie 837a32f03d fix(pdf): incorrect highlight value 2024-08-15 18:27:06 +08:00
Gabriel Horner a2df9564c6 refactor: list file-graph properties that are supported
by export rather than listing db-graph properties which would
change a lot. This is a follow up to fixing built-in property conflicts
as part of LOG-3039
2024-08-08 15:16:21 -04:00
Gabriel Horner 4a69e75e88 fix: import doesn't fail if it has a page with new class name
fixes LOG-3039
2024-08-08 15:16:21 -04:00
Gabriel Horner 48df03a1fa fix: finish removing arweave
Follow up to a6e0b0a092
2024-08-08 09:24:02 -04:00
Gabriel Horner 3d8e579e67 refactor: decouple block extraction for db graphs and exporting
Coupling db graph app to export needs could lead to bugs and is harder
to maintain. Also fix a test assertion
2024-08-07 18:12:31 -04:00
Gabriel Horner dcb73b1003 fix: db import of advanced queries
Fixes LOG-3082
2024-08-07 16:30:20 -04:00
Gabriel Horner 66439dde68 fix: db import of markdown tables and multiline blocks
Fixes LOG-3072 and fixes LOG-3070
2024-08-07 12:33:13 -04:00
Gabriel Horner f811ab242c fix: test count changed by #11458 2024-08-06 15:53:07 -04:00
Gabriel Horner 4b4fa45ae2 fix: db import broken by type changes in #11458 and other import bugs
New data model of allowing a single :block/type failed a lot of import tx
because properties and class types could be overwritten by a single page ref.
Also this fixes page-properties-tx which wasn't just transacting the
page properties. Also fixes importing pages like 'Tags' which were
incorrectly getting associated to built-in properties with the same name
2024-08-06 15:35:21 -04:00
Tienson Qin 72552d6224 fix: avoid :block/refs self cycle 2024-08-06 15:21:13 +08:00
Tienson Qin 9c60742519 Merge branch 'feat/db' into refactor/single-block-type 2024-08-06 07:24:29 +08:00
Tienson Qin f46372b346 chore: keep using class instead of tag for internal usage 2024-08-06 07:15:41 +08:00
Gabriel Horner e9d1ec1cef fix: db import of properties that conflict with new built-in property names
Fixes LOG-3039. This was noticed because new description built-in
conflicted with file graphs that had the same name. This fixes the issue
for :description but also any of the other new db built-in property
names
2024-08-05 15:13:10 -04:00
Tienson Qin 411b05e7ba Prefer to use ldb/{type}? check when possible 2024-08-05 17:51:24 +08:00
Tienson Qin 8f4bd7d713
refactor: updates :checkbox type to store Boolean values instead of ref values (#11451)
* refactor: don't store :checkbox as ref type

* fix: :property dsl query

* fix: task rule uses :property-ref-type

* enhance: dynamic query in :property rule depends on db/valueType

* enhance: use identity to avoid multiple vals binding error

* fix: replace outdated :page type with :node type

* fix: query-dsl tests

* fix: more outdated :page type

* fix: db test

* fix: db rules tests

* fix: move [?p ?prop ?pv] to the front

* fix: outliner tests

* fix: graph-parser tests

* Migrate checkbox ref type to non-ref type
2024-08-05 15:10:12 +08:00
Tienson Qin 4083a2d0a0 enhance: prefer tag instead of class on UI
Some users are confused with Classes/Objects, so on UI it'll be
Tags/Nodes.
2024-08-05 15:06:54 +08:00
Tienson Qin 8bef1d7742 Merge branch 'refactor/boolean-not-ref-type' into refactor/single-block-type 2024-08-03 15:37:17 +08:00
Tienson Qin 4cb9cb63a6 Merge branch 'feat/db' into refactor/single-block-type 2024-08-03 15:34:40 +08:00
Tienson Qin cb7b15402b fix: shouldn't hide markers/priorities for db graphs
Fixes LOG-3090
2024-08-03 15:21:41 +08:00
Tienson Qin 390b44985c chore: bump mldoc to 1.5.9 2024-08-03 15:19:51 +08:00
Tienson Qin b2f1f79b3d fix: graph-parser tests 2024-08-03 04:11:38 +08:00
Tienson Qin 09ad9d6d97 fix: outliner tests 2024-08-03 00:51:08 +08:00
Gabriel Horner 636e395d96 fix gp tests from #11433 2024-08-01 11:51:27 -04:00
Tienson Qin d26e620a82 refactor: update :block/type to cardinality one instead of many 2024-07-31 19:35:26 +08:00
Gabriel Horner 3767f1d3c7 chore: rename task class ident
Only class ident name that wasn't capitalized and didn't match its
title. Considered renaming :logseq.task but unsure if it even makes
sense for their names to match since they aren't sharing a common ns.
:logseq.task may be better off under :logseq.property.*
2024-07-30 17:09:27 -04:00
Gabriel Horner 354ffabf88 fix: outdated comments related to changes in #11433 2024-07-30 15:26:54 -04:00
Gabriel Horner 8afb337d7b chore: remove outdated test
rRemoving this test as the differences between a file and db graph are
enough that it's not worth testing. This test was helpful when we were
first developing db version
2024-07-30 15:13:24 -04:00
Gabriel Horner 6093462555 fix: db import after changes from #11433 2024-07-30 14:47:35 -04:00
Tienson Qin 3bc1a673cb refactor: replace both :page and :object types with :node 2024-07-30 17:25:46 +08:00
Tienson Qin edf179b1f5 fix: can't edit referenced block 2024-07-30 10:53:58 +08:00
Tienson Qin b3a786db02 Merge branch 'feat/db' into refactor/narrow-gap-between-page-and-block 2024-07-29 13:36:00 +08:00
Gabriel Horner d3f9defb6d chore: bump nbb to latest datascript 2024-07-26 21:27:10 -04:00
Gabriel Horner 9af2ff84ec fix: graph-parser clj tests missing new dep 2024-07-26 15:45:47 -04:00
Gabriel Horner c41b1bce3a fix: db import having incorrect block/path-refs
Some block/path-refs were invalid because importer was manually setting
this instead of relying on listeners. Confirmed relying on listeners
works in the frontend and CLI. Part of LOG-3176
2024-07-26 15:35:42 -04:00
Gabriel Horner 4c0c87337b fix: db import of whiteboard block with properties
Part of LOG-3176
2024-07-25 15:58:19 -04:00
Gabriel Horner dd73e4c21e fix: a couple class uuids not generated by their db/ident
Follow up to 04e7d2c17b
2024-07-25 10:33:56 -04:00
Tienson Qin eaf35e4a27 Merge branch 'feat/db' into refactor/narrow-gap-between-page-and-block 2024-07-25 16:07:54 +08:00
rcmerci 04e7d2c17b enhance: generate db-ident block's uuid like:
00000002-<hash-of-db-ident>-<fill-with-0>
2024-07-25 11:18:29 +08:00
Tienson Qin 71765f88e2 fix: names 2024-07-25 10:12:37 +08:00
Tienson Qin 7274a0bb40 Merge branch 'feat/db' into refactor/narrow-gap-between-page-and-block 2024-07-25 09:57:37 +08:00
Gabriel Horner 4b365da70c fix: display more helpful notifications for invalid
properties and classes that can't build a db-ident. Part of LOG-3176
2024-07-24 16:35:05 -04:00
Gabriel Horner 3411f344e3 fix: db import with property-parent-classes option
Also fixes some bugs with docs graph having classes split into more than
one db/ident. Part of LOG-3176
2024-07-24 14:55:06 -04:00