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/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>
10 months ago
..
actions resolve issue with sort icons on admin/users and admin/runners (#24360) 10 months ago
activities move repository deletion to service layer (#26948) 10 months ago
admin Replace `interface{}` with `any` (#25686) 1 year ago
asymkey Update tool dependencies, lock govulncheck and actionlint (#25655) 1 year ago
auth move repository deletion to service layer (#26948) 10 months ago
avatars Fix context cache bug & enable context cache for dashabord commits' authors (#26991) 10 months ago
db Improve DeleteByID (#26904) 10 months ago
dbfs Fix content holes in Actions task logs file (#25560) 1 year ago
fixtures Replace 'userxx' with 'orgxx' in all test files when the user type is org (#27052) 10 months ago
git move repository deletion to service layer (#26948) 10 months ago
issues Remove the useless function `GetUserIssueStats` and move relevant tests to `indexer_test.go` (#27067) 10 months ago
migrations Add a new column schedule_id for action_run to track (#26975) 10 months ago
organization Replace 'userxx' with 'orgxx' in all test files when the user type is org (#27052) 10 months ago
packages move repository deletion to service layer (#26948) 10 months ago
perm move repository deletion to service layer (#26948) 10 months ago
project Refactor project templates (#26448) 11 months 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) 10 months ago
secret Refactor secrets modification logic (#26873) 10 months ago
shared/types Display owner of a runner as a tooltip instead of static text (#24377) 1 year ago
system Fix context cache bug & enable context cache for dashabord commits' authors (#26991) 10 months ago
unit Use `Set[Type]` instead of `map[Type]bool/struct{}`. (#26804) 10 months ago
unittest Replace `interface{}` with `any` (#25686) 1 year ago
user Display all user types and org types on admin management UI (#27050) 10 months ago
webhook Replace `interface{}` with `any` (#25686) 1 year ago
error.go Sync branches into databases (#22743) 1 year 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) 10 months 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) 10 months ago
org_team_test.go move repository deletion to service layer (#26948) 10 months ago
org_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
repo.go move repository deletion to service layer (#26948) 10 months ago
repo_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
repo_transfer.go Fix unclear `IsRepositoryExist` logic (#24374) 1 year ago
repo_transfer_test.go Replace 'userxx' with 'orgxx' in all test files when the user type is org (#27052) 10 months ago