Repository navigation
fix(email): make notification subject lines more informative (#3532) - #3548
Merged
Merged
Conversation
Signed-off-by: DhritiSoni4 <[email protected]>
aicam
requested changes
Jul 9, 2025
Signed-off-by: DhritiSoni4 <[email protected]>
aicam
enabled auto-merge (squash)
July 9, 2025 18:38
aicam
approved these changes
Jul 9, 2025
aicam
pushed a commit
that referenced
this pull request
Sep 12, 2025
**Description:** This PR fixes the previous implementation of enriching email subjects #3548 that aims to add the domain name in email subjects. **Problem:** The previous implementation used `ConfigFactory.load()` which reads from `application.conf` by default, but the `user-sys.domain` configuration is defined in `user-system.conf`, causing the domain retrieval to always fail and return empty strings. Documentation: https://lightbend.github.io/config/latest/api/com/typesafe/config/ConfigFactory.html **Solution:** Replaced the incorrect domain retrieval with `UserSystemConfig` which properly reads from `user-system.conf`. Closes #3720 **Email Subject Updates:** ``` "New Account Request Pending Approval" -> "New Account Request Pending Approval for [server-name]" "Account Request Received" -> "Account Request Received for [server-name]" "Your Role Has Been Updated" -> "Your Role Has Been Updated for [server-name]" ``` **Example:** <img width="1484" height="710" alt="Screenshot 2025-09-11 at 2 16 26 PM" src="https://github.com/user-attachments/assets/21f4d9cd-8642-407c-914d-51c91d6858bd" /> --------- Co-authored-by: Seongjin Yoon <[email protected]> Co-authored-by: Seongjin Yoon <[email protected]>
SarahAsad23
pushed a commit
to madisonmlin/texera
that referenced
this pull request
May 20, 2026
…3532) (apache#3548) Closes apache#3532 Make the subject of notification emails more informative Related PR #apache#3393 ### Purpose Improves email subject clarity by including the deployment domain (e.g., hub.texera.io) in user registration and role update notifications. ### Implementation Introduced a new deployment variable in EmailTemplate.scala: - Extracts the user-sys.domain from the config. - Removes http:// or https:// prefix using .replaceFirst("^https?://", ""). Updated 3 subject lines to incorporate $deployment: - Admin Notification Subject: New Account Request Pending Approval → New Account Request to $deployment Pending Approval - User Role Update Subject: Your Role Has Been Updated → Your Role Has Been Updated on $deployment - Email body update: Added $deployment in the body content for contextual clarity. ### Testing - Verified manually by simulating Account request (admin and user) and role change event using SMTP. - Confirmed subject lines and body content are correctly updated with the domain hub.texera.io.  --------- Signed-off-by: DhritiSoni4 <[email protected]>
SarahAsad23
pushed a commit
to madisonmlin/texera
that referenced
this pull request
May 20, 2026
**Description:** This PR fixes the previous implementation of enriching email subjects apache#3548 that aims to add the domain name in email subjects. **Problem:** The previous implementation used `ConfigFactory.load()` which reads from `application.conf` by default, but the `user-sys.domain` configuration is defined in `user-system.conf`, causing the domain retrieval to always fail and return empty strings. Documentation: https://lightbend.github.io/config/latest/api/com/typesafe/config/ConfigFactory.html **Solution:** Replaced the incorrect domain retrieval with `UserSystemConfig` which properly reads from `user-system.conf`. Closes apache#3720 **Email Subject Updates:** ``` "New Account Request Pending Approval" -> "New Account Request Pending Approval for [server-name]" "Account Request Received" -> "Account Request Received for [server-name]" "Your Role Has Been Updated" -> "Your Role Has Been Updated for [server-name]" ``` **Example:** <img width="1484" height="710" alt="Screenshot 2025-09-11 at 2 16 26 PM" src="https://github.com/user-attachments/assets/21f4d9cd-8642-407c-914d-51c91d6858bd" /> --------- Co-authored-by: Seongjin Yoon <[email protected]> Co-authored-by: Seongjin Yoon <[email protected]>
yangzhang75
pushed a commit
to yangzhang75/texera
that referenced
this pull request
Jun 22, 2026
…3532) (apache#3548) Closes apache#3532 Make the subject of notification emails more informative Related PR #apache#3393 ### Purpose Improves email subject clarity by including the deployment domain (e.g., hub.texera.io) in user registration and role update notifications. ### Implementation Introduced a new deployment variable in EmailTemplate.scala: - Extracts the user-sys.domain from the config. - Removes http:// or https:// prefix using .replaceFirst("^https?://", ""). Updated 3 subject lines to incorporate $deployment: - Admin Notification Subject: New Account Request Pending Approval → New Account Request to $deployment Pending Approval - User Role Update Subject: Your Role Has Been Updated → Your Role Has Been Updated on $deployment - Email body update: Added $deployment in the body content for contextual clarity. ### Testing - Verified manually by simulating Account request (admin and user) and role change event using SMTP. - Confirmed subject lines and body content are correctly updated with the domain hub.texera.io.  --------- Signed-off-by: DhritiSoni4 <[email protected]>
yangzhang75
pushed a commit
to yangzhang75/texera
that referenced
this pull request
Jun 22, 2026
**Description:** This PR fixes the previous implementation of enriching email subjects apache#3548 that aims to add the domain name in email subjects. **Problem:** The previous implementation used `ConfigFactory.load()` which reads from `application.conf` by default, but the `user-sys.domain` configuration is defined in `user-system.conf`, causing the domain retrieval to always fail and return empty strings. Documentation: https://lightbend.github.io/config/latest/api/com/typesafe/config/ConfigFactory.html **Solution:** Replaced the incorrect domain retrieval with `UserSystemConfig` which properly reads from `user-system.conf`. Closes apache#3720 **Email Subject Updates:** ``` "New Account Request Pending Approval" -> "New Account Request Pending Approval for [server-name]" "Account Request Received" -> "Account Request Received for [server-name]" "Your Role Has Been Updated" -> "Your Role Has Been Updated for [server-name]" ``` **Example:** <img width="1484" height="710" alt="Screenshot 2025-09-11 at 2 16 26 PM" src="https://github.com/user-attachments/assets/21f4d9cd-8642-407c-914d-51c91d6858bd" /> --------- Co-authored-by: Seongjin Yoon <[email protected]> Co-authored-by: Seongjin Yoon <[email protected]>
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.
Closes #3532 Make the subject of notification emails more informative
Related PR ##3393
Purpose
Improves email subject clarity by including the deployment domain (e.g., hub.texera.io) in user registration and role update notifications.
Implementation
Introduced a new deployment variable in EmailTemplate.scala:
Updated 3 subject lines to incorporate $deployment:
New Account Request Pending Approval → New Account Request to $deployment Pending Approval
Your Role Has Been Updated → Your Role Has Been Updated on $deployment
Added $deployment in the body content for contextual clarity.
Testing