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.
gitea/models
Giteabot 81ae35aa4f
Fix review request number and add more tests (#27104) (#27168)
Backport #27104 by @lng2020

fix #27019 
## testfixture yml
1. add issue20(a pr issue) in repo 23, org 17
2. add user15 to team 9
3. add four reviews about issue20
## test case
add two tests that are described with code comments
the code before pr #26784 failed the first test
<img width="479" alt="image"
src="https://github.com/go-gitea/gitea/assets/70063547/1d9b5787-11b4-4c4d-931f-6a9869547f35">
current code failed the second test(as mentioned in #27019)
<img width="484" alt="image"
src="https://github.com/go-gitea/gitea/assets/70063547/05608055-7587-43d1-bae1-92c688270819">
Any advice is appreciated.

Co-authored-by: Nanguan Lin <70063547+lng2020@users.noreply.github.com>
Co-authored-by: CaiCandong <50507092+CaiCandong@users.noreply.github.com>
1 year ago
..
actions Next round of `db.DefaultContext` refactor (#27089) 1 year ago
activities Reduce usage of `db.DefaultContext` (#27073) 1 year ago
admin Next round of `db.DefaultContext` refactor (#27089) 1 year ago
asymkey Reduce usage of `db.DefaultContext` (#27073) 1 year ago
auth Next round of `db.DefaultContext` refactor (#27089) 1 year ago
avatars Fix context cache bug & enable context cache for dashabord commits' authors (#26991) 1 year ago
db Improve DeleteByID (#26904) 1 year ago
dbfs Fix content holes in Actions task logs file (#25560) 2 years ago
fixtures Fix review request number and add more tests (#27104) (#27168) 1 year ago
git Search branches (#27055) 1 year ago
issues Fix review request number and add more tests (#27104) (#27168) 1 year ago
migrations Add index to `issue_user.issue_id` (#27154) (#27158) 1 year ago
organization Next round of `db.DefaultContext` refactor (#27089) 1 year ago
packages move repository deletion to service layer (#26948) 1 year ago
perm move repository deletion to service layer (#26948) 1 year ago
project Refactor project templates (#26448) 2 years ago
pull refactor some functions to support ctx as first parameter (#21878) 2 years ago
repo Add `RemoteAddress` to mirrors (#26952) 1 year ago
secret Refactor secrets modification logic (#26873) 1 year ago
shared/types Display owner of a runner as a tooltip instead of static text (#24377) 2 years ago
system Fix context cache bug & enable context cache for dashabord commits' authors (#26991) 1 year ago
unit Use `Set[Type]` instead of `map[Type]bool/struct{}`. (#26804) 1 year ago
unittest Replace `interface{}` with `any` (#25686) 2 years ago
user Next round of `db.DefaultContext` refactor (#27089) 1 year ago
webhook Replace `interface{}` with `any` (#25686) 2 years ago
error.go Sync branches into databases (#22743) 2 years ago
fixture_generation.go Implement FSFE REUSE for golang files (#21840) 2 years ago
fixture_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
main_test.go move repository deletion to service layer (#26948) 1 year ago
org.go refactor some functions to support ctx as first parameter (#21878) 2 years ago
org_team.go Use db.WithTx for AddTeamMember to avoid ctx abuse (#27095) 1 year ago
org_team_test.go Reduce usage of `db.DefaultContext` (#27073) 1 year ago
org_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
repo.go move repository deletion to service layer (#26948) 1 year ago
repo_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
repo_transfer.go Next round of `db.DefaultContext` refactor (#27089) 1 year ago
repo_transfer_test.go Next round of `db.DefaultContext` refactor (#27089) 1 year ago