gitea/routers/web/repo
zeripath bab95c3a86
Correctly handle failed migrations (#17575)
* 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>
2021-11-13 19:28:50 +08:00
..
activity.go Move unit into models/unit/ (#17576) 2021-11-09 20:57:58 +01:00
attachment.go Add repo_id for attachment (#16958) 2021-09-08 17:19:30 +02:00
blame.go Stop double encoding blame commit messages (#17498) 2021-10-31 10:25:24 +02:00
branch.go Move unit into models/unit/ (#17576) 2021-11-09 20:57:58 +01:00
commit.go Add buttons to allow loading of incomplete diffs (#16829) 2021-10-15 17:05:33 +01:00
compare.go Move unit into models/unit/ (#17576) 2021-11-09 20:57:58 +01:00
download.go Download lfs in git and web workflow from minio/s3 directly (#16731) 2021-08-21 20:22:06 +02:00
editor.go Move unit into models/unit/ (#17576) 2021-11-09 20:57:58 +01:00
editor_test.go Decouple unit test code from business code (#17623) 2021-11-12 22:36:47 +08:00
http.go Move EmailAddress & UserRedirect into models/user/ (#17607) 2021-11-11 15:03:30 +08:00
http_test.go Fix http path bug (#16117) 2021-06-09 14:53:12 +02:00
issue.go Refactor commentTags functionality (#17558) 2021-11-11 14:29:30 +08:00
issue_content_history.go Move unit into models/unit/ (#17576) 2021-11-09 20:57:58 +01:00
issue_dependency.go Rename context.Query to context.Form (#16562) 2021-07-29 03:42:15 +02:00
issue_label.go Move login related structs and functions to models/login (#17093) 2021-09-24 19:32:56 +08:00
issue_label_test.go Decouple unit test code from business code (#17623) 2021-11-12 22:36:47 +08:00
issue_lock.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
issue_stopwatch.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
issue_test.go Hide label comments if labels were added and removed immediately (#17455) 2021-11-04 22:51:30 +08:00
issue_timetrack.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
issue_watch.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
lfs.go Read expected buffer size (#17409) 2021-10-24 22:12:43 +01:00
main_test.go Decouple unit test code from business code (#17623) 2021-11-12 22:36:47 +08:00
middlewares.go Rename ctx.Form() to ctx.FormString() and move code into own file (#16571) 2021-08-11 02:31:13 +02:00
migrate.go Make mirror feature more configurable (#16957) 2021-09-07 17:49:36 +02:00
milestone.go Move login related structs and functions to models/login (#17093) 2021-09-24 19:32:56 +08:00
projects.go Move unit into models/unit/ (#17576) 2021-11-09 20:57:58 +01:00
projects_test.go Decouple unit test code from business code (#17623) 2021-11-12 22:36:47 +08:00
pull.go Move unit into models/unit/ (#17576) 2021-11-09 20:57:58 +01:00
pull_review.go Rename ctx.Form() to ctx.FormString() and move code into own file (#16571) 2021-08-11 02:31:13 +02:00
release.go Move unit into models/unit/ (#17576) 2021-11-09 20:57:58 +01:00
release_test.go Decouple unit test code from business code (#17623) 2021-11-12 22:36:47 +08:00
repo.go Move unit into models/unit/ (#17576) 2021-11-09 20:57:58 +01:00
search.go Related refactors to ctx.FormX functions (#16567) 2021-08-11 18:08:52 +03:00
setting.go Move unit into models/unit/ (#17576) 2021-11-09 20:57:58 +01:00
setting_protected_branch.go Add a simple way to rename branch like gh (#15870) 2021-10-08 19:03:04 +02:00
settings_test.go Decouple unit test code from business code (#17623) 2021-11-12 22:36:47 +08:00
tag.go Rename context.Query to context.Form (#16562) 2021-07-29 03:42:15 +02:00
topic.go Related refactors to ctx.FormX functions (#16567) 2021-08-11 18:08:52 +03:00
view.go Correctly handle failed migrations (#17575) 2021-11-13 19:28:50 +08:00
webhook.go Move webhook into models/webhook/ (#17579) 2021-11-10 13:13:16 +08:00
wiki.go Move unit into models/unit/ (#17576) 2021-11-09 20:57:58 +01:00
wiki_test.go Decouple unit test code from business code (#17623) 2021-11-12 22:36:47 +08:00