AppFlowy-IO / AppFlowy-IO/AppFlowy

[Bug] Document content moved to parent document after updating to v0.7.6

未关闭
#6,943 2 条评论 0 个 reaction 已指派 1 人 已指派给 @LucasXu0 在 GitHub 查看
2025 bug data sync
主要语言
Dart
星标
76.6k
派生
6k
PR 合并指标
30 天内没有已合并 PR

描述

### Bug Description

After updating AppFlowy from version v0.7.5 to v0.7.6 on Windows, the content of two of my documents was unexpectedly moved to their parent document. The original documents still exist with their titles, icons, and images intact, but the text inside them disappeared.

Upon further inspection, I noticed that some of the missing content was appended to the end of the parent document. However, parts of the content are still missing. This behavior occurred after installing the update on Windows, and the issue now persists across other devices (Linux and iOS) using the same account.

This data is critical for me, and I would like to know if there is any way to recover the missing portions.

### How to Reproduce

1. Use AppFlowy v0.7.5 on Linux to create and edit several documents with a parent-child structure.
2. Open the same account on Windows with the same version (v0.7.5) to ensure proper synchronization.
3. Update AppFlowy on Windows to v0.7.6 by installing it over the previous version.
4. Open the updated application and check the content of the previously created documents.

### Expected Behavior

Documents should retain their content after an update, with no unintended movement or loss of data.

### Operating System

Linux (v0.7.5, no issues encountered), Windows (v0.7.6, issue occurred after update)

### AppFlowy Version(s)

v0.7.6

### Screenshots

![image](https://github.com/user-attachments/assets/cebba930-958b-47b4-8cc3-7aff981b5390)
![image](https://github.com/user-attachments/assets/ddef4b02-afb8-4719-b684-8b34422fc7b4)

In this image, the red arrow points where the red rectangle content belong, and the green arrow points where the other content belong. Some parts are still missing.

![image](https://github.com/user-attachments/assets/6fae3631-896b-4859-ac45-485f6efcde3e)

### Additional Context

The issue affects two documents that were not edited recently, but their parent document was modified.
Logs indicate errors such as `RecordNotFound `for the affected documents:
```json
{"msg":"[Flutter]: get publish info: Failure(error: code: RecordNotFound\nmsg: Record not found:c6d70877-9c08-40da-9ec8-8527775d1291\n) for view: Implementación(c6d70877-9c08-40da-9ec8-8527775d1291)","time":"12-07 22:26:46","target":"dart_ffi"}
{"msg":"[Flutter]: get publish info: Failure(error: code: RecordNotFound\nmsg: Record not found:ac30e53b-c89b-4165-ba4f-f0cea36830ee\n) for view: Sintaxis Diálogos(ac30e53b-c89b-4165-ba4f-f0cea36830ee)","time":"12-07 22:26:46","target":"dart_ffi"}
```

**Question:**
Is there any way to recover the missing portions of the documents? The content is very important, and I would appreciate guidance on how to address this issue.

Full logs are attached to this issue for further analysis.

[log.2024-12-08.txt](https://github.com/user-attachments/files/18050456/log.2024-12-08.txt)

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。