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

Aperta
#1,521 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
ios
Ambito
mobile

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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!)
Lingua principale
Nessun dato sulla lingua
Stelle
29
Fork
2
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di logseq/db-test

Tutte le issue di logseq/db-test

Issue simili

Altre issue su Mobile Dev

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.