Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Team review requests get deleted when team member submits unrelated review request #17251

Closed
jpraet opened this issue Oct 7, 2021 · 0 comments · Fixed by #17257
Closed

Team review requests get deleted when team member submits unrelated review request #17251

jpraet opened this issue Oct 7, 2021 · 0 comments · Fixed by #17257
Labels
Milestone

Comments

@jpraet
Copy link
Member

jpraet commented Oct 7, 2021

Gitea Version

1.15.3

Git Version

No response

Operating System

No response

How are you running Gitea?

docker

Database

PostgreSQL

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Description

Team review requests unexpectedly get deleted when a team member submits any review in a (potentially unrelated) pull request.

It looks like the where clause to consider only the current PR is missing here:
https://github.com/go-gitea/gitea/blob/main/models/review.go#L444-L463

Screenshots

No response

jpraet added a commit to jpraet/gitea that referenced this issue Oct 7, 2021
Add missing issue_id = ? to where clause
Fixes go-gitea#17251
jpraet added a commit to jpraet/gitea that referenced this issue Oct 7, 2021
Add missing issue_id = ? to where clause
Fixes go-gitea#17251
@jpraet jpraet added the type/bug label Oct 7, 2021
@jpraet jpraet added this to the 1.15.4 milestone Oct 7, 2021
lafriks added a commit to jpraet/gitea that referenced this issue Oct 7, 2021
6543 pushed a commit that referenced this issue Oct 7, 2021
Add missing issue_id = ? to where clause
Fixes #17251
jpraet added a commit to jpraet/gitea that referenced this issue Oct 7, 2021
6543 pushed a commit that referenced this issue Oct 7, 2021
Add missing issue_id = ? to where clause
Fixes #17251
Chianina pushed a commit to Chianina/gitea that referenced this issue Oct 15, 2021
Add missing issue_id = ? to where clause
Fixes go-gitea#17251
@go-gitea go-gitea locked and limited conversation to collaborators Apr 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant