Skip to content
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

Include status change line in update emails using auto response templates. #4967

Merged

Conversation

neprune
Copy link
Contributor

@neprune neprune commented May 20, 2024

Except for waste categories.

closes #4901

Copy link

codecov bot commented May 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.79%. Comparing base (e96a07a) to head (76a1059).
Report is 4 commits behind head on master.

Current head 76a1059 differs from pull request most recent head f0f41d0

Please upload reports for the commit f0f41d0 to get more accurate results.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4967      +/-   ##
==========================================
+ Coverage   82.57%   82.79%   +0.22%     
==========================================
  Files         393      393              
  Lines       30697    31248     +551     
  Branches     4861     5009     +148     
==========================================
+ Hits        25349    25873     +524     
- Misses       3897     3908      +11     
- Partials     1451     1467      +16     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@neprune neprune force-pushed the fix-state-change-text-not-in-response-template-updates branch 2 times, most recently from fb1168d to 76a1059 Compare May 28, 2024 11:02
@neprune neprune requested a review from davea May 28, 2024 11:04
@@ -133,6 +133,9 @@ sub send_alert_type {
$row->{item_text_original} = $row->{item_text};
$row->{item_text} = $row->{item_text} ? $row->{item_text} . "\n\n" . $update :
$update;
if ($row->{item_private_email_text} && $report->contact->get_extra_metadata('type', '') ne 'waste') {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious if this could be $report->cobrand_data ne 'waste' instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aha yes, appears so

@neprune neprune requested a review from davea May 28, 2024 12:37
Copy link
Member

@davea davea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! 👍

@neprune neprune force-pushed the fix-state-change-text-not-in-response-template-updates branch from f0f41d0 to 44674bb Compare May 28, 2024 12:42
@neprune neprune merged commit 44674bb into master May 28, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show state changes in problem alert emails
2 participants