-
Notifications
You must be signed in to change notification settings - Fork 13k
fix: Resend welcome email without placeholders #36772
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
Conversation
|
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
🦋 Changeset detectedLatest commit: 2091885 The changes in this PR will be included in the next version bump. This PR includes changesets to release 39 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #36772 +/- ##
========================================
Coverage 66.13% 66.14%
========================================
Files 3303 3303
Lines 110994 110994
Branches 21047 21050 +3
========================================
+ Hits 73410 73417 +7
+ Misses 34911 34904 -7
Partials 2673 2673
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
…t/Rocket.Chat into fix/welcome-email-placeholders
dougfabris
left a comment
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.
What do you think about adding tests for these errors you introduced for the users.sendWelcomeEmail route
We already had an API test for it |
dougfabris
left a comment
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.
Looks good to me!
abhinavkrin
left a comment
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.
LGTM!
Proposed changes (including videos or screenshots)
This PR fixes an issue with the welcome email resend functionality, ensuring that no unresolved placeholders (e.g., [name], [email]) are left in the email content. When a welcome email is resent, all placeholders are now properly replaced or removed.
Previously, resending the welcome email could result in messages containing raw placeholders, leading to confusing or unprofessional communication with users.
Issue(s)
Steps to test or reproduce
Trigger the welcome email flow by creating a new user.
Resend the welcome email from the admin panel.
Verify that the email contains no literal placeholders (all variables should be correctly filled in or omitted).
Further comments
SUP-838