Skip to content
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

Improve block update time filling #12182

Closed
TCOTC opened this issue Aug 2, 2024 · 9 comments
Closed

Improve block update time filling #12182

TCOTC opened this issue Aug 2, 2024 · 9 comments
Assignees
Milestone

Comments

@TCOTC
Copy link
Contributor

TCOTC commented Aug 2, 2024

很多块没有更新时间

在用 SQL 查询的时候发现了这个问题,有很多 列表(项)块、列表项中的段落块、列表项中的超级块、空段落块 没有更新时间,其中绝大部分是列表(项)块

image

创建列表,刷新之后有的块有更新时间,有的块没有:

default.webm

点击文档末尾新建空段落块:

default.webm

我觉得在索引的时候,如果一个块没有更新时间,就应该把创建时间填到更新时间里去


关联一下 https://ld246.com/article/1722587502176/comment/1722601401871#comments

@88250
Copy link
Member

88250 commented Aug 2, 2024

看下 id 是不是很早以前的,如果是的话应该是以前的 bug 导致。

@TCOTC
Copy link
Contributor Author

TCOTC commented Aug 2, 2024

从很早以前到最近的都有

@88250
Copy link
Member

88250 commented Aug 2, 2024

好的,我看到你上面补充的录屏了,等有空看看具体问题。

@88250 88250 self-assigned this Aug 4, 2024
@88250 88250 added this to the 3.1.3 milestone Aug 4, 2024
@88250 88250 changed the title 很多块没有更新时间 Improved block update time filling Aug 4, 2024
@88250 88250 changed the title Improved block update time filling Improve block update time filling Aug 4, 2024
@88250 88250 closed this as completed Aug 4, 2024
@TCOTC
Copy link
Contributor Author

TCOTC commented Aug 4, 2024

@88250 这一个判断好像用不上,updated = created 之后就不会 < created 了吧?

image

@88250
Copy link
Member

88250 commented Aug 4, 2024

言之有理,稍后改进。

@TCOTC
Copy link
Contributor Author

TCOTC commented Aug 8, 2024

@88250 现有的一大堆没有更新时间的块咋办?索引的时候能不能自动填一下更新时间?

image

@88250
Copy link
Member

88250 commented Aug 8, 2024 via email

@TCOTC
Copy link
Contributor Author

TCOTC commented Aug 21, 2024

打开文档后会自动更新

@88250 我发现打开文档和刷新文档都不行,要修改一次没更新时间的块才有更新时间

@88250
Copy link
Member

88250 commented Aug 21, 2024

哦哦,确实是的,需要修改一下内容。

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