Skip to content

Re-request Review does not work after a "Comment" Review (with line comment) #37409

@JpMand

Description

@JpMand

Description

On a Pull Request with a Requested Review, if the reviewer submits a "Comment" Review (Not "Approve" or "Request Changes") with at least 1 line comment and all files are "viewed", then the button for the re-request review does not work anymore.

Clicking on it reloads the page but does not add the "Requested review" activity on the Conversation tab and does not mark the Reviewer with "Review pending".

My doubt if it's an expected thing, since it's not an request change or approval review, meaning the initial review request is still valid, but at least it should give a proper indication of it, instead of failing silently.

Reproduction Steps:

  1. Author creates a normal Pull Request (with additional commits and file changed/added)
  2. Author requests review from Reviewer
  3. Reviewer Submit a "Comment" Review
    a. Must have at least 1 review comment in a line
    b. Must check as viewed all files
  4. Author re-request review from Reviewer
    a. (Optional) Author pushes a change before re-requesting review.

Expected:
Pull Request Reviewers is updated with "Bob" marked with "Review Pending" and no button to re-request review

Result:
Pull Request Reviewers is updated, but with no changes, meaning no "Review Pending" and with re-request button still present.

  • Submitting an Approve or Requests changes does not case the issue
  • Making an "Comment" review with no file comments does not case the issue
  • Making an "Comment" review with file comments but without checking all files as viewed, does not case the issue

Gitea Version

1.25.5

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

https://gist.github.com/JpMand/0bbf3a54a256bbd55bc5314f14957efb

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

I tested with:

  • Local docker gitea (using docker-compose)
    • Tested initially with image docker.gitea.com/gitea:1.25.5, then with the image to docker.gitea.com/gitea:1.26.0 (same gitea folder)
  • https://demo.gitea.com
  • https://gitea.com

URL demo gitea: https://demo.gitea.com/JpMand/idea-plugin-demo-repo/pulls/2
URL gitea https://gitea.com/JpMand/testRepo

docker-compose file

version: "3"

networks:
  gitea:
    external: false

services:
  server:
    image: docker.gitea.com/gitea:1.25.5
    container_name: gitea
    environment:
      - USER_UID=1000
      - USER_GID=1000
    restart: always
    networks:
      - gitea
    volumes:
      - ./gitea:/data
    ports:
      - "3000:3000"
      - "222:22"

Database

None

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