Commit Graph

17265 Commits

Author SHA1 Message Date
Gabriel Horner
f9edbb0874 fix(cli): --update-{tags|properties} can't distinguish
between tags/properties with same name. Same bug as
0809a53e79
2026-04-01 09:51:16 -04:00
rcmerci
0e834140c0 enhance(cli): unify option --page/--name 2026-04-01 16:45:13 +08:00
Tienson Qin
0a73edf870 fix: (wip) sync upload 2026-04-01 06:52:27 +08:00
Tienson Qin
9fa32ba886 fix: cli e2e 2026-04-01 05:35:05 +08:00
Tienson Qin
609c475144 merge: resolve cliable db-sync worker conflicts 2026-04-01 05:17:00 +08:00
Tienson Qin
3a04a0e582 refactor(db-sync): move import/download workflow into sync.download 2026-04-01 04:42:32 +08:00
Tienson Qin
cadb82c81d fix: tests 2026-04-01 03:43:10 +08:00
Gabriel Horner
0809a53e79 fix(cli): upsert tag/property can't find tag/property
when there is a property and tag with the same name e.g. `logseq upsert
tag --name=Asset` gave incorrect tag-name-conflict error. The query fns
for property and tag incorrectly assumed that :block/name is unique and
didn't account for the app which does allow for properties, tags and
pages to all have the same name. This fix also allows properties and
tags to be created if there is a page with the same name
2026-03-31 15:34:43 -04:00
Tienson Qin
8c170bda12 set store debounce time to 100ms 2026-04-01 03:12:00 +08:00
Tienson Qin
b3e400c2ae enhance(db-sync): move graph download to worker and stream kv snapshots 2026-04-01 03:04:23 +08:00
Tienson Qin
ffc67c92ec Merge branch 'feat/cliable' of github.com:logseq/logseq into feat/cliable 2026-03-31 23:37:41 +08:00
Tienson Qin
2f3b53a28a Merge branch 'master' into feat/cliable 2026-03-31 23:36:48 +08:00
rcmerci
ec4e31fa4b enhance(cli): update --profile output 2026-03-31 21:41:12 +08:00
rcmerci
57aabd1e56 fix lint 2026-03-31 19:30:55 +08:00
Tienson Qin
39ea6207bd fix: debounced store shouldn't be used for batch-transact! 2026-03-31 17:19:01 +08:00
rcmerci
4cedd99255 feat(cli): add 'graph backup' subcmd 2026-03-31 16:08:09 +08:00
Gabriel Horner
05fdb7d2ad enhance(cli): completion for properties and tags 2026-03-30 14:22:07 -04:00
Gabriel Horner
e086d337b5 fix(cli): upsert property --type fails for json and string
These property types were failing with 'Invalid data' since they weren't
exposed for user properties
2026-03-30 12:45:44 -04:00
Gabriel Horner
ce7042842d fix(cli): create property doesn't validate property title
App doesn't have this issue as property creation ends up going through
update branch. Also improve error message for incorrect tagged nodes.
"does not reference" is too ambiguous and doesn't mention that there's
something wrong with the tags relationship
2026-03-30 10:24:31 -04:00
Tienson Qin
2fe0de2271 add more undo/redo tests 2026-03-30 21:55:15 +08:00
rcmerci
0d03c428d8 enhance(cli): update skill md 2026-03-30 20:17:51 +08:00
Tienson Qin
988ec142c1 fix: wrong property icon 2026-03-30 18:59:53 +08:00
Tienson Qin
23f26bdeeb update api url 2026-03-30 17:28:55 +08:00
Tienson Qin
0e3a3aabf7 add command to debug graph checksum 2026-03-30 17:05:11 +08:00
Tienson Qin
28a3f4fad3 Merge branch 'master' into refactor/sync-undo-semantic-ops 2026-03-30 16:14:52 +08:00
Tienson Qin
5435e211d2 fix: tests 2026-03-30 15:07:55 +08:00
Tienson Qin
f81af96fc2 fix: inline tag rebase 2026-03-30 14:27:11 +08:00
Tienson Qin
c873ce8ac5 fix: sync tests 2026-03-30 11:59:11 +08:00
rcmerci
c1a9b3888c enhance(cli): add more examples in example cmd 2026-03-29 22:54:53 +08:00
rcmerci
0a39d9038e enhance(cli): update search cmd hint 2026-03-29 21:20:43 +08:00
rcmerci
1afc0e558c enhance(cli): search cmd use --content option 2026-03-29 20:53:57 +08:00
Tienson Qin
28c8a00c94 perf: get-right-sibling and get-left-sibling uses d/datoms 2026-03-29 17:35:19 +08:00
Tienson Qin
502103855b perf: avoid temp batch transaction for save/delete/insert block 2026-03-29 11:59:53 +08:00
rcmerci
7da9a60d6e fix(cli): shouldn't include '#' in page-name(2) 2026-03-28 21:29:50 +08:00
rcmerci
7b704741e0 fix(cli): shouldn't include '#' in page-name 2026-03-28 18:10:23 +08:00
Gabriel Horner
ccea0ace90 fix(cli): create page fails with 'page-not-found'
Some page names are modified during creation for internal reasons e.g.
'upsert page --page=foo#bar' results in the page 'fooHashTag-bar'. Use
uuid from create-page operation for more reliable
identification of created pages

Also finish fix for 29a7a77a6b
2026-03-27 14:45:29 -04:00
rcmerci
23daff7dbd enhance(cli): add example subcmd 2026-03-27 23:17:02 +08:00
rcmerci
88d5873176 fix(cli): propagate server error codes and handle invalid query as 400 2026-03-27 20:54:14 +08:00
Tienson Qin
b00a73ff79 add batch-transact! to handle rebase 2026-03-27 16:45:53 +08:00
Tienson Qin
e85addc933 refactor: rename batch-transact! 2026-03-27 16:15:42 +08:00
Tienson Qin
6704aad37b fix: shouldn't use tx-data during batch transaction for client ops 2026-03-27 11:38:08 +08:00
Tienson Qin
f382bd7025 fix: can't set date value on UI 2026-03-27 09:24:37 +08:00
Gabriel Horner
29a7a77a6b fix: upsert page property options can't handle user properties
Fails with 'unknown built-in' error instead of just handling it.
Also fix an incorrect test teardown from previous commit
2026-03-26 17:33:19 -04:00
Gabriel Horner
8732d947fb fix: cleanly print unexpected errors for option handling
from commands/build-action. For example, if --blocks-file has a
nonexistent file or if --blocks or --blocks-file are invalid EDN we
would print full stacktraces which is confusing for user-facing errors.
Update error handling so that it matches
how other unexpected option failures are handled e.g. `logseq graph
import -t edn -g cli-test2 --input=blah`
2026-03-26 11:08:20 -04:00
Gabriel Horner
301ea87943 fix: read file cli options don't recognize '~'
These paths autocomplete fine and should be usable
2026-03-26 10:33:10 -04:00
rcmerci
59d0e5777b enhance(cli): add search subcmd 2026-03-26 21:57:25 +08:00
Charlie
cdab06f984 enhance(ux): set icon within the block context menu (#12458) 2026-03-26 20:41:34 +08:00
rcmerci
a16f0012e9 enhance(cli): add --profile global option 2026-03-26 19:31:17 +08:00
Tienson Qin
558f7d02db fix: concurrent sibling inserts order 2026-03-26 17:10:46 +08:00
Tienson Qin
48aed8ca88 batch rebase 2026-03-26 16:17:21 +08:00