Tienson Qin
cc27407699
fix: store #tag as #[[uuid]] internally
2024-11-30 17:12:15 +08:00
Tienson Qin
faf7f48860
refactor: internal ref uses [[uuid]] instead of ~^[[uuid]]
2024-11-30 17:12:15 +08:00
rcmerci
a9642ed66d
perf: faster db validator
...
1. remove slow postwalk on big nested schema vector, use dynamic
var *db-for-validate-fn* instead
2. make static validator and explainer, instead of constructing them
every time
2024-11-29 18:37:03 +08:00
charlie
6654831a8b
fix(ui): hide collapsible arrow for the default annotation block
2024-11-28 13:55:39 +08:00
Tienson Qin
188af6f497
Merge branch 'feat/db' into feat/property-default-value
2024-11-26 15:34:33 +08:00
Gabriel Horner
96f0415da1
fix: couldn't undo a node display typed class
...
Fixes https://github.com/logseq/db-test/issues/175
2024-11-25 11:57:05 -05:00
Tienson Qin
471d413d80
Rename checkbox-default-value to scalar-default-value
2024-11-25 14:38:22 +08:00
Gabriel Horner
ce18010b2b
refactor: Decouple simple queries in db graph
...
from original *property rules by giving simple queries
their own rules. This allows simple queries to grow in functionality
and complexity without affecting other features. Also fixed
private-property rule wasn't working because deps weren't configured
2024-11-21 17:56:58 -05:00
Gabriel Horner
8864c3515f
enhance: add tests for default value querying
...
Had to extend sqlite.build with :build/properties-ref-types for
:logseq.property/default-value's internal ref type needs
2024-11-21 16:31:48 -05:00
Tienson Qin
a97fc07be4
fix: datalog lint rules
2024-11-19 18:08:17 +08:00
Tienson Qin
3f6704e42f
fix: db large vars lint
2024-11-19 18:08:17 +08:00
Tienson Qin
15e3ce9858
fix: graph parser tests
2024-11-19 18:08:17 +08:00
Tienson Qin
23c4bbcf05
enhance: hide default value pages
2024-11-19 18:08:17 +08:00
Tienson Qin
ab360c3d91
fix: db dep tests
2024-11-19 18:08:17 +08:00
Tienson Qin
d4a30cfbc1
Add more small rules
2024-11-19 18:08:17 +08:00
Tienson Qin
78c409b44c
Add full-deps test
2024-11-19 18:08:17 +08:00
Tienson Qin
a48fbd9e97
wip: default-value rule
2024-11-19 18:08:17 +08:00
Tienson Qin
b6d6a04148
feat: add :property-value db rule
2024-11-19 18:08:17 +08:00
Tienson Qin
8dc95098fc
fix: checkbox value update
2024-11-19 18:08:17 +08:00
Tienson Qin
82a476e214
Display property default value if there's no value specified
2024-11-19 18:08:17 +08:00
Tienson Qin
828615dc5e
Add default value for :checkbox type
2024-11-19 18:08:17 +08:00
Tienson Qin
efd2b4035c
fix: edge cases for :number type default values
2024-11-19 18:08:17 +08:00
Tienson Qin
8882926c63
wip: property default value
2024-11-19 18:08:17 +08:00
Tienson Qin
9acd633b6f
fix: built-in property's properties
2024-11-19 18:01:55 +08:00
Gabriel Horner
cfa923ab1a
fix: better fix for broken block refs in db graphs
...
Improve on 18eb5aaae5 . The underlying
issue wasn't the special-id-ref-pattern but rather that when a block ref
is selected, the ref wasn't inserted correctly. Thx to query-dsl tests
for failing and making me aware of this
2024-11-15 16:45:00 -05:00
Gabriel Horner
18eb5aaae5
fix: block refs not working in db graphs
...
also add test helper being copied across namespaces
2024-11-15 14:46:32 -05:00
Gabriel Horner
2c23731b5d
fix: property refs not deleted when block property deleted
...
Fixes https://github.com/logseq/db-test-cn/issues/36 . Also fixes private
db-property-attributes leaking into refs caused by #11565
2024-11-15 14:46:32 -05:00
Gabriel Horner
181766df11
fix(dev): nonunique idents failing docs graph with
...
:convert-all-tags? enabled
2024-11-14 17:13:26 -05:00
Gabriel Horner
1e128db972
refactor: also mv favorites page into initial create
...
and mark as built-in since it is
2024-11-14 12:00:14 -05:00
Gabriel Horner
cc126c009c
refactor: Mv creation of initial views blocks for db graph
...
to initial transact!. Db graph should have everything it needs with
initial transact. With views page in new db graphs, test was able to
catch a bug, views page wasn't marked as a built-in? when it is
2024-11-14 11:44:37 -05:00
Gabriel Horner
ed54bc24fd
fix: exporter test edge case with idents
2024-11-11 13:34:57 -05:00
Gabriel Horner
3a22c28493
fix(dev): schema.org debug edn was invalid and noisy
2024-11-11 12:36:24 -05:00
Gabriel Horner
28b7cf95b4
fix: remove unused class :block/schema validation
...
classes haven't had :block/schema for awhile
2024-11-11 11:59:20 -05:00
Gabriel Horner
af04834d1b
fix(regression): validation should validate tags and alias as properties
...
It's helpful to validate more about these heavily properties beyond them
just being integers. Follow up to #11565
2024-11-11 11:05:00 -05:00
Tienson Qin
502e3fd807
Merge branch 'feat/db' into refactor/dsl-query
2024-11-08 15:13:19 +08:00
Tienson Qin
ed74171564
fix: tests
2024-11-08 15:07:22 +08:00
Gabriel Horner
230e74fcd6
fix: tests and doc strings
2024-11-07 21:34:37 -05:00
Tienson Qin
141bf4c3ab
fix: can not change URL type property value
...
fixes https://github.com/logseq/db-test/issues/159
2024-11-08 09:23:22 +08:00
Gabriel Horner
a21b05e5ff
fix: all built-in props must start with 'block' or 'logseq'
...
Our idents should stay in their existing namespaces to leverage
clojure's namespaces for future functionality. Also capitalized
all built-in queryable property names to be consistent
2024-11-07 16:32:53 -05:00
Gabriel Horner
cc2d6df37b
fix: query builder can query private built-in properties
...
like before
2024-11-07 11:40:03 -05:00
Gabriel Horner
3755175bcb
fix(regression): property/has-property rules return
...
properties and not internal attributes like :block/title and
:block/created-at
2024-11-07 10:51:26 -05:00
Gabriel Horner
22ce2b8905
fix: disable more built-in attributes that shouldn't be
...
accessible to users as they are implementation details that could change
2024-11-06 18:04:16 -05:00
Tienson Qin
1519d035b5
fix: graph-parser tests
2024-11-06 11:43:15 +08:00
Tienson Qin
94773db6f3
refactor: replace hidden type with public false
2024-11-05 18:08:34 +08:00
Tienson Qin
3851367229
enhance: limit part of db attributes to be queryable
...
1. add title for all built-in properties
2. hide all built-in properties including public ones in the query builder
3. hide private built-in properties in mod+p
2024-11-05 17:48:56 +08:00
Tienson Qin
d8dd15f13c
fix: :logseq.property/order-list-type kept using existing values
...
It needs to be updated to closed values
2024-11-05 00:46:16 +08:00
Tienson Qin
a7b0e58c83
fix: tests
2024-11-05 00:46:16 +08:00
Tienson Qin
3b25d8f47f
enhance: store url property value in :block/title
...
So that url can be written using the block editor.
2024-11-05 00:46:15 +08:00
Tienson Qin
3f232ce6c7
fix: :logseq.property/order-list-type kept using existing values
...
It needs to be updated to closed values
2024-11-05 00:23:40 +08:00
Tienson Qin
d0c7160118
fix: tests
2024-11-05 00:18:35 +08:00