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/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>
3 years ago
..
blob.go RepoAssignment ensure to close before overwrite (#19449) 3 years ago
branch.go Move organization related structs into sub package (#18518) 3 years ago
collaborators.go Renamed ctx.User to ctx.Doer. (#19161) 3 years ago
commits.go Pass gitRepo down to GetRawDiff, since its used for main repo and wiki (#19461) 3 years ago
file.go RepoAssignment ensure to close before overwrite (#19449) 3 years ago
fork.go Make git.OpenRepository accept Context (#19260) 3 years ago
git_hook.go Move macaron to chi (#14293) 4 years ago
git_ref.go Multiple Escaping Improvements (#17551) 3 years ago
hook.go RepoAssignment ensure to close before overwrite (#19449) 3 years ago
hook_test.go Decouple unit test, remove intermediate `unittestbridge` package (#17662) 3 years ago
issue.go User specific repoID or xorm builder conditions for issue search (#19475) 3 years ago
issue_comment.go Never use /api/v1 from Gitea UI Pages (#19318) 3 years ago
issue_label.go Renamed ctx.User to ctx.Doer. (#19161) 3 years ago
issue_reaction.go Move reaction to models/issues/ (#19264) 3 years ago
issue_stopwatch.go Use `ctx` instead of `db.DefaultContext` in some packages(routers/services/modules) (#19163) 3 years ago
issue_subscription.go Renamed ctx.User to ctx.Doer. (#19161) 3 years ago
issue_tracked_time.go Never use /api/v1 from Gitea UI Pages (#19318) 3 years ago
key.go Use `ctx` instead of `db.DefaultContext` in some packages(routers/services/modules) (#19163) 3 years ago
label.go Move init repository related functions to modules (#19159) 3 years ago
language.go Move repository model into models/repo (#17933) 3 years ago
main_test.go Use queue instead of memory queue in webhook send service (#19390) 3 years ago
migrate.go Document 409 error returned by repos/migrate api (#19376) 3 years ago
milestone.go Move milestone to models/issues/ (#19278) 3 years ago
mirror.go An attempt to sync a non-mirror repo must give 400 (Bad Request) (#19300) 3 years ago
notes.go RepoAssignment ensure to close before overwrite (#19449) 3 years ago
patch.go Renamed ctx.User to ctx.Doer. (#19161) 3 years ago
pull.go Move milestone to models/issues/ (#19278) 3 years ago
pull_review.go Move milestone to models/issues/ (#19278) 3 years ago
release.go Renamed ctx.User to ctx.Doer. (#19161) 3 years ago
release_attachment.go Renamed ctx.User to ctx.Doer. (#19161) 3 years ago
release_tags.go Renamed ctx.User to ctx.Doer. (#19161) 3 years ago
repo.go Improve dashboard's repo list performance (#18963) 3 years ago
repo_test.go Renamed ctx.User to ctx.Doer. (#19161) 3 years ago
star.go Renamed ctx.User to ctx.Doer. (#19161) 3 years ago
status.go Renamed ctx.User to ctx.Doer. (#19161) 3 years ago
subscriber.go Renamed ctx.User to ctx.Doer. (#19161) 3 years ago
tag.go Renamed ctx.User to ctx.Doer. (#19161) 3 years ago
teams.go Move organization related structs into sub package (#18518) 3 years ago
topic.go Some repository refactors (#17950) 3 years ago
transfer.go Fix logging of Transfer API (#19456) 3 years ago
tree.go Propagate context and ensure git commands run in request context (#17868) 3 years ago
wiki.go Make git.OpenRepository accept Context (#19260) 3 years ago