Gabriel Horner
ac8b3dbe68
enhance: introduce :build/keep-uuid? for export/import
...
to consistently keep uuids for all node types.
Allows page and block hacks to be removed. Marking blocks
this way was the right balance of efficient at preserving block relationships
while being easy to maintain
2025-02-07 18:20:13 -05:00
Gabriel Horner
2edbadf1b5
enhance: block export supports content refs
...
Also refactor block tests and how export-maps are built and
2025-02-07 16:26:11 -05:00
Gabriel Horner
11669f8f80
fix: block ref export+import not working in app
...
We override :block/title in app so have to hack around this attribute override
2025-02-07 14:14:17 -05:00
Gabriel Horner
8bc9b730f2
enhance: page export+import journal refs
2025-02-07 11:57:35 -05:00
Gabriel Horner
310164068b
chore: cleanup export tests
...
by creating test helpers. Also add 2nd import assertion on two more tests
now that's easy
2025-02-07 11:07:21 -05:00
Gabriel Horner
fcdfe518be
enhance: export+export refs to classes
2025-02-07 10:27:28 -05:00
Gabriel Horner
02beff3ec1
enhance: export+import page handles most ref types in blocks
...
All ref types handled except class ref. Also fixed most block types not
persisting uuid when :build-existing-tx? set
2025-02-06 18:29:30 -05:00
Gabriel Horner
b54d13b7d9
enhance: sqlite.build EDN supports uuid refs
...
Needed for export+import of refs
2025-02-06 11:56:14 -05:00
Gabriel Horner
5faffdc8f1
enhance: page export includes its properties and tags
2025-02-05 18:06:02 -05:00
Gabriel Horner
38aff834f5
fix: export+import of blocks with built-in property closed values
...
e.g. Status. Also tweak class-parent to not needlessly emit Root
which is the default
2025-02-05 15:22:44 -05:00
Gabriel Horner
ca011c980e
enhance: add command to export/import graph's ontology
2025-02-05 14:47:12 -05:00
Gabriel Horner
a746a4ded3
enhance: import/export :node properties with block
...
property values. Import works well for new graphs
2025-02-04 15:57:41 -05:00
Gabriel Horner
c925daa45d
enhance: export/import :node properties with classes
...
Also enhance :build/page refs so their tags export
2025-02-04 12:10:18 -05:00
Gabriel Horner
c4fee6bdeb
chore: remove deprecated [:page "FOO"]
...
refs from sqlite.build as they have been replaced with
an improved [:build/page ...]
2025-02-04 09:12:26 -05:00
Gabriel Horner
d06d582932
enhance: can import :date properties
...
for both existing or other graphs. Introduced an enhanced `[:build/page]` ref for
this
2025-02-03 18:16:33 -05:00
Gabriel Horner
fbf7107969
enhance: only build property export
...
once for a page
2025-02-03 14:08:38 -05:00
Gabriel Horner
469f77ea19
enhance: page export exports blocks at any level
2025-02-03 13:41:31 -05:00
Gabriel Horner
43c6633543
enhance: page import works for existing pages
...
or graph. Also add tests for fresh page import
2025-02-03 11:24:24 -05:00
Gabriel Horner
44cf521d3a
enhance: initial support for export+import of current page
...
Works across graphs for basic top-level blocks. Generalized import
command to work with block+page and other future exports
2025-01-31 20:09:17 -05:00
Gabriel Horner
a88c04fb8e
fix: build-existing-tx? didn't differentiate
...
between existing and new blocks correctly. Imports
into a block worked fine because it always existed but
imports into new blocks were failing
2025-01-31 16:31:01 -05:00
Gabriel Horner
02f893f66b
enhance: better error handling when importing data
...
Gracefully handle invalid EDN and property conflicts
2025-01-31 09:01:05 -05:00
Gabriel Horner
002edb103e
fix: sqlite.build auto-create new pages
...
from properties. Also fix user specified :pages-and-blocks not building
with :build-existing-tx?
2025-01-30 16:32:24 -05:00
Gabriel Horner
ddf4dc0646
enhance: export+import closed values across graphs
2025-01-30 13:53:44 -05:00
Gabriel Horner
bd4af68e43
enhance: can export+import classes across graphs
...
including their properties
2025-01-30 12:08:49 -05:00
Gabriel Horner
b8ad82e650
chore: add kondo aliases for db.sqlite namespaces
2025-01-29 18:03:28 -05:00
Gabriel Horner
574becd8bb
enhance: import a block with properties across graphs
...
Add test to confirm multiple imports are idempotent.
Also fix sqlite.build not handling valid value for :db/cardinality
2025-01-29 17:57:06 -05:00
Gabriel Horner
085872ea64
enhance: dev commands for exporting and importing
...
a block data. Works within same graph currently
2025-01-29 11:35:54 -05:00
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
05496a0f69
fix: deprecate old srs config options
2025-01-28 11:49:58 -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
Tienson Qin
3f9aa71f41
enhance: /scheduled and /deadline to create task
2025-01-26 09:42:25 +08: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
Gabriel Horner
c8c0e24d93
fix: don't add Task tag when status is used by another class
...
Users should be able to use status property independent of Task
2025-01-24 12:41:07 -05:00
Tienson Qin
423a4b088e
feat: views support multiple columns sort ( #11694 )
...
undefined
2025-01-24 10:29:37 -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
6c58af2605
enhance(dev): importing cli debug option prints all tx
...
related to a failing path. Helpfully provides more context
and also doesn't misleadingly print tx when it's not related to an
import failure with another path
2025-01-23 16:15:53 -05: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
fab1de6429
fix(regression): changing a property type
...
from ref to non-ref e.g. :default to :checkbox
created an unusable property type since :db/valueType
wasn't removed
2025-01-20 18:12:50 -05:00
Gabriel Horner
7b2d5ceebd
fix: changing property type or cardinality
...
doesn't update its timestamp. Changing a property's core behavior is
worthy of a timestamp update
2025-01-20 17:13:09 -05:00