Skip to content

Comment history is loading slowly + has an offByOne error #17676

Closed
@delvh

Description

@delvh

Gitea Version

1.16.0+dev-519-g3be156f66

Operating System

Linux

Browser Version

Firefox 94.0

Can you reproduce the bug on the Gitea demo site?

Yes

Description

Gitea now supports the comment history.
However, loading the history seems to be way too slow:

For normal comments, the history will automatically be loaded once the page is reloaded.
Fine so far. Still with a hefty delay (~3 seconds, so you definitely notice when the history suddenly appears), but it loads.

The issue bodies (the description of the issue) are way worse:
According to my tests on try.gitea.io, there seems to be an index error for those, as they only load once a second edit has been made. Once the second edit has been made, it behaves like a normal comment.

So, two things should be done:

  1. the offByOne error should be fixed.
  2. the history should be loaded faster, at best to the point that it is unnoticeable that it has been loaded afterwards.

Screenshots

image
This is an issue description where one edit has been made and the page has been force-reloaded. As you see, the history is not getting displayed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/needs-feedbackFor bugs, we need more details. For features, the feature must be described in more detailperformance/speedperformance issues with slow downstopic/ui-interactionChange the process how users use Gitea instead of the visual appearancetype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions