You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/templates
sillyguodong bfecf3bd89
Fix internal sever error when visiting a PR that bound to the deleted team (#24127)
Close: #23738

The actual cause of `500 Internal Server Error` in the issue is not what
is descirbed in the issue.

The actual cause is that after deleting team, if there is a PR which has
requested reivew from the deleted team, the comment could not match with
the deleted team by `assgin_team_id`. So the value of `.AssigneeTeam`
(see below code block) is `nil` which cause `500 error`.


1c8bc4081a/templates/repo/issue/view_content/comments.tmpl (L691-L695)

To fix this bug, there are the following problems to be resolved:

- [x] 1. ~~Stroe the name of the team in `content` column when inserting
`comment` into DB in case that we cannot get the name of team after it
is deleted. But for comments that already exist, just display "Unknown
Team"~~ Just display "Ghost Team" in the comment if the assgined team is
deleted.
- [x] 2. Delete the PR&team binding (the row of which `review_team_id =
${team_id} ` in table `review`) when deleting team.
- [x] 3.For already exist and undeleted binding rows in in table
`review`, ~~we can delete these rows when executing migrations.~~ they
do not affect the function, so won't delete them.
1 year ago
..
admin Use auto-updating, natively hoverable, localized time elements (#23988) 1 year ago
api/packages/pypi Remove incorrect HTML self close tag (#23748) 1 year ago
base Show friendly 500 error page to users and developers (#24110) 1 year ago
code Use data-tooltip-content for tippy tooltip (#23649) 1 year ago
custom Add footer extra links template (#9576) 5 years ago
devtest Refactor locale number (#24134) 1 year ago
explore Use auto-updating, natively hoverable, localized time elements (#23988) 1 year ago
mail Remove incorrect HTML self close tag (#23748) 1 year ago
org Add repository counter badge to repository tab (#24205) 1 year ago
package Remove untranslatable `on_date` key (#24106) 1 year ago
projects Add unset default project column (#23531) 1 year ago
repo Fix internal sever error when visiting a PR that bound to the deleted team (#24127) 1 year ago
shared Add monospace toggle button to textarea (#24034) 1 year ago
status Show friendly 500 error page to users and developers (#24110) 1 year ago
swagger Add activity feeds API (#23494) 1 year ago
user Add repository counter badge to repository tab (#24205) 1 year ago
home.tmpl Improve home page template, fix Sort dropdown menu flash (#23856) 1 year ago
install.tmpl Remove incorrect HTML self close tag (#23748) 1 year ago
post-install.tmpl Remove incorrect HTML self close tag (#23748) 1 year ago