Include review summary in new review email
When a review is created we send an email to notify users and we want to include the review summary generated by AI. To do that, we delay the sending of the `new_review_email` by 2 minutes as we make a request to AI to generate the review summary asynchronously. If after 2 minutes the review summary is still not available for a specific review, then the new review email will be sent without it. We are still generating review summary behind `automatically_summarize_mr_review` feature flag.
显示
- app/mailers/emails/reviews.rb 7 个添加, 8 个删除app/mailers/emails/reviews.rb
- app/mailers/previews/notify_preview.rb 7 个添加, 0 个删除app/mailers/previews/notify_preview.rb
- app/models/review.rb 2 个添加, 0 个删除app/models/review.rb
- app/services/notification_service.rb 9 个添加, 1 个删除app/services/notification_service.rb
- app/views/notify/new_review_email.html.haml 1 个添加, 0 个删除app/views/notify/new_review_email.html.haml
- app/views/notify/new_review_email.text.erb 2 个添加, 0 个删除app/views/notify/new_review_email.text.erb
- ee/app/models/ee/review.rb 11 个添加, 0 个删除ee/app/models/ee/review.rb
- ee/app/services/ee/notification_service.rb 12 个添加, 0 个删除ee/app/services/ee/notification_service.rb
- ee/app/views/notify/_review_summary.html.haml 7 个添加, 0 个删除ee/app/views/notify/_review_summary.html.haml
- ee/app/views/notify/_review_summary.text.erb 8 个添加, 0 个删除ee/app/views/notify/_review_summary.text.erb
- ee/spec/mailers/notify_spec.rb 11 个添加, 0 个删除ee/spec/mailers/notify_spec.rb
- ee/spec/models/ee/review_spec.rb 9 个添加, 0 个删除ee/spec/models/ee/review_spec.rb
- ee/spec/services/ee/notification_service_spec.rb 29 个添加, 0 个删除ee/spec/services/ee/notification_service_spec.rb
- locale/gitlab.pot 3 个添加, 0 个删除locale/gitlab.pot
- spec/mailers/previews_spec.rb 1 个添加, 0 个删除spec/mailers/previews_spec.rb
加载中
想要评论请 注册 或 登录