Gabriel Horner
a5832cc3f2
fix: db-import of property-classes option fails on docs graph
...
Fixed by ensuring that tag names and namespace names don't conflict
when making class idents. The specific bug was a conflict between
Tool class and Whiteboard/Tool. Interestingly the bug didn't appear
if the Tool's description property wasn't present.
Also fixed some importer tests not parsing namespaces correctly
or taking :verbose option
2024-11-21 18:32:45 +08:00
Tienson Qin
3fd6806920
fix: tag instance with positioned property shouldn't be collapsable
2024-11-21 18:32:45 +08:00
Gabriel Horner
5541205674
enhance: default to importing all tags
...
Fixes LOG-3235. Still default to not importing all tags in tests and
scripts to simplify their workflows
2024-11-20 13:31:42 -05:00
Gabriel Horner
484648b986
fix: docs graph fails to import with both property*
...
options enabled
2024-11-20 10:39:21 -05:00
Tienson Qin
d9d04f0244
fix: position properties not shown with default values
2024-11-20 17:52:03 +08:00
Gabriel Horner
b5203fa4d3
fix: db-import of property-classes option fails on docs graph
...
Fixed by ensuring that tag names and namespace names don't conflict
when making class idents. The specific bug was a conflict between
Tool class and Whiteboard/Tool. Interestingly the bug didn't appear
if the Tool's description property wasn't present.
Also fixed some importer tests not parsing namespaces correctly
or taking :verbose option
2024-11-19 16:43:23 -05:00
Tienson Qin
5c5c96ea5a
fix: tag instance with positioned property shouldn't be collapsable
2024-11-19 18:24:52 +08: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
fb18cc5f52
fix: typo
2024-11-18 17:00:54 -05:00
Gabriel Horner
3469dfd65d
fix: db import of blocks with namespaced tags are only tagged
...
with child leaf tag. Fixes two tags issue reported in
https://github.com/logseq/db-test/issues/7#issuecomment-2463162620
2024-11-18 16:53:03 -05:00
Gabriel Horner
bb98ec1004
refactor: most class creation in db import is like any other page tx
...
and not embedded in :block/tags. Doing this allows for simpler import tx
and is necessary in order to post process :block/tags
2024-11-18 15:47:31 -05:00
Gabriel Horner
7c6ba2dbc2
fix: importer tests with individual files didn't have flag set
...
Resulted in some incorrect block extraction e.g. namespaces
2024-11-18 13:55:12 -05:00
Gabriel Horner
2569488493
fix: db import of namespaced tags across multiple pages
...
Fixes conflicting upserts seen in
https://github.com/logseq/db-test/issues/7#issuecomment-2480564898
2024-11-18 11:40:55 -05:00
Gabriel Horner
7e25dd2a5d
fix: db import of empty journal failing hard
...
Fixes `Vector's key for assoc must be a number.` error from
https://github.com/logseq/db-test/issues/7#issuecomment-2480564898 .
This lower level graph-parser had been returning the wrong data
structure for awhile
2024-11-18 09:46:39 -05: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
bb133c4eba
fix: test cleanup for 2c23731b5d
...
Remove assertion that is no longer valid and remove
property filtering for a test that is no longer needed
2024-11-15 16:04:10 -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
d4caacce3d
fix: tags and refs on same page should have same uuid
...
Fixes identity issue in 1st section of
https://github.com/logseq/db-test/issues/7#issuecomment-2463162620
2024-11-14 17:21:06 -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
b250e262d2
enhance: journal pages and blocks are created on their journal day
...
Fixes https://github.com/logseq/db-test/issues/77
2024-11-13 14:22:25 -05:00
Gabriel Horner
af55aa951a
enhance: allow child pages to have the same name
...
when they have different parents. Addressing 2nd section in
https://github.com/logseq/db-test/issues/7#issuecomment-2463162620
2024-11-12 16:29:45 -05:00
Gabriel Horner
f1624fb20c
fix: import namespaced tag correctly
...
Fixes db graphs being invalid and some of
https://github.com/logseq/db-test/issues/7#issuecomment-2463162620
2024-11-12 14:10:06 -05:00
Gabriel Horner
3154b849dd
enhance(dev): add latest import options to script
2024-11-12 10:56:05 -05:00
Gabriel Horner
1a7a2b25ed
chore: add a couple assertions for between queries
...
from #11565 . Also stop logging errors for valid between queries and
deleted unused test code
2024-11-11 16:32:35 -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
Gabriel Horner
eeb9d53ef0
fix(regression): publishing using removed rules
2024-11-08 10:48:13 -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