Add emails notification for RewriteHistory worker
Contributes to https://gitlab.com/gitlab-org/gitlab/-/issues/483085 **Problem** Synchrounous rewriting of repository history is too slow. We are going to make it asynchronous instead. But it's currently missing a notification channel for users to receive updates about the processing status. **Solution** Define email templates that is going to be called from RewriteHistory Sidekiq job. Changelog: other
显示
- app/mailers/emails/projects.rb 19 个添加, 0 个删除app/mailers/emails/projects.rb
- app/mailers/previews/notify_preview.rb 8 个添加, 0 个删除app/mailers/previews/notify_preview.rb
- app/services/notification_service.rb 12 个添加, 0 个删除app/services/notification_service.rb
- app/views/notify/repository_rewrite_history_failure_email.html.haml 4 个添加, 0 个删除...notify/repository_rewrite_history_failure_email.html.haml
- app/views/notify/repository_rewrite_history_failure_email.text.erb 3 个添加, 0 个删除.../notify/repository_rewrite_history_failure_email.text.erb
- app/views/notify/repository_rewrite_history_success_email.html.haml 4 个添加, 0 个删除...notify/repository_rewrite_history_success_email.html.haml
- app/views/notify/repository_rewrite_history_success_email.text.erb 3 个添加, 0 个删除.../notify/repository_rewrite_history_success_email.text.erb
- locale/gitlab.pot 9 个添加, 0 个删除locale/gitlab.pot
- spec/mailers/emails/projects_spec.rb 40 个添加, 0 个删除spec/mailers/emails/projects_spec.rb
- spec/services/notification_service_spec.rb 30 个添加, 0 个删除spec/services/notification_service_spec.rb
加载中
想要评论请 注册 或 登录