-
- Downloads
Destroy repo mirrors instead of disabling them
It is important to destroy data related to repo mirrors when they are disabled. Use `_destroy` nested attribute instead of `enabled` for push mirrors. Call `remove_import_data` after saving a project if its pull mirror is disabled.
Showing
- app/assets/javascripts/mirrors/mirror_repos.js 1 addition, 1 deletionapp/assets/javascripts/mirrors/mirror_repos.js
- app/assets/javascripts/mirrors/ssh_mirror.js 1 addition, 113 deletionsapp/assets/javascripts/mirrors/ssh_mirror.js
- app/controllers/projects/mirrors_controller.rb 1 addition, 0 deletionsapp/controllers/projects/mirrors_controller.rb
- app/views/projects/mirrors/_authentication_method.html.haml 0 additions, 21 deletionsapp/views/projects/mirrors/_authentication_method.html.haml
- app/views/projects/mirrors/_mirror_repos_push.html.haml 1 addition, 1 deletionapp/views/projects/mirrors/_mirror_repos_push.html.haml
- app/views/projects/mirrors/_ssh_host_keys.html.haml 1 addition, 1 deletionapp/views/projects/mirrors/_ssh_host_keys.html.haml
- changelogs/unreleased/ce-its-simple-just-destroy-the-mirrors.yml 5 additions, 0 deletions...ogs/unreleased/ce-its-simple-just-destroy-the-mirrors.yml
- locale/gitlab.pot 0 additions, 12 deletionslocale/gitlab.pot
- spec/features/projects/settings/repository_settings_spec.rb 19 additions, 0 deletionsspec/features/projects/settings/repository_settings_spec.rb
Please register or sign in to comment