0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-02-21 00:34:26 +01:00
gitea/routers/api/v1/repo
Gusted 076eaad743
Improve dashboard's repo list performance (#18963)
* Improve dashboard's repo list performance

- Avoid a lot of database lookups for all the repo's, by adding a
undocumented "minimal" mode for this specific task, which returns the
data that's only needed by this list which doesn't require any database
lookups.
- Makes fetching these list faster.
- Less CPU overhead when a user visits home page.

* Refactor javascript code + fix Fork icon

- Use async in the function so we can use `await`.
- Remove `archivedFilter` check for count, as it doesn't make sense to
  show the count of repos when you can't even see them(as they are
  filited away).

* Add `count_only`

* Remove uncessary code

* Improve comment

Co-authored-by: delvh <dev.lh@web.de>

* Update web_src/js/components/DashboardRepoList.js

Co-authored-by: delvh <dev.lh@web.de>

* Update web_src/js/components/DashboardRepoList.js

Co-authored-by: delvh <dev.lh@web.de>

* By default apply minimal mode

* Remove `minimal` paramater

* Refactor count header

* Simplify init

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>

Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: zeripath <art27@cantab.net>
2022-04-26 16:34:30 -04:00
..
blob.go RepoAssignment ensure to close before overwrite (#19449) 2022-04-21 17:17:57 +02:00
branch.go
collaborators.go
commits.go Pass gitRepo down to GetRawDiff, since its used for main repo and wiki (#19461) 2022-04-25 20:45:18 +02:00
file.go RepoAssignment ensure to close before overwrite (#19449) 2022-04-21 17:17:57 +02:00
fork.go
git_hook.go
git_ref.go
hook_test.go
hook.go RepoAssignment ensure to close before overwrite (#19449) 2022-04-21 17:17:57 +02:00
issue_comment.go
issue_label.go
issue_reaction.go
issue_stopwatch.go
issue_subscription.go
issue_tracked_time.go
issue.go User specific repoID or xorm builder conditions for issue search (#19475) 2022-04-25 16:06:24 +02:00
key.go
label.go
language.go
main_test.go Use queue instead of memory queue in webhook send service (#19390) 2022-04-25 20:03:01 +02:00
migrate.go Document 409 error returned by repos/migrate api (#19376) 2022-04-12 16:13:07 +08:00
milestone.go
mirror.go
notes.go RepoAssignment ensure to close before overwrite (#19449) 2022-04-21 17:17:57 +02:00
patch.go
pull_review.go
pull.go
release_attachment.go
release_tags.go
release.go
repo_test.go
repo.go Improve dashboard's repo list performance (#18963) 2022-04-26 16:34:30 -04:00
star.go
status.go
subscriber.go
tag.go
teams.go
topic.go
transfer.go Fix logging of Transfer API (#19456) 2022-04-22 00:05:53 +08:00
tree.go
wiki.go