Skip to content

Conversation

lunny
Copy link
Member

@lunny lunny commented Jul 20, 2025

Fix #29715

  • Ensure that a review comment with no content is also deleted when its last associated code comment is removed.

  • Introduced API functionality for deleting code comments.

… comment is still in the activity list of the pull request
@lunny lunny added the type/bug label Jul 20, 2025
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Jul 20, 2025
@lunny lunny marked this pull request as draft July 20, 2025 19:32
@github-actions github-actions bot added modifies/api This PR adds API routes or modifies them modifies/go Pull requests that update Go code modifies/frontend labels Jul 20, 2025
@lunny lunny marked this pull request as ready for review August 1, 2025 18:30
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Aug 7, 2025
@lunny
Copy link
Member Author

lunny commented Sep 18, 2025

last call @go-gitea/technical-oversight-committee

}

const json: Record<string, any> = await response.json();
if (json.errorMessage) throw new Error(json.errorMessage);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you break a framework design again.

Do you know where the value of "errorMessage" is from? How it should be used? Is it right to use it as an exception(error)?

Comment on lines +156 to +158
if (json.deletedReviewCommentHashTag) {
document.querySelector(`#${json.deletedReviewCommentHashTag}`)?.remove();
}
Copy link
Contributor

@wxiaoguang wxiaoguang Sep 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can see that the lines around this use the data attributes. So why here it uses a backend-generated ID?

#35103 (comment)

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm/need 1 This PR needs approval from one additional maintainer to be merged. modifies/api This PR adds API routes or modifies them modifies/frontend modifies/go Pull requests that update Go code type/bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

When deleting code review comment, the activity log will not be deleted

4 participants