[DB 2.0.2][iOS] Synced block created with a date/node property value is missing from Linked References until it is edited
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
- DB graph synced between a desktop/CLI client and the iOS app, with a date property (here
Datum). - 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>}' - macOS lists "Test" under Linked References of that journal page. iOS does not, also after force-quitting the app.
- Change only the text:
logseq upsert block --id <id> --content "Test edited". - 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, upstreamdeps/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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của logseq/db-test
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Potential Dataloss: Deleting an entry from the property page's node table has no confirmation dialogCó thể đã có người làm @tiensonqin đã nhận 59 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Disabling Flashcards in Settings does not disable Flashcard shortcuts or tagsCó thể đã có người làm @tiensonqin đã nhận 60 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Tất cả issue của logseq/db-test
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
krishnanunnir/vulcan-launcher#113 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Android contributor: external needs review sdk-58 severity: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
expo/expo#54004 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
ccch1mneyyy/dsh-Go#1777 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ready-for-agent
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày