Skip to content

Improve block update time filling #12182

Closed
@TCOTC

Description

@TCOTC

很多块没有更新时间

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

image

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

default.webm

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

default.webm

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


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

Activity

88250

88250 commented on Aug 2, 2024

@88250
Member

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

TCOTC

TCOTC commented on Aug 2, 2024

@TCOTC
ContributorAuthor

从很早以前到最近的都有

88250

88250 commented on Aug 2, 2024

@88250
Member

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

self-assigned this
on Aug 4, 2024
added this to the 3.1.3 milestone on Aug 4, 2024
changed the title [-]很多块没有更新时间[/-] [+]Improved block update time filling[/+] on Aug 4, 2024
changed the title [-]Improved block update time filling[/-] [+]Improve block update time filling[/+] on Aug 4, 2024
added a commit that references this issue on Aug 4, 2024
TCOTC

TCOTC commented on Aug 4, 2024

@TCOTC
ContributorAuthor

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

image

88250

88250 commented on Aug 4, 2024

@88250
Member

言之有理,稍后改进。

added a commit that references this issue on Aug 4, 2024
TCOTC

TCOTC commented on Aug 8, 2024

@TCOTC
ContributorAuthor

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

image

88250

88250 commented on Aug 8, 2024

@88250
Member
TCOTC

TCOTC commented on Aug 21, 2024

@TCOTC
ContributorAuthor

打开文档后会自动更新

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

88250

88250 commented on Aug 21, 2024

@88250
Member

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

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @88250@TCOTC

      Issue actions

        Improve block update time filling · Issue #12182 · siyuan-note/siyuan