-
Notifications
You must be signed in to change notification settings - Fork 0
[CORRUPTED] Synthetic Benchmark PR #36023 - FIX: translation missing when using optional_* placeholder in body #12
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
base: base_pr_36023_20251204_5792
Are you sure you want to change the base?
Conversation
All the "optional_*" placeholders are meant to be used in the subject but if you were to use them in the body template you would get a "translation missing" error. This commit ensures these optional placeholders are also provided when i18ning the body even though they don't make a lot of sense. Internal ref - t/150916
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||||
User description
Benchmark PR discourse#36023
Type: Corrupted (contains bugs)
Original PR Title: FIX: translation missing when using optional_* placeholder in body
Original PR Description: All the "optional_*" placeholders are meant to be used in the subject but if you were to use them in the body template you would get a "translation missing" error.
This commit ensures these optional placeholders are also provided when i18ning the body even though they don't make a lot of sense.
Internal ref - t/150916
Original PR URL: discourse#36023
PR Type
Bug fix, Enhancement
Description
Fix translation missing errors when using optional_* placeholders in email body templates
Extract category and tags formatting into reusable helper methods
Ensure optional placeholders are provided to body template i18n calls
Add comprehensive test coverage for optional placeholders in body templates
Diagram Walkthrough
File Walkthrough
message_builder.rb
Extract formatting helpers and fix optional placeholders in bodylib/email/message_builder.rb
format_categoryandformat_tagshelper methodsreadability
message_builder_spec.rb
Update body template test expectationsspec/lib/email/message_builder_spec.rb
template i18n calls
are merged into template args
user_notifications_spec.rb
Add tests for optional placeholders in body templatesspec/mailers/user_notifications_spec.rb
render correctly in custom body templates
placeholders in body