-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
最初の日報投稿通知をactive_delivery化する #5931
最初の日報投稿通知をactive_delivery化する #5931
Conversation
b324db9
to
be871eb
Compare
be871eb
to
d0f70dc
Compare
dcd7639
to
2d5a4cb
Compare
@dowdiness |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
レビュー依頼ありがとうございますー!
のんびりしていたら返信するのが遅くなってしまいました。すいません。
使われなくなったメソッドとテストを消していなくて追加のテストが必要なことと、バグが見つかったので対応が必要なことを書きました。
確認よろしくお願いします。
= render '/notification_mailer/notification_mailer_template', title: "#{@report.user.login_name}さんのはじめての日報です!", link_url: notification_url(@notification), link_text: 'この日報へ' do | ||
p #{@report.user.login_name}さんのはじめての日報です。歓迎のコメントを投稿しよう!! | ||
div(style='border-top: solid 1px #ccc; height: 0;') | ||
= md2html(@report.description) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
コレも上と同じようにこのslimが作られた後はNotificationMailerの方のfirst_report.html.slimはもう使わないと思うので消してしまったほうが良いと思います。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ご指摘ありがとうございます:pray:
こちら対応しました!
@notification = @user.notifications.find_by(link: "/reports/#{@report.id}") | ||
mail to: @user.email, | ||
subject: "[FBC] #{@report.user.login_name}さんがはじめての日報を書きました!" | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ActivityMailerを使う場合はNotificationMailerの方のfirst_reportはもう使わないと思うので消してしまったほうが良いと思いました。
NotificationMailerの使われているnotification_mailer_previewとnotification_mailer_testにあるテストも消してしまって、ActivityMailerを使う形でactivity_mailer_previewにテストを追加したら良いと思います。
メールのプレビューの確認はhttp://localhost:3000/rails/mailers で出来ます。
それと、サイト内通知より先にメール通知が送られるとエラーになる問題があるそうなので対応したほうが良さそうです。
を確認してみてください。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dowdiness
不要なもの削除しました!
NotificationMailerの使われているnotification_mailer_previewとnotification_mailer_testにあるテストも消してしまって、ActivityMailerを使う形でactivity_mailer_previewにテストを追加したら良いと思います。
ActivityMailerのテストは追加済みです!
それと、サイト内通知より先にメール通知が送られるとエラーになる問題があるそうなので対応したほうが良さそうです。
ありがとうございます!こちらも対応しました!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dowdiness
念の為こちらリマインドです:pray:
指摘していただいた点修正しましたので、再度ご確認お願いします!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@akingo55
お疲れ様です。返信遅くなってしまいすいません。モチベーションが落ちてあまり作業できてませんでした。
サイト内通知より先にメール通知が送られるとエラーになる問題の対応は問題なさそうです👍
activity_mailer_previewにテストを追加したら良いというのが説明不足で分かりにくかったと思います。
ActivityMailerのテストが無いという意味ではなく、https://github.com/fjordllc/bootcamp/blob/main/test/mailers/previews/activity_mailer_preview.rb
にメールのプレビュー用のテストを追加したら http://localhost:3000/rails/mailers でメールのプレビューが確認出来るようになるので、テストを追加した方が良いなと思ったという意味で書きました。
遅くなって申し訳ないですが対応よろしくおねがいします🙇♂️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dowdiness
なるほど、、、!理解しました:pray:
こちらメールのプレビュー用テストを追加しましたのでご確認お願いしますmm
baf6594
64506f4
to
a1712f7
Compare
4b6e73e
to
00e7e3e
Compare
00e7e3e
to
a69c0c9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
conflictの修正をお願いします〜
41684f8
to
1a577a9
Compare
@komagata |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
conflictの修正をお願いします〜
54e6959
to
ea4951d
Compare
@komagata |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
度々すみません、conflictの修正をお願いします〜
ea4951d
to
be9029e
Compare
@komagata |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
遅れてすいません🙏
もう既にkomagataさんのレビューに進んでいて問題無いのでApproveします
@akingo55 conflictの解消をお願いします。 |
be9029e
to
df6c216
Compare
@komagata |
コメントご確認いただけましたでしょうか? |
@@ -31,7 +31,7 @@ def create_author_watch(report) | |||
|
|||
def notify_first_report(report) | |||
User.admins_and_mentors.each do |receiver| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#6504 |
Issue
概要
最初の日報投稿通知をactive_delivery化しました。
見た目の変更はありません。
変更確認方法
feature/replace-notification-first-report-to-active-delivery
をローカルに取り込むmuryou
でログインし、初日報を公開するkomagata
でログインし、通知にmuryou
ユーザーが初日報書いたことが通知されていることを確認するhttp://localhost:3000/letter_opener/
にアクセスし、メールが届いていることを確認するScreenshot
見た目の変更はありません。
変更前
変更後