Fix: 新規登録確認メールでユーザー名が空欄だと「様」だけ表示される不具合を修正 - #329
Merged
Conversation
Owner
Author
|
@claude |
|
Claude finished @ippei-shimizu's task in 1m 35s —— View job コードレビュー結果
結論ロジック・テンプレート修正ともに問題なし。メール送信でエラーになる要因は見当たらず、デグレも確認できませんでした。LGTMです。 確認したポイント
軽微な指摘(Nit・任意)
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
nameが未設定のため本文冒頭が「様」だけになっていた不具合を修正EmailAuthenticationMailer#send_when_signupで@nameをそのまま埋め込む代わりに@greetingを組み立て、user.name.presenceが無い場合は「BUZZ BASEにご登録いただきありがとうございます」という汎用的な文言にフォールバックするFixes
Fixes ippei-shimizu/buzzbase#449
Test plan
spec/mailers/email_authentication_mailer_spec.rbを新規作成し、name有無それぞれのケースでtext_part/html_partの本文を検証bundle exec rspec spec/mailers/email_authentication_mailer_spec.rb spec/requests/api/v1/auth/registrations_spec.rb全て成功bundle exec rubocop変更ファイルすべて指摘なし🤖 Generated with Claude Code