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
Nanguan Lin 2f8e1604f8
Fix review request number and add more tests (#27104)
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: CaiCandong <50507092+CaiCandong@users.noreply.github.com>
Co-authored-by: Giteabot <teabot@gitea.io>
1 year ago
..
actions Next round of `db.DefaultContext` refactor (#27089) 2 years ago
activities Reduce usage of `db.DefaultContext` (#27073) 2 years ago
admin Next round of `db.DefaultContext` refactor (#27089) 2 years ago
asymkey Reduce usage of `db.DefaultContext` (#27073) 2 years ago
auth Next round of `db.DefaultContext` refactor (#27089) 2 years ago
avatars Fix context cache bug & enable context cache for dashabord commits' authors (#26991) 2 years ago
db Improve DeleteByID (#26904) 2 years ago
dbfs Fix content holes in Actions task logs file (#25560) 2 years ago
fixtures Fix review request number and add more tests (#27104) 1 year ago
git Search branches (#27055) 2 years ago
issues Fix review request number and add more tests (#27104) 1 year ago
migrations Add index to `issue_user.issue_id` (#27154) 1 year ago
organization Next round of `db.DefaultContext` refactor (#27089) 2 years ago
packages move repository deletion to service layer (#26948) 2 years ago
perm move repository deletion to service layer (#26948) 2 years 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) 2 years ago
secret Refactor secrets modification logic (#26873) 2 years 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) 2 years ago
unit Use `Set[Type]` instead of `map[Type]bool/struct{}`. (#26804) 2 years ago
unittest Replace `interface{}` with `any` (#25686) 2 years ago
user Next round of `db.DefaultContext` refactor (#27089) 2 years 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) 2 years 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) 2 years ago
org_team_test.go Reduce usage of `db.DefaultContext` (#27073) 2 years ago
org_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
repo.go move repository deletion to service layer (#26948) 2 years ago
repo_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
repo_transfer.go Next round of `db.DefaultContext` refactor (#27089) 2 years ago
repo_transfer_test.go Next round of `db.DefaultContext` refactor (#27089) 2 years ago