CLI: a text property value set with `--update-properties` keeps `[[Page]]` as typed and gets no ref to the page
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 68/100
Línea de trabajo
Start with create-property-text-block! in deps/outliner/src/logseq/outliner/property.cljs and compare its text property path with the CLI block content path through :logseq.outliner/save-block-input and :logseq.outliner/insert-blocks-input in deps/outliner/src/logseq/outliner/input.cljs. Reproduce with upsert block --update-properties and inspect the value block's title and :block/refs. Done means [[Page]] is stored as a resolved page reference with the matching ref, including when the property is set during block creation.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Search first
- I searched and no similar issues were found
What Happened?
Setting a :default (text) property with upsert block --update-properties '{:<property> "with [[Page]]"}' stores the value block's title exactly as given. The link stays [[Page]] instead of becoming [[<uuid>]], and the value block gets no :block/refs, so the block does not show up in that page's linked references. The same happens when the property is set in the same call that creates the block.
Saving the value block's content once more (upsert block --id <value block> --content '<same text>') resolves the link and adds the ref, which is my workaround.
Values entered in the desktop app do not have this problem: in my graph, every text property value with a link that was typed in the app has it stored as [[<uuid>]], with the ref.
Reproduce the Bug
G=demo # any DB graph
id() { jq '.data.result[0]'; }
logseq upsert page --graph $G --page link-target >/dev/null
logseq upsert page --graph $G --page link-repro >/dev/null
logseq upsert property --graph $G --name link-text --type default >/dev/null
P=$(logseq list property --graph $G | grep -o 'user.property/link-text-[^ ]*')
B=$(logseq upsert block --graph $G --target-page link-repro --content holder --output json | id)
logseq upsert block --graph $G --id $B --update-properties "{:$P \"with [[link-target]]\"}" >/dev/null
V=$(logseq query --graph $G --query "[:find ?v . :in \$ ?b :where [?b :$P ?v]]" --inputs "[$B]")
value() { logseq query --graph $G --query '[:find (pull ?v [:block/title {:block/refs [:block/title]}]) :in $ ?v]' --inputs "[$V]"; }
value
logseq upsert block --graph $G --id $V --content "with [[link-target]]" >/dev/null
value
Output, run on 18-11-2026:
[{:block/title "with [[link-target]]"}]
[{:block/refs [{:block/title "link-target"}] :block/title "with [[6afe0a1f-d59f-4ac8-b938-a1da2e744ebb]]"}]
The first line is the value as --update-properties stored it, the second the same value block after the re-save. The result is the same whether the CLI started the graph's db-worker or the desktop app owns it.
Expected Behavior
A text property value set through the CLI is stored the way the desktop app stores it: [[Page]] resolved to [[<uuid>]], and the page in the value block's :block/refs.
Screenshots
No response
Files
No response
Browser, Desktop or Mobile Platform Information
Linux, logseq --version: revision dad8e9c (nightly 20261118).
Additional Context
logseq/logseq#13998 made CLI block content go through the Desktop editor's parser (:logseq.outliner/save-block-input and :logseq.outliner/insert-blocks-input in deps/outliner/src/logseq/outliner/input.cljs). A text property value takes a different path: create-property-text-block! in deps/outliner/src/logseq/outliner/property.cljs puts the string into the value block's title as it is, so its links are never resolved.
Found with the help of an AI coding assistant driving the CLI.
Are you willing to submit a PR? If you know how to fix the bug.
- I'm willing to submit a PR (Thank you!)
- Lenguaje dominante
- Sin datos de lenguaje
- Estrellas
- 29
- Forks
- 2
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de logseq/db-test
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
-
Potential Dataloss: Deleting an entry from the property page's node table has no confirmation dialogPosiblemente ocupada @tiensonqin la tomó hace 59 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
Disabling Flashcards in Settings does not disable Flashcard shortcuts or tagsPosiblemente ocupada @tiensonqin la tomó hace 60 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Todos los issues de logseq/db-test
Issues similares
-
bug_feature_triaged Team: Mojo Libraries
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
letsrevel/revel-backend#1520 ·
Los mantenedores suelen responder en 1 día
-
backend enhancement good first issue help wanted
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
nikhilb2/simple_invoicing#931 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
diivi/aseprite-mcp#43 ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
NCAR/MMM-physics#33 ·