Commit Graph

1026 Commits

Author SHA1 Message Date
rcmerci
f33fac9563 feat(rtc): inject users info into graphs 2024-12-19 20:33:23 +08:00
rcmerci
c75aad8bff enhance: add properties logseq.user/<xxx> 2024-12-19 15:09:02 +08:00
Tienson Qin
4cb793e1e8 fix: can't link a block via ID & a page in the same block
fixes https://github.com/logseq/db-test/issues/178
2024-12-15 20:50:56 +08:00
rcmerci
9ff47dc1ed fix: config.edn content must be a string 2024-12-10 21:43:13 +08:00
Gabriel Horner
bcdd162145 fix: queries with default values
and objects that are descendants of a tag with
a default-value property. Fixes
https://test.logseq.com/#/page/67551ea7-bd58-48bb-a0ea-8b976fa94423.
Also extended sqlite.build to allow closed value properties to
be configured with :build/properties
2024-12-09 12:11:06 -05:00
Gabriel Horner
b89a4925d8 fix: Task descendant object added Task tag
when Status added. Fixes
https://test.logseq.com/#/page/675326b3-7e92-4cf0-b9d3-cc367049b920.
Also fixes class-instance? not working for parent classes
2024-12-06 14:41:21 -05:00
rcmerci
b0379811c0 fix: fix validate db test (2) 2024-12-02 13:59:06 +08:00
rcmerci
d2c877b484 fix: fix validate db test 2024-12-02 13:51:27 +08:00
Tienson Qin
31ffe5ae8d fix: migration 2024-11-30 17:12:15 +08:00
Tienson Qin
af31d3d846 fix: tests 2024-11-30 17:12:15 +08:00
Tienson Qin
aaf739ddbe fix: replace id ref with name for search indice 2024-11-30 17:12:15 +08:00
Tienson Qin
0c0b4dc0c3 fix: nested page ref 2024-11-30 17:12:15 +08:00
Tienson Qin
27006e414b add migration 2024-11-30 17:12:15 +08:00
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