1
0
Fork 0
forked from NYANDEV/forgejo
forgejo/routers/web/user
zeripath 012e45a4c1
Correctly handle failed migrations () ()
* Correctly handle failed migrations

There is a bug in handling failed migrations whereby the migration task gets decoupled
from the migration repository. This leads to a failure of the task to get deleted with
the repository and also leads to the migration failed page resulting in a ISE.

This PR removes the zeroing out of the task id from the migration but also makes
the migration handler tolerate missing tasks much nicer.

Fix 

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2021-12-25 15:45:51 +00:00
..
setting Fix golangci-lint warnings ( et al) () 2021-11-16 20:38:49 +00:00
auth.go Reset locale on login () () 2021-12-25 21:31:23 +08:00
auth_openid.go Reset Session ID on login () () 2021-12-20 20:06:54 +00:00
avatar.go Refactor routers directory () 2021-06-09 01:33:54 +02:00
home.go Correctly return the number of Repositories for Organizations () () 2021-09-01 19:20:35 +02:00
home_test.go Refactor routers directory () 2021-06-09 01:33:54 +02:00
main_test.go Refactor routers directory () 2021-06-09 01:33:54 +02:00
notification.go Update notification table with only latest data () () 2021-07-17 19:05:59 +02:00
oauth.go Fix wrong user in OpenID response () () 2021-08-20 00:26:44 +03:00
oauth_test.go Fix wrong user in OpenID response () () 2021-08-20 00:26:44 +03:00
profile.go Move POST /{username}/action/{action} to simply POST /{username} () () 2021-12-20 15:53:08 -05:00
task.go Correctly handle failed migrations () () 2021-12-25 15:45:51 +00:00