Commit Graph

801 Commits (b050d478f6f191bd4a1851d60cb55c13804db264)

Author SHA1 Message Date
rcmerci d132f41cab enhance: validate :block/type change 2024-08-08 17:11:44 +08:00
Tienson Qin a6004f416d fix: ensure all pages list pages only 2024-08-08 16:07:18 +08:00
Tienson Qin 9b8a8e7da5 enhance: implement ISeqable and IPrintwithwriter for EntityPlus 2024-08-08 13:43:18 +08:00
Tienson Qin 75463c4df4 fix: don't depend frontend.(db|state) in worker ns 2024-08-08 10:34:03 +08:00
Gabriel Horner f74e5fbad7 fix: remove unused built-in property
Stop being used in #11311
2024-08-06 15:56:50 -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 c1c6197b9b fix: pages of different types can use the same name 2024-08-06 13:08:35 +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
Tienson Qin beb3472fec Disable lint rules for db :property and :page-property 2024-08-05 17:12:24 -04:00
Gabriel Horner 512dd6b543 chore: update linters to use latest deps 2024-08-05 16:29:28 -04:00
Gabriel Horner 94b67d95f2 fix: db import from UI having some intermittent invalid blocks
Some imported blocks in UI have :block.temp/fully-loaded? but db on disk
doesn't.  Unsure what recent change caused this. Also improve console
import errors
2024-08-05 15:26:31 -04:00
Tienson Qin 5d2cd70142 Support db migration for :block/type update 2024-08-05 21:23:16 +08:00
Tienson Qin 411b05e7ba Prefer to use ldb/{type}? check when possible 2024-08-05 17:51:24 +08:00
Tienson Qin 0a9320c234 Disable lint rules for db :property and :page-property 2024-08-05 17:06:47 +08:00
Tienson Qin 4d7e3d33c8 Merge branch 'feat/db' into refactor/single-block-type 2024-08-05 15:19:32 +08:00
Tienson Qin 69912f3dce fix: lint 2024-08-05 15:19:04 +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 a85fcdb842 Merge branch 'feat/db' into refactor/boolean-not-ref-type 2024-08-03 15:10:53 +08:00
Gabriel Horner eb63add1f0 enhance: provide a built-in description property
that is used by properties and closed values and can easily be used by
other blocks. Also removes :block/schema for closed values and schema
:description for properties which helps get away from data modeling debt
of :block/schema
2024-08-03 00:13:13 -04:00
Tienson Qin 8155d06d22 fix: properties on a property page don't load correctly
Fixes LOG-3202
2024-08-03 07:09:16 +08:00
Tienson Qin ea0a26e744 Merge branch 'feat/db' into refactor/boolean-not-ref-type 2024-08-03 04:48:54 +08:00
Tienson Qin 5869681598 Migrate checkbox ref type to non-ref type 2024-08-03 04:45:02 +08:00
Tienson Qin 09ad9d6d97 fix: outliner tests 2024-08-03 00:51:08 +08:00
Tienson Qin fb681d3b12 fix: move [?p ?prop ?pv] to the front 2024-08-03 00:05:31 +08:00
Tienson Qin 870ff095aa fix: db rules tests 2024-08-02 23:54:39 +08:00
Tienson Qin 3a9fc0628e fix: db test 2024-08-02 23:22:32 +08:00
Tienson Qin 04e32b33d2 fix: more outdated :page type 2024-08-02 22:37:08 +08:00
Tienson Qin 227437f852 fix: replace outdated :page type with :node type 2024-08-02 10:36:07 -04:00
Gabriel Horner 0769583183 fix: more missed renames of :page to :node type
from #11433
2024-08-02 10:34:35 -04:00
Tienson Qin 55f211be16 fix: query-dsl tests 2024-08-02 22:34:04 +08:00
Tienson Qin 914a21c47e fix: replace outdated :page type with :node type 2024-08-02 22:14:37 +08:00
Tienson Qin d1ef3fbeec enhance: use identity to avoid multiple vals binding error 2024-08-02 21:44:20 +08:00
Tienson Qin 36e3366a74 enhance: dynamic query in :property rule depends on db/valueType 2024-08-02 21:35:06 +08:00
Tienson Qin bb365b0171 fix: task rule uses :property-ref-type 2024-08-02 20:54:10 +08:00
Tienson Qin e743091909 fix: :property dsl query 2024-08-02 19:42:43 +08:00
Gabriel Horner 2d50f565ea chore: mv table property idents to their own ns
table feature will grow with time and could benefit from its own ns
2024-08-01 17:12:00 -04:00
Tienson Qin 8c81895ff7 refactor: don't store :checkbox as ref type 2024-08-01 13:06:47 +08:00
charlie 685df8c87f fix: typo 2024-08-01 12:01:01 +08:00
Tienson Qin 76f7baedd3 fix: remove repeated clause 2024-08-01 11:43:48 +08:00
Gabriel Horner 2e13c9758b enhance: add a table for property pages
that display all nodes for the current property.
Property pages now behave like classes and display a table instead of blocks.
Also update linter to include objects ns
2024-07-31 15:25:03 -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 46c5110701 fix: document and validate a db only config.edn option
Also fix another outdated comment
2024-07-30 17:20:12 -04: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
Tienson Qin 3bc1a673cb refactor: replace both :page and :object types with :node 2024-07-30 17:25:46 +08:00
Tienson Qin 08ed6a131d refactor: show linked refs and unlinked refs for blocks too 2024-07-30 12:53:48 +08:00