0
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-02-18 21:40:08 +01:00
forgejo/models
wxiaoguang 520eb57d76
Use a separate admin page to show global stats, remove actions stat ()
Before, Gitea shows the database table stats on the `admin dashboard`
page.

It has some problems:

* `count(*)` is quite heavy. If tables have many records, this blocks
loading the admin page blocks for a long time
* Some users had even reported issues that they can't visit their admin
page because this page causes blocking or `50x error (reverse proxy
timeout)`
* The `actions` stat is not useful. The table is simply too large. Does
it really matter if it contains 1,000,000 rows or 9,999,999 rows?
* The translation `admin.dashboard.statistic_info` is difficult to
maintain.

So, this PR uses a separate page to show the stats and removes the
`actions` stat.


![image](https://github.com/go-gitea/gitea/assets/2114189/babf7c61-b93b-4a62-bfaa-22983636427e)

## ⚠️ BREAKING

The `actions` Prometheus metrics collector has been removed for the
reasons mentioned beforehand.
Please do not rely on its output anymore.
2023-06-03 22:03:41 +08:00
..
actions Add user level action runners () 2023-05-31 09:39:54 +08:00
activities Use a separate admin page to show global stats, remove actions stat () 2023-06-03 22:03:41 +08:00
admin Make repo migration cancelable and fix various bugs () 2023-05-11 08:25:46 +00:00
asymkey Merge setting.InitXXX into one function with options () 2023-05-04 11:55:35 +08:00
auth Fix 500 error if there is a name conflict when edit authentication source () 2023-03-31 22:32:18 +08:00
avatars
db Use a separate admin page to show global stats, remove actions stat () 2023-06-03 22:03:41 +08:00
dbfs Merge setting.InitXXX into one function with options () 2023-05-04 11:55:35 +08:00
fixtures Implement actions artifacts () 2023-05-19 21:37:57 +08:00
git Fix missed table name on iterate lfs meta objects () 2023-05-17 23:51:22 +08:00
issues Followup to pinned Issues () 2023-05-30 15:26:51 +00:00
migrations Add the ability to pin Issues () 2023-05-25 15:17:19 +02:00
organization Add missing test case and fix typo in tests () 2023-05-24 21:06:04 +02:00
packages Add CRAN package registry () 2023-05-22 10:57:49 +08:00
perm Rewrite logger system () 2023-05-21 22:35:11 +00:00
project
pull
repo Rewrite logger system () 2023-05-21 22:35:11 +00:00
secret Respect original content when creating secrets () 2023-05-16 14:49:40 +08:00
shared/types Display owner of a runner as a tooltip instead of static text () 2023-05-12 08:43:27 +00:00
system
unit Rewrite logger system () 2023-05-21 22:35:11 +00:00
unittest Test query must have "order by" explicitly to avoid unstable results () 2023-05-29 03:20:57 +00:00
user Show bot label next to username when rendering autor link if the user is a bot () 2023-05-26 18:58:11 +02:00
webhook New webhook trigger for receiving Pull Request review requests () 2023-05-24 22:06:27 -04:00
error.go
fixture_generation.go
fixture_test.go
main_test.go Merge setting.InitXXX into one function with options () 2023-05-04 11:55:35 +08:00
migrate.go
migrate_test.go
org.go
org_team.go Remove org users who belong to no teams () 2023-04-24 15:52:38 -04:00
org_team_test.go
org_test.go
repo.go Implement actions artifacts () 2023-05-19 21:37:57 +08:00
repo_collaboration.go
repo_collaboration_test.go
repo_test.go
repo_transfer.go Fix unclear IsRepositoryExist logic () 2023-04-28 14:14:26 -04:00
repo_transfer_test.go