[DB 2.0.2][iOS] Synced block created with a date/node property value is missing from Linked References until it is edited

Abierto
#1,521 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
ios
Área
mobile

Línea de trabajo

Start by tracing how the iOS app processes synced transactions and updates Linked References for blocks with date properties; compare that path with the desktop behavior described in the report. The payload does not name source files or tests, so locate those entry points in the repository first. Done means a block created with its date property in the same operation appears in iOS Linked References after sync, without needing a later edit.

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?

A block created on another client with a date property value set in the same operation syncs to the iPhone, but iOS never lists it in the Linked References of the referenced journal page, also not after force-quitting the app. The macOS desktop app on the same graph shows it right away. Any later edit to the block (even text only) makes it appear on iOS.

Test blocks were written with the Logseq CLI 2.0.2 on a Mac, each against a journal page without other references:

Test How the block was written macOS 2.0.2 iOS 2.0.2 (54)
A new block, date property set in the same upsert block shown missing, also after app restart
B new block with inline link [[Nov 9th, 2026]] shown shown (A still missing)
C new block with date Nov 8th, then a second upsert changing it to Nov 9th shown shown
D new block without property, date set in a second upsert --id shown shown
E like A (missing on iOS), then only its text changed shown appears after the text edit

Reproduce the Bug

  1. DB graph synced between a desktop/CLI client and the iOS app, with a date property (here Datum).
  2. On the CLI client, create a block that sets the property in the same operation:
    logseq upsert block --graph <graph> --target-page "Sync test" --content "Test" --update-properties '{:user.property/Datum-<id> <journal-page-db-id>}'
  3. macOS lists "Test" under Linked References of that journal page. iOS does not, also after force-quitting the app.
  4. Change only the text: logseq upsert block --id <id> --content "Test edited".
  5. iOS now lists the block.

Expected Behavior

iOS lists the block under Linked References as soon as it has synced, like desktop does.

Desktop or Mobile Platform Information

  • Logseq 2.0.2, DB graph, E2EE enabled
  • iOS app: iPhone 18 Pro Max, iOS 27.2.1, Logseq 2.0.2 (54) from TestFlight
  • Other clients: macOS desktop 2.0.2; Logseq CLI 2.0.2 (Node mode of the desktop app) on a second Mac, which wrote all test blocks
  • Sync: self-hosted sync server (ghcr.io/yshalsager/logseq-selfhost-sync, upstream deps/db-sync)

Additional Context

  • Same version on macOS and iOS, and macOS builds the refs from the same remote transactions, so this looks iOS-specific rather than a server or data problem.
  • Related on the writing side: logseq/db-test#1512.
  • Workaround for scripts: create the block first, then set the properties in a second upsert --id.

Are you willing to submit a PR?

  • 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

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de logseq/db-test

Todos los issues de logseq/db-test

Issues similares

Más issues de Mobile Dev

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.