]> source.dussan.org Git - gitea.git/commit
Move migrating repository from frontend to backend (#6200)
authorLunny Xiao <xiaolunwen@gmail.com>
Sun, 13 Oct 2019 13:23:14 +0000 (21:23 +0800)
committerGitHub <noreply@github.com>
Sun, 13 Oct 2019 13:23:14 +0000 (21:23 +0800)
commitf2a3abc683ad4b2177b7c7c6160a2c0b4316120a
tree3b92f34b9bb9a015072f511dc5cf6340af18eda5
parent0a96e59884ca5c4fedc8c3d166d97f35b245ad6e
Move migrating repository from frontend to backend (#6200)

* move migrating to backend

* add loading image when migrating and fix tests

* fix format

* fix lint

* add redis task queue support and improve docs

* add redis vendor

* fix vet

* add database migrations and fix app.ini sample

* add comments for task section on app.ini.sample

* Update models/migrations/v84.go

Co-Authored-By: lunny <xiaolunwen@gmail.com>
* Update models/repo.go

Co-Authored-By: lunny <xiaolunwen@gmail.com>
* move migrating to backend

* add loading image when migrating and fix tests

* fix fmt

* add redis task queue support and improve docs

* fix fixtures

* fix fixtures

* fix duplicate function on index.js

* fix tests

* rename repository statuses

* check if repository is being create when SSH request

* fix lint

* fix template

* some improvements

* fix template

* unified migrate options

* fix lint

* fix loading page

* refactor

* When gitea restart, don't restart the running tasks because we may have servel gitea instances, that may break the migration

* fix js

* Update models/repo.go

Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Update docs/content/doc/advanced/config-cheat-sheet.en-us.md

Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* fix tests

* rename ErrTaskIsNotExist to ErrTaskDoesNotExist

* delete release after add one on tests to make it run happy

* fix tests

* fix tests

* improve codes

* fix lint

* fix lint

* fix migrations
37 files changed:
.gitignore
custom/conf/app.ini.sample
docs/content/doc/advanced/config-cheat-sheet.en-us.md
docs/content/doc/advanced/config-cheat-sheet.zh-cn.md
models/fixtures/repository.yml
models/migrations/migrations.go
models/migrations/v99.go [new file with mode: 0644]
models/models.go
models/repo.go
models/task.go [new file with mode: 0644]
modules/context/repo.go
modules/migrations/base/options.go
modules/migrations/gitea.go
modules/migrations/gitea_test.go
modules/migrations/github.go
modules/migrations/migrate.go
modules/setting/setting.go
modules/setting/task.go [new file with mode: 0644]
modules/structs/repo.go
modules/structs/task.go [new file with mode: 0644]
modules/task/migrate.go [new file with mode: 0644]
modules/task/queue.go [new file with mode: 0644]
modules/task/queue_channel.go [new file with mode: 0644]
modules/task/queue_redis.go [new file with mode: 0644]
modules/task/task.go [new file with mode: 0644]
options/locale/locale_en-US.ini
public/img/loading.png [new file with mode: 0644]
public/js/index.js
routers/api/v1/repo/repo.go
routers/init.go
routers/private/serv.go
routers/repo/repo.go
routers/repo/view.go
routers/routes/routes.go
services/mirror/mirror_test.go
templates/repo/header.tmpl
templates/repo/migrating.tmpl [new file with mode: 0644]