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>
2023-09-14 12:35:53 -04:00
..
actions
activities move repository deletion to service layer (#26948) 2023-09-08 04:51:15 +00:00
admin Replace `interface{}` with `any` (#25686) 2023-07-04 18:36:08 +00:00
asymkey Update tool dependencies, lock govulncheck and actionlint (#25655) 2023-07-09 11:58:06 +00:00
auth
avatars
db
dbfs
fixtures Replace 'userxx' with 'orgxx' in all test files when the user type is org (#27052) 2023-09-14 02:59:53 +00:00
git
issues Remove the useless function `GetUserIssueStats` and move relevant tests to `indexer_test.go` (#27067) 2023-09-14 12:35:53 -04:00
migrations
organization Replace 'userxx' with 'orgxx' in all test files when the user type is org (#27052) 2023-09-14 02:59:53 +00:00
packages
perm
project Refactor project templates (#26448) 2023-08-12 10:30:28 +00:00
pull
repo Replace 'userxx' with 'orgxx' in all test files when the user type is org (#27052) 2023-09-14 02:59:53 +00:00
secret
shared/types
system
unit
unittest
user Display all user types and org types on admin management UI (#27050) 2023-09-14 06:53:36 +00:00
webhook
error.go
fixture_generation.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
fixture_test.go
main_test.go move repository deletion to service layer (#26948) 2023-09-08 04:51:15 +00:00
org.go
org_team.go Move some functions to service layer (#26969) 2023-09-08 21:09:23 +00:00
org_team_test.go
org_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
repo.go
repo_test.go
repo_transfer.go
repo_transfer_test.go