Commit Graph

1926 Commits

Author SHA1 Message Date
Gabriel Horner
fd99c0a5af chore: use test helper instead of copied
d/q fns
2025-01-28 16:10:24 -05:00
Gabriel Horner
8550b48f17 enhance(dev): add test helper for ent properties
Was using them across namespaces and they were needlessly different
2025-01-28 16:00:38 -05:00
Gabriel Horner
5983bd0473 enhance: update sqlite.build EDN to generate tx
for existing blocks and pages e.g. importing
2025-01-28 15:34:26 -05:00
Gabriel Horner
dbd1faea12 fix: lint 2025-01-27 17:22:12 -05:00
Gabriel Horner
ef93609df0 enhance(dev): build EDN supports logseq idents for :build/tags
Also cleanup more more tests that have been simplified by recent test
helper improvement
2025-01-27 17:03:26 -05:00
Gabriel Horner
63184bc3cc fix: lint and test broken by previous commit 2025-01-27 16:28:51 -05:00
Gabriel Horner
57b4376425 enhance(dev): test helper returns entity
instead of harder to inspect and use d/q results
2025-01-27 15:48:12 -05:00
Gabriel Horner
9b223be0a8 enhance(dev): add util for logseq class idents 2025-01-27 14:28:44 -05:00
Gabriel Horner
2cfc3f0cfa fix: sqlite.build should use :block/updated-at if passed in a block or page 2025-01-27 10:29:12 -05:00
Gabriel Horner
a9d8591112 fix: task simple query doesn't recognize default value
Also wouldn't work for priority simple query. Fixes
https://github.com/logseq/db-test/issues/207
2025-01-24 15:32:45 -05:00
Tienson Qin
926d05c185 feat: table columns pinning (#11693)
* Add property :logseq.property.table/pinned-columns

* feat: table column pinning

* enhance: hide :id column by default

---------

Co-authored-by: charlie <xyhp915@qq.com>
2025-01-24 11:17:09 +08:00
Gabriel Horner
88d74cb71f fix: importing namespaced tags with spaces
Fixes https://github.com/logseq/db-test/issues/210. Also fix invalid
EDN class db-ident related to this
2025-01-23 14:21:26 -05:00
Gabriel Horner
455ccec296 chore: rename sqlite.build edn to remove mention
of schema. schema concept no longer exists and these old
names would be confusing
2025-01-21 14:22:16 -05:00
Gabriel Horner
5cdc35b962 chore: mv 2 helper fns that are only used in one ns
to their respective ns
2025-01-21 13:55:58 -05:00
Gabriel Horner
9ca0ca1523 chore: cleanup schema mapping spread across the app
Now that schema is no longer a persisted concept there is no need
to spread built-in-properties keyword mappings across the app.
Doing so makes built-in-properties more rigid as it would be
needlessly coupled to the frontend, exporter and migrations.
With this cleanup it'll be easy to deprecate :schema from
built-in-properties when we need to
2025-01-21 12:57:51 -05:00
Gabriel Horner
878f0f869b fix: logseq.property/value isn't a schema property
Was mistakenly put in because it started with 'property' previously.
Also cleaned up get-property-schema since it overlaps with
schema-properties and removed an unnecessary use of get-property-schema
2025-01-21 09:53:34 -05:00
Gabriel Horner
53ed226d53 fix: bootstrapping of properties
Some bootstrapped properties weren't in indexes. Didn't need
all schema properties to be bootstrapped, just the first 2.
Also fixed built-in? having the wrong title
2025-01-18 00:50:08 -05:00
Gabriel Horner
0181a332ab Merge branch 'feat/db' into refactor/block-schema 2025-01-17 15:50:50 -05:00
Gabriel Horner
3a62177082 chore: rename public property to publishing-public?
Since #11673 will provide a lower level public? property,
made sense to rename to avoid confusion between public and public?.
Also start deprecating :name config in built-in-properties as it
is barely used and is somewhat confusing
2025-01-17 15:29:20 -05:00
Tienson Qin
7cda45eea9 fix: migration 2025-01-17 17:42:56 +08:00
Gabriel Horner
5c52cac2d4 fix: init properties after merge 2025-01-16 17:12:29 -05:00
Gabriel Horner
68896c257f Merge branch 'feat/db' into refactor/block-schema 2025-01-16 17:11:53 -05:00
Gabriel Horner
961f6ec241 fix: tests and incorrect schema property detection after rename 2025-01-16 16:41:55 -05:00
Gabriel Horner
769e68a3c6 enhance(dev): add :dispatch-key to validate-db! errors
so it's available to tests and to app
2025-01-15 18:04:47 -05:00
Gabriel Horner
a2609f4d9d enhance: Allow built-in properties to use most properties
without hardcoded configuration. For example
:logseq.property/description can be added to any built-in property that is below
it in built-in-properties. Added descriptions to scheduled and deadline
since it's not obvious from their ux how they differ
2025-01-15 16:24:46 -05:00
Tienson Qin
50bf71a673 fix: tests 2025-01-16 01:33:43 +08:00
Tienson Qin
c26b3507b0 chore: remove bak 2025-01-16 01:21:23 +08:00
Tienson Qin
20fad17f5d Merge branch 'feat/db' into refactor/block-schema 2025-01-16 01:01:06 +08:00
Tienson Qin
c1ae8f6793 fix: duplicated key 2025-01-16 00:55:53 +08:00
Tienson Qin
bd96226443 fix: lint 2025-01-15 19:51:28 +08:00
Tienson Qin
1d9fbc8a3d perf: reduce :block/properties calls on db graphs
`:block.temp/property-keys` was added to get all the properties
for given entity.
2025-01-15 19:35:09 +08:00
Tienson Qin
a7e9d073cd chore: rename :property/* to :logseq.property/* 2025-01-15 14:59:08 +08:00
Tienson Qin
f28c698909 fix: tests 2025-01-14 16:03:35 +08:00
Tienson Qin
d7590fddc7 fix: schema validation for hidden pages 2025-01-14 15:34:05 +08:00
Tienson Qin
868f066e07 enhance: use :property/hide? for hidden pages instead of public? 2025-01-14 15:30:05 +08:00
Tienson Qin
2e12918d5c Merge branch 'feat/db' into refactor/block-schema 2025-01-14 14:17:24 +08:00
Tienson Qin
9d7e164932 add migration 2025-01-14 14:16:54 +08:00
Gabriel Horner
c87da72b95 enhance: allow a tag to be converted back to a page
People do sometimes accidentally tag a page like in
https://github.com/logseq/db-test/issues/201 and should have a way to
undo it
2025-01-13 17:43:21 -05:00
Tienson Qin
2c04eb76d7 fix: db tests 2025-01-13 16:20:45 +08:00
Tienson Qin
509456f67c fix: query dsl 2025-01-13 11:32:59 +08:00
Tienson Qin
369ef99392 fix: outliner tests 2025-01-13 11:05:44 +08:00
Tienson Qin
b9b38ceace fix: db graph test 2025-01-13 10:23:59 +08:00
Tienson Qin
1535816625 Rename position to ui-position 2025-01-13 10:06:48 +08:00
Tienson Qin
93a7034249 Remove more cases of :block/schema 2025-01-13 10:00:00 +08:00
Tienson Qin
639ca09f2e Remove more usage of :block/schema 2025-01-12 17:15:14 +08:00
Tienson Qin
e318e0d6c1 Merge branch 'feat/db' into refactor/block-schema 2025-01-12 16:48:19 +08:00
rcmerci
f485eeef3d enhance: add prop :logseq.property/created-by 2025-01-12 16:12:08 +08:00
Gabriel Horner
0cffd64d44 fix: importer failing hard on page ref when
page name has same name as a task. Importer failed because of invalid
refs coming from gp-block/with-page-refs-and-tags which were caused
by get-first-page-by-title returning blocks. In 4f368d5c79,
get-first-page-by-title started returning blocks instead of only pages
so this was undone.  Fixes part of logseq/db-test#191
2025-01-10 16:41:25 -05:00
Gabriel Horner
25d1243edd chore: update docstrings in kv-entity
Also update other :import-type to be keywords like other values
2025-01-10 12:41:54 -05:00
Gabriel Horner
18f2bd65c5 fix: validator incorrectly identifying hidden blocks
A page block that a user writes that starts with '$$$' isn't a hidden
block
2025-01-10 10:08:06 -05:00