summaryrefslogtreecommitdiffstats
path: root/routers/api/v1/admin
diff options
context:
space:
mode:
authorNanguan Lin <70063547+lng2020@users.noreply.github.com>2023-09-14 18:35:53 +0200
committerGitHub <noreply@github.com>2023-09-14 18:35:53 +0200
commit0de09d3afcb5394cbd97e4a1c5609eb8b2acb6cf (patch)
tree21316949adef302ae72ea7e54d198db15a50022b /routers/api/v1/admin
parentFix issue templates when blank isses are disabled (#27061) (diff)
downloadforgejo-0de09d3afcb5394cbd97e4a1c5609eb8b2acb6cf.tar.xz
forgejo-0de09d3afcb5394cbd97e4a1c5609eb8b2acb6cf.zip
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>
Diffstat (limited to 'routers/api/v1/admin')
0 files changed, 0 insertions, 0 deletions