Commit Graph

23798 Commits

Author SHA1 Message Date
rcmerci
504f6fa3ce refactor(db-worker,wip): remove asset related <invoke-main-thread (2) 2026-04-04 10:04:54 +08:00
rcmerci
30671bf4e1 refactor(db-worker,wip): remove <invoke-main-thread (1) 2026-04-04 10:04:54 +08:00
Gabriel Horner
4b139bb6f2 fix(cli): upsert property can alter private attributes
of built-in properties e.g. `logseq upsert property --name=Alias --no-public`
and also --hide. These attributes aren't modifiable by users in the app
as they can result in visibility, editing and and searching bugs.
The app safeguards this by disabling built-ins for components
that call :upsert-property but the cli and api did not

Fixes
https://test.logseq.com/#/page/69cd9329-4602-42c1-a813-8491d5e7d7a0
2026-04-03 12:17:01 -04:00
rcmerci
300c7212c9 dev: add db-worker-node-repl skill 2026-04-03 10:05:49 +08:00
Gabriel Horner
94719a7376 enhance(cli): custom queries can optionally use
built-in rules by specifying '%' at end of :in
2026-04-02 18:00:49 -04:00
Gabriel Horner
53fb0da3d9 fix(cli): custom-query fails if name is a keyword
Bug caused by name binding masking core name fn.
Wouldn't have this bug if there weren't so many
:shadowed-var exclusions in clj-kondo/config.edn.
With --verbose, also show stack for exceptions. Leads
to faster fixing for us (and LLMs)
2026-04-02 16:45:53 -04:00
Gabriel Horner
bf3303b1d6 fix(cli): built-in queries should return more than
just integers. Also remove block-search since `logseq search` does this
better
2026-04-02 15:27:55 -04:00
Gabriel Horner
2ebf226deb fix(cli): query --inputs fails unexpectedly for incorrect
input. `--inputs=b1` was throwing 'No protocol method ICounted.-count defined'
instead of intended error message
2026-04-02 14:57:20 -04:00
Tienson Qin
319247beb3 fix: download graph should prefer ':thread-api/db-sync-download-graph-by-id' 2026-04-02 10:59:44 +08:00
rcmerci
50ac248893 fix lint 2026-04-01 23:43:52 +08:00
rcmerci
8e98d70ebb feat(cli): add 'debug pull' cmd 2026-04-01 23:39:10 +08:00
Gabriel Horner
859b505836 fix(cli): unable to view help for query command
There was no way to see available query options.  Now `query -h`
shows command options while `query` shows subcommands
2026-04-01 11:12:00 -04:00
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
b20acaf385 optional for prod api 2026-04-01 07:09:07 +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
7960f398ca server should never recompute checksum 2026-04-01 03:20:33 +08:00
Tienson Qin
6bf4b51ba1 code cleanup 2026-04-01 03:19:23 +08:00
Tienson Qin
8c170bda12 set store debounce time to 100ms 2026-04-01 03:12:00 +08:00
Tienson Qin
abfb5fcc96 increase cpu_ms to 5 mins for workers 2026-04-01 03:04:30 +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
Gabriel Horner
0925933620 Merge branch 'master' into feat/cliable 2026-03-31 14:37:24 -04:00
Gabriel Horner
ae90f8a14a fix: can't build db-worker-node
@vercel/ncc dep accidentally removed with latest merge to master
2026-03-31 13:10:37 -04:00
Gabriel Horner
d19069021f fix: lints and typos 2026-03-31 12:12:05 -04:00
Tienson Qin
4c9c1ded92 fix: lint 2026-03-31 23:54:18 +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
dd165f6794 fix: lint 2026-03-31 17:25:14 +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
8d30cd4a2d fix(cli): upsert property --type on a property
that has property values makes a graph invalid as property values then
have the wrong types for their property pair. This isn't possible in the
UI because the property type change checks for existing data but the
db-worker-node level does not. This :logseq.property/type update bug was
also possible from plugin/API calls
2026-03-30 17:58:56 -04: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
86d54ac1ca fix(cli): upsert property many to one fails
with cryptic "Invalid data" instead of helpful
"This property can't change from multiple values to one value because it
has existing data."
2026-03-30 12:00:01 -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
068c34355a fix: checksum drift after rebase/undo/redo ops 2026-03-30 18:51:44 +08:00
Tienson Qin
c360713063 add script to download a graph to debug 2026-03-30 18:36:18 +08:00
Tienson Qin
23f26bdeeb update api url 2026-03-30 17:28:55 +08:00
Tienson Qin
1cdceae7b7 Merge pull request #12466 from logseq/refactor/sync-undo-semantic-ops
refactor: use semantic ops for both sync and undo/redo
2026-03-30 17:26:58 +08:00
Tienson Qin
45dcf4f583 fix: lint 2026-03-30 17:13:09 +08:00