CommentTypeDismissReview are not deleted when deleting a Review #11902

Closed
opened 2025-11-02 09:51:25 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @jpraet on GitHub (Oct 24, 2023).

Description

Now that some error logging has been added in 1.20.5, I have been able to find the root cause of #27306:

When deleting a review, comments of type CommentTypeDismissReview are not deleted.

Gitea Version

1.20.5

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

docker

Database

PostgreSQL

Originally created by @jpraet on GitHub (Oct 24, 2023). ### Description Now that some error logging has been added in 1.20.5, I have been able to find the root cause of #27306: When [deleting a review](https://github.com/go-gitea/gitea/blob/796ff26e0e9de8dc746064e57db13518dedcf671/models/issues/review.go#L863-L911), comments of type [CommentTypeDismissReview](https://github.com/go-gitea/gitea/blob/796ff26e0e9de8dc746064e57db13518dedcf671/models/issues/comment.go#L105C2-L105C27) are not deleted. ### Gitea Version 1.20.5 ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? docker ### Database PostgreSQL
GiteaMirror added the type/bug label 2025-11-02 09:51:25 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#11902