gitea/routers/web/repo
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
..
activity.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
attachment.go Read expected buffer size (#17409) (#17430) 2021-10-25 17:46:56 +01:00
blame.go Stop double encoding blame commit messages (#17498) (#17500) 2021-10-31 17:46:51 +08:00
branch.go Fixed commit count (#17698) (#17790) 2021-11-26 00:21:56 +01:00
commit.go Fixed commit count (#17698) (#17790) 2021-11-26 00:21:56 +01:00
compare.go Fix CSV render error (#17406) (#17431) 2021-10-25 18:31:15 +01:00
download.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
editor_test.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
editor.go Read expected buffer size (#17409) (#17430) 2021-10-25 17:46:56 +01:00
http_test.go Fix http path bug (#16117) 2021-06-09 14:53:12 +02:00
http.go Fix various documentation, user-facing, and source comment typos (#16367) 2021-07-08 13:38:13 +02:00
issue_dependency.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
issue_label_test.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
issue_label.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02: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 Refactor routers directory (#15800) 2021-06-09 01:33:54 +02: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
issue.go Fix bug on detect issue/comment writer (#17592) 2021-11-09 16:00:40 +08:00
lfs.go Read expected buffer size (#17409) (#17430) 2021-10-25 17:46:56 +01:00
main_test.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
middlewares.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
migrate.go Add push to remote mirror repository (#15157) 2021-06-14 19:20:43 +02:00
milestone.go In Render tolerate not being passed a context (#16842) (#16858) 2021-08-29 15:25:45 +01:00
projects_test.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
projects.go In Render tolerate not being passed a context (#16842) (#16858) 2021-08-29 15:25:45 +01:00
pull_review.go Add attachments for PR reviews (#16075) 2021-06-14 21:12:33 -04:00
pull.go Fix stange behavior of DownloadPullDiffOrPatch in incorect index (#17223) (#17227) 2021-10-05 20:16:22 +02:00
release_test.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
release.go In Render tolerate not being passed a context (#16842) (#16858) 2021-08-29 15:25:45 +01:00
repo.go Ensure that git repository is closed before transfer (#18049) (#18057) 2021-12-21 18:27:46 +00:00
search.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
setting_protected_branch.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
setting.go Decrement Fork Num when converting from Fork (#17035) (#17046) 2021-09-15 10:05:47 +08:00
settings_test.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
tag.go Add tag protection (#15629) 2021-06-25 16:28:55 +02:00
topic.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
view.go Correctly handle failed migrations (#17575) (#18099) 2021-12-25 15:45:51 +00:00
webhook.go Implemented head_commit for webhooks (#16282) 2021-06-29 15:34:03 +02:00
wiki_test.go Add TestPrepareWikiFileName (#16487) (#16498) 2021-07-21 03:37:00 +01:00
wiki.go Ensure wiki repos are all closed (#16886) (#16888) 2021-08-30 23:00:45 +02:00