Skip to content

Reviewing a lot of files resets the counter when loading more #20681

Closed
@kolaente

Description

@kolaente

Description

Steps to reproduce:

  1. Create a repo
  2. Create a PR with a lot of changed files (in my case 193)
  3. Start reviewing the PR, marking each reviewed file as "viewed" with the checkbox
  4. Once the first 100 files are marked as viewed, click the "load more" button at the end of the page to load the rest of the files
  5. Mark the 101st file as viewed

Expected behavior:

101 files are marked as viewed

Actual behavior:

99 files are marked as viewed

The very first file is un-marked as viewed when marking the 101st file as viewed. When I mark it as viewed again, 100 files are marked as viewed again. When I then try to mark another of the newly loaded files as viewed, it unmarks the first file again, resulting in 99 files are marked as viewed.

Gitea Version

1.17.0

Can you reproduce the bug on the Gitea demo site?

Probably (on the go right now, will try to reproduce it later)

How are you running Gitea?

Official docker image.

Database

MySQL

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedtype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions