Skip to content

Inaccurate display of "Viewed" count in file diff when expanding files #26854

Closed
@Menah3m

Description

@Menah3m

Description

I have observed a bug in Gitea's file diff feature regarding the display of "Viewed" count in the context of expanding files.

I have configured the "MAX_GIT_DIFF_LINES:200" and "MAX_GIT_DIFF_FILES:20" settings in app.ini . However, when I expand files in the diff view, the "Viewed" count appears to be inaccurately tracked. Specifically, clicking "View More" seems to reset the viewed count and sometimes even results in a negative count when unchecking previously viewed files.

Gitea Version

1.19.3

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

image

Git Version

1.8.3.1

Operating System

centos 7

How are you running Gitea?

it is being run from a helm chart.

Database

PostgreSQL

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions