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

Đang mở
#1,521 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
ios
Lĩnh vực
mobile

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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!)
Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
29
Fork
2
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của logseq/db-test

Tất cả issue của logseq/db-test

Issue tương tự

Thêm issue về Mobile Dev

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.