We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
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
文档回滚会导致块 ID 重复
在回滚文档之后,相对于当前文档新增的这些块的 ID 需要重置。
块 ID 重复会导致异常行为:
The text was updated successfully, but these errors were encountered:
相对于当前文档新增的这些块的 ID
这个 ID 指的是一开始移动过去那些块的 ID?
我感觉方案应该是:回滚文档 a 时检查 a 中的块是否已经存在,存在的话说明重复了,这时候就重置 a 中重复的块 id
Sorry, something went wrong.
回滚文档 a 时检查 a 中的块是否已经存在,存在的话说明重复了,这时候就重置 a 中重复的块 id
我的意思跟你差不多,就是不检查直接重置新增的块。
如果“检查 a 中的块是否已经存在”足够可靠的话,可以只重置已经存在的 ID
已关闭笔记本中的检查不了,在索引中的可以检查,先就做到这样吧。
🎨 Improve rollback doc to avoid ID duplication #14358
d348ad0
6407791
88250
No branches or pull requests
文档回滚会导致块 ID 重复
在回滚文档之后,相对于当前文档新增的这些块的 ID 需要重置。
块 ID 重复会导致异常行为:
video.webm
The text was updated successfully, but these errors were encountered: