-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Comments for PR are in the wrong spot on the main page. #13683
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
Comments
1.13 has the same problem |
Also running into this issue after upgrading to 1.13.0. On the conversation overview page some comments are in the wrong location, or have no code context showing at all. On the actual files diff page the comments are on the correct locations. I can't reproduce my particular example on https://try.gitea.io because it is happening for a file larger than 1000 lines (I have custom value for MAX_GIT_DIFF_LINES = 10000). |
It's not just a UI bug, the diff snippet that is listed on the overview page for these review comments is also incorrect in the database. I think it may be related to this PR: https://github.com/go-gitea/gitea/pull/13448/files#diff-db20b9154b0af934aaf3b3fea8463c4e597562b7f75aa0ae70164fc55383454dR178 The |
Fixes #13683. The diff snippet that provides context for a code review comment on the pull request timeline page used to be calculated based on the headCommitID. But in 1.13, with PR #13448, this changed to the commitID from the blame for the commented line, which seems to cause these incorrect review comment diff snippets. Co-authored-by: Lunny Xiao <[email protected]>
[x]
):Description
When the page is shown, the comments are in the wrong location. On the main page they are in the wrong spot, but where i commented on them in the actual diff its in the right spot.
Screenshots
The text was updated successfully, but these errors were encountered: