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 0de09d3afc
Remove the useless function `GetUserIssueStats` and move relevant tests to `indexer_test.go` (#27067)
Since the issue indexer has been refactored, the issue overview webpage
is built by the `buildIssueOverview` function and underlying
`indexer.Search` function and `GetIssueStats` instead of
`GetUserIssueStats`. So the function is no longer used.
I moved the relevant tests to `indexer_test.go` and since the search
option changed from `IssueOptions` to `SearchOptions`, most of the tests
are useless now.
We need more tests about the db indexer because those tests are highly
connected with the issue overview webpage and now this page has several
bugs.
Any advice about those test cases is appreciated.

---------

Co-authored-by: CaiCandong <50507092+CaiCandong@users.noreply.github.com>
2 years ago
..
actions resolve issue with sort icons on admin/users and admin/runners (#24360) 2 years ago
activities move repository deletion to service layer (#26948) 2 years ago
admin Replace `interface{}` with `any` (#25686) 2 years ago
asymkey Update tool dependencies, lock govulncheck and actionlint (#25655) 2 years ago
auth move repository deletion to service layer (#26948) 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 Replace 'userxx' with 'orgxx' in all test files when the user type is org (#27052) 2 years ago
git move repository deletion to service layer (#26948) 2 years ago
issues Remove the useless function `GetUserIssueStats` and move relevant tests to `indexer_test.go` (#27067) 2 years ago
migrations Add a new column schedule_id for action_run to track (#26975) 2 years ago
organization Replace 'userxx' with 'orgxx' in all test files when the user type is org (#27052) 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 Replace 'userxx' with 'orgxx' in all test files when the user type is org (#27052) 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 Display all user types and org types on admin management UI (#27050) 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 Move some functions to service layer (#26969) 2 years ago
org_team_test.go move repository deletion to service layer (#26948) 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 Fix unclear `IsRepositoryExist` logic (#24374) 2 years ago
repo_transfer_test.go Replace 'userxx' with 'orgxx' in all test files when the user type is org (#27052) 2 years ago