-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve the formatting of the support emails for PTs (#2429)
This PR improves the formatting of the support emails for the "PT service skip Freshdesk" feature while still using the existing _generate_ticket method. This PR removes the product_id, 'priority, status, and tagsdata from the email.priorityandstatuswere being hardcoded in this case so those numbers weren't meaningful.product_idwill always be the same for the prod app. Andtags` are only meaningful to freshdesk. So I think it is safe to remove this data for this feature since it makes the email less confusing for the support team.
- Loading branch information
Showing
2 changed files
with
22 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -347,7 +347,7 @@ def test_email_freshdesk_ticket_pt_service_success(self, mocker, notify_api): | |
freshdesk_client = freshdesk.Freshdesk(ContactRequest(email_address="[email protected]")) | ||
freshdesk_client.email_freshdesk_ticket_pt_service() | ||
|
||
mock_email_ticket.assert_called_once_with("[email protected]", "template-123") | ||
mock_email_ticket.assert_called_once_with("[email protected]", "template-123", mocker.ANY) | ||
|
||
def test_email_freshdesk_ticket_pt_service_no_email(self, mocker, notify_api): | ||
"""Test handling when sensitive service email not configured""" | ||
|
@@ -362,4 +362,4 @@ def test_email_freshdesk_ticket_pt_service_no_email(self, mocker, notify_api): | |
freshdesk_client.email_freshdesk_ticket_pt_service() | ||
|
||
mock_logger.assert_called_once_with("SENSITIVE_SERVICE_EMAIL not set") | ||
mock_email_ticket.assert_called_once_with(None, "template-123") | ||
mock_email_ticket.assert_called_once_with(None, "template-123", mocker.ANY) |