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/modules/indexer/issues
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>
1 year ago
..
bleve Refactor and enhance issue indexer to support both searching, filtering and paging (#26012) 2 years ago
db Explain SearchOptions and fix ToSearchOptions (#26542) 1 year ago
elasticsearch Refactor and enhance issue indexer to support both searching, filtering and paging (#26012) 2 years ago
internal Replace `util.SliceXxx` with `slices.Xxx` (#26958) 1 year ago
meilisearch Refactor and enhance issue indexer to support both searching, filtering and paging (#26012) 2 years ago
dboptions.go Explain SearchOptions and fix ToSearchOptions (#26542) 1 year ago
indexer.go Fix counting and filtering on the dashboard page for issues (#26657) 1 year ago
indexer_test.go Remove the useless function `GetUserIssueStats` and move relevant tests to `indexer_test.go` (#27067) 1 year ago
util.go Refactor and enhance issue indexer to support both searching, filtering and paging (#26012) 2 years ago