-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Render failed when opening PR with conversation #29885
Comments
Hmm, not sure whether this is regression or not. Line is here: |
It is not related to 29773, I think the root cause is that some database records are deleted then the template fails to render. My guess is that the "review" is deleted. I could remember a recent PR: Workaround to clean up old reviews on creating a new one (#28554) #29264 @6543 do you have more ideas? |
A quick and dirty fix could be like this: Fix template error when comment review doesn't exist #29888 |
Wow, that was quite fast. I just built the docker image with the fix on your branch before it was merged. As far as I can tell it worked like a charm. I'm able to see the conversation and inline comments in the PR files view. Thanks a lot for looking into this so fast 🚀 |
Description
I upgraded my gitea instance to version 1.21.7.
When I open certain PR's which already have a conversation/comments attached, I get the following error:
Since this looked similar to #29773 I also tried the newer versions 1.21.9 and even nightly with the same results.
Gitea Version
1.21.7
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
https://gist.github.com/fhennig42/7247399e2e87f6d7050414633661ff46
Screenshots
Git Version
2.40.1
Operating System
Ubuntu 22.04
How are you running Gitea?
docker (official docker image managed by doker-compose)
Database
None
The text was updated successfully, but these errors were encountered: