0
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-01-23 17:40:11 +01:00
forgejo/models
Gusted d745780014
Add Num{Issues,Pulls} stats checks () ()
Backport 

Currently `repository.Num{Issues,Pulls}` weren't checked and could
become out-of-consistency. Adds these two checks to `CheckRepoStats`.

Fix incorrect SQL query for `repository.NumClosedPulls`, the check
should be for `repo_num_pulls`.

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2022-10-12 14:47:48 +08:00
..
admin Use a struct as test options () 2022-04-14 21:58:21 +08:00
appstate
asymkey Pad GPG Key ID with preceding zeroes () () 2022-08-22 19:35:18 +01:00
auth Ignore port for OAuth2 loopback redirect URIs () () 2022-10-08 09:52:35 +08:00
avatars format with gofumpt () 2022-01-20 18:46:10 +01:00
db Add migrate repo archiver and packages storage support on command line () () 2022-08-18 09:27:56 +08:00
fixtures Fix SQL Query for SearchTeam () () 2022-08-21 19:31:51 +01:00
foreignreference Store the foreign ID of issues during migration () 2022-03-17 18:08:35 +01:00
git Add migrate repo archiver and packages storage support on command line () () 2022-08-18 09:27:56 +08:00
issues Fix reaction of issues () () 2022-09-18 12:04:09 +08:00
migrations Add another index for Action table on postgres () () 2022-09-04 16:11:02 +01:00
organization Fix SQL Query for SearchTeam () () 2022-08-21 19:31:51 +01:00
packages Fix delete user missed some comments () () 2022-09-06 06:48:57 +08:00
perm Store read access in access for team repo's () () 2022-07-09 20:01:44 +02:00
project Use correct count for NumOpenIssues () 2022-06-16 10:51:34 +08:00
pull Delete related PullAutoMerge and ReviewState on User/Repo Deletion () 2022-05-08 15:46:34 +02:00
repo Fix hard-coded timeout and error panic in API archive download endpoint () () 2022-09-06 07:54:47 +01:00
unit Fix incorrect translation key () 2022-05-19 09:59:28 +08:00
unittest Use git.HOME_PATH for Git HOME directory () () 2022-07-08 21:44:36 +08:00
user Fix limited user cannot view himself's profile () 2022-09-20 16:00:46 +08:00
webhook Check webhooks slice length before calling xorm () () 2022-08-12 11:36:45 +03:00
action.go Use absolute links in feeds () () 2022-09-26 13:49:22 -04:00
action_list.go Move almost all functions' parameter db.Engine to context.Context () 2022-05-20 22:08:52 +08:00
action_test.go Use absolute links in feeds () () 2022-09-26 13:49:22 -04:00
consistency.go Move issues related files into models/issues () 2022-06-13 17:37:59 +08:00
error.go Move issues related files into models/issues () 2022-06-13 17:37:59 +08:00
fixture_generation.go Move access and repo permission to models/perm/access () 2022-05-11 12:09:36 +02:00
fixture_test.go
main_test.go Move issues related files into models/issues () 2022-06-13 17:37:59 +08:00
migrate.go Move issues related files into models/issues () 2022-06-13 17:37:59 +08:00
migrate_test.go Move issues related files into models/issues () 2022-06-13 17:37:59 +08:00
notification.go Move issues related files into models/issues () 2022-06-13 17:37:59 +08:00
notification_test.go Move issues related files into models/issues () 2022-06-13 17:37:59 +08:00
org.go In code search, get code unit accessible repos in one (main) query () 2022-06-16 02:24:10 +03:00
org_team.go Move issues related files into models/issues () 2022-06-13 17:37:59 +08:00
org_team_test.go Move access and repo permission to models/perm/access () 2022-05-11 12:09:36 +02:00
org_test.go Move tests as seperate sub packages to reduce duplicated file names () 2022-06-15 09:02:00 +02:00
release.go Tag list should include draft releases with existing tags () () 2022-10-07 18:59:42 +08:00
repo.go Add Num{Issues,Pulls} stats checks () () 2022-10-12 14:47:48 +08:00
repo_activity.go Move issues related files into models/issues () 2022-06-13 17:37:59 +08:00
repo_collaboration.go Move issues related files into models/issues () 2022-06-13 17:37:59 +08:00
repo_collaboration_test.go Move tests as seperate sub packages to reduce duplicated file names () 2022-06-15 09:02:00 +02:00
repo_test.go Move tests as seperate sub packages to reduce duplicated file names () 2022-06-15 09:02:00 +02:00
repo_transfer.go Move issues related files into models/issues () 2022-06-13 17:37:59 +08:00
repo_transfer_test.go Move repository model into models/repo () 2021-12-10 09:27:50 +08:00
statistic.go Move issues related files into models/issues () 2022-06-13 17:37:59 +08:00
task.go Move almost all functions' parameter db.Engine to context.Context () 2022-05-20 22:08:52 +08:00
token.go Use base32 for 2FA scratch token () 2022-01-26 12:10:10 +08:00
token_test.go
upload.go
user.go Fix delete user missed some comments () () 2022-09-06 06:48:57 +08:00
user_heatmap.go Move organization related structs into sub package () 2022-03-29 14:29:02 +08:00
user_heatmap_test.go RSS/Atom support for Repos () 2022-03-13 17:40:47 +01:00