Skip to content

Generate file history before converting doc to heading/moving blocks #14359

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
TCOTC opened this issue Mar 14, 2025 · 12 comments
Closed

Generate file history before converting doc to heading/moving blocks #14359

TCOTC opened this issue Mar 14, 2025 · 12 comments
Assignees
Milestone

Comments

@TCOTC
Copy link
Contributor

TCOTC commented Mar 14, 2025

文档转标题/移动块之后需要立即创建一个文件历史

移动块之后撤回上层容器块,然后这些移动的块就无法恢复了:

https://ld246.com/article/1741954312458

p.s. 与此同时我又发现了另一个问题:#14358

@88250 88250 self-assigned this Mar 15, 2025
@88250 88250 changed the title 文档转标题/移动块之后需要立即创建一个文件历史 Generate file history before converting doc to heading/moving blocks Mar 15, 2025
@88250 88250 added this to the 3.1.25 milestone Mar 15, 2025
@TCOTC

This comment has been minimized.

88250 added a commit that referenced this issue Mar 15, 2025

Unverified

This user has not yet uploaded their public signing key.
@88250
Copy link
Member

88250 commented Mar 15, 2025

文档内移动块(非跨编辑器移动块)也会生成历史。

@88250 88250 closed this as completed Mar 15, 2025
@TCOTC
Copy link
Contributor Author

TCOTC commented Mar 15, 2025

文档转标题之后需要立即创建一个文件历史

我试了一下这个还是不行。生成历史有延迟,没有在转标题之后立即生成历史,所以撤销上层容器块之后还是无法恢复

@88250
Copy link
Member

88250 commented Mar 15, 2025 via email

@TCOTC
Copy link
Contributor Author

TCOTC commented Mar 15, 2025

回滚之后文档消失了:

video.webm

@TCOTC
Copy link
Contributor Author

TCOTC commented Mar 15, 2025

话说回滚之后文档的 ID 有没有检查是否重复然后重置?

@88250
Copy link
Member

88250 commented Mar 15, 2025

回滚之后文档消失了

稍后修复

话说回滚之后文档的 ID 有没有检查是否重复然后重置?

检查的

@TCOTC
Copy link
Contributor Author

TCOTC commented Mar 15, 2025

文档 ID 重置有没有把文件名也一起重置?

@88250
Copy link
Member

88250 commented Mar 15, 2025

嗯,应该是这里有点问题

@TCOTC
Copy link
Contributor Author

TCOTC commented Mar 15, 2025

如果有其他地方会重置文档 ID,可能也要检查一下

@88250
Copy link
Member

88250 commented Mar 15, 2025

其他重置 ID 的地方已经处理过了

@88250
Copy link
Member

88250 commented Mar 15, 2025

代码已经提交,再帮忙测测 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants