gitea/models/issues
Lunny Xiao 09df5c9c7d
Use db.ListOptions directly instead of Paginator interface to make iteasier to use and fix performance of /pulls and /issues () ()
backport 

This PR uses `db.ListOptions` instead of `Paginor` to make the code
simpler.
And it also fixed the performance problem when viewing /pulls or
/issues. Before the counting in fact will also do the search.

Co-authored-by: Jason Song <i@wolfogre.com>
Co-authored-by: silverwind <me@silverwind.io>
..
assignees.go Make more functions use ctx instead of db.DefaultContext ()
assignees_test.go Replace 'userxx' with 'orgxx' in all test files when the user type is org ()
comment.go Dont load Review if Comment is CommentTypeReviewRequest () ()
comment_code.go Load attachments for code comments () ()
comment_list.go Use ghost user if user was not found () ()
comment_test.go More `db.DefaultContext` refactor () ()
content_history.go Fix issue & comment history bugs () ()
content_history_test.go Fix issue & comment history bugs () ()
dependency.go Add API to manage issue dependencies ()
dependency_test.go refactor some functions to support ctx as first parameter ()
issue.go Performance improvements for pull request list page () ()
issue_index.go Another round of `db.DefaultContext` refactor () ()
issue_label.go Don't let API add 2 exclusive labels from same scope () ()
issue_label_test.go Don't let API add 2 exclusive labels from same scope () ()
issue_list.go Performance improvements for pull request list page () ()
issue_list_test.go Add context parameter to some database functions ()
issue_lock.go Rename almost all Ctx functions ()
issue_project.go Add missing database transaction for new issue () ()
issue_search.go Use db.ListOptions directly instead of Paginator interface to make iteasier to use and fix performance of /pulls and /issues () ()
issue_stats.go Use db.ListOptions directly instead of Paginator interface to make iteasier to use and fix performance of /pulls and /issues () ()
issue_test.go More `db.DefaultContext` refactor () ()
issue_update.go Don't use subselect in `DeleteIssuesByRepoID` () ()
issue_user.go Add index to `issue_user.issue_id` () ()
issue_user_test.go Fix bug with sqlite load read ()
issue_watch.go Next round of `db.DefaultContext` refactor ()
issue_watch_test.go Next round of `db.DefaultContext` refactor ()
issue_xref.go More `db.DefaultContext` refactor () ()
issue_xref_test.go Replace 'userxx' with 'orgxx' in all test files when the user type is org ()
label.go Next round of `db.DefaultContext` refactor ()
label_test.go Next round of `db.DefaultContext` refactor ()
main_test.go move repository deletion to service layer ()
milestone.go Next round of `db.DefaultContext` refactor ()
milestone_list.go Next round of `db.DefaultContext` refactor ()
milestone_test.go Next round of `db.DefaultContext` refactor ()
pull.go Fix codeowner detected diff base branch to mergebase () ()
pull_list.go Performance improvements for pull request list page () ()
pull_test.go Fix codeowner detected diff base branch to mergebase () ()
reaction.go Another round of `db.DefaultContext` refactor () ()
reaction_test.go Another round of `db.DefaultContext` refactor () ()
review.go Fix misuse of `TxContext` () ()
review_list.go Another round of `db.DefaultContext` refactor () ()
review_test.go Fix 500 when deleting a dismissed review () ()
stopwatch.go Next round of `db.DefaultContext` refactor ()
stopwatch_test.go Next round of `db.DefaultContext` refactor ()
tracked_time.go Add context parameter to some database functions ()
tracked_time_test.go Replace 'userxx' with 'orgxx' in all test files when the user type is org ()