1
1
mirror of https://github.com/go-gitea/gitea synced 2024-11-01 07:44:25 +00:00
gitea/routers/web/user
zeripath 012e45a4c1
Correctly handle failed migrations (#17575) (#18099)
* 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 #17571

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 (#17598 et al) (#17668) 2021-11-16 20:38:49 +00:00
auth_openid.go Reset Session ID on login (#18018) (#18041) 2021-12-20 20:06:54 +00:00
auth.go Reset locale on login (#17734) (#18100) 2021-12-25 21:31:23 +08:00
avatar.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
home_test.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
home.go Correctly return the number of Repositories for Organizations (#16807) (#16911) 2021-09-01 19:20:35 +02:00
main_test.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
notification.go Update notification table with only latest data (#16445) (#16469) 2021-07-17 19:05:59 +02:00
oauth_test.go Fix wrong user in OpenID response (#16736) (#16741) 2021-08-20 00:26:44 +03:00
oauth.go Fix wrong user in OpenID response (#16736) (#16741) 2021-08-20 00:26:44 +03:00
profile.go Move POST /{username}/action/{action} to simply POST /{username} (#18045) (#18046) 2021-12-20 15:53:08 -05:00
task.go Correctly handle failed migrations (#17575) (#18099) 2021-12-25 15:45:51 +00:00