activity_notification icon indicating copy to clipboard operation
activity_notification copied to clipboard

Mailer jobs not cleaned up when a notification is destroyed

Open amazon-q-developer[bot] opened this issue 8 months ago • 12 comments

This pull request adds defensive error handling in the mailer functionality to gracefully handle cases where notifications are destroyed before email delivery. Specifically:

  1. Adds checks to prevent mailer failures when trying to send emails for deleted notifications
  2. Implements validation to handle nil or empty notification collections in batch emails
  3. Filters out destroyed notifications from batch email groups before processing
  4. Updates the CHANGELOG to document this bug fix

The changes improve system stability by preventing errors that could occur when notifications are deleted during asynchronous email processing.

amazon-q-developer[bot] avatar May 20 '25 05:05 amazon-q-developer[bot]

Resolves #50

amazon-q-developer[bot] avatar May 20 '25 05:05 amazon-q-developer[bot]

To provide feedback, navigate to the Files changed tab and leave comments on the proposed code changes. Choose Start review for each comment, and then choose Request changes, and I'll propose revised changes.

amazon-q-developer[bot] avatar May 20 '25 05:05 amazon-q-developer[bot]

:hourglass_flowing_sand: I'm reviewing this pull request for security vulnerabilities and code quality issues. I'll provide an update when I'm done

amazon-q-developer[bot] avatar May 20 '25 05:05 amazon-q-developer[bot]

:white_check_mark: I finished the code review, and left comments with the issues I found. I will now generate code fix suggestions.

amazon-q-developer[bot] avatar May 20 '25 05:05 amazon-q-developer[bot]

Coverage Status

coverage: 100.0%. remained the same when pulling 50c2f2400f619873ea2b47a9331efca7a3d25b04 on Q-DEV-issue-50-1747719766 into 42ae932b3775f53c1c83196448745f57dd3a1ce3 on master.

coveralls avatar May 20 '25 05:05 coveralls

:white_check_mark: I updated this pull request based on the pipeline log.

amazon-q-developer[bot] avatar May 20 '25 05:05 amazon-q-developer[bot]

:warning: One or more of the provided pipeline logs are too long. I'm only reviewing the last 20000 words of that log(s).

amazon-q-developer[bot] avatar May 20 '25 05:05 amazon-q-developer[bot]

:white_check_mark: I updated this pull request based on the pipeline log.

amazon-q-developer[bot] avatar May 20 '25 05:05 amazon-q-developer[bot]

:warning: One or more of the provided pipeline logs are too long. I'm only reviewing the last 20000 words of that log(s).

amazon-q-developer[bot] avatar May 20 '25 05:05 amazon-q-developer[bot]

:white_check_mark: I updated this pull request based on the pipeline log.

amazon-q-developer[bot] avatar May 20 '25 05:05 amazon-q-developer[bot]

:warning: One or more of the provided pipeline logs are too long. I'm only reviewing the last 20000 words of that log(s).

amazon-q-developer[bot] avatar May 20 '25 05:05 amazon-q-developer[bot]

:red_circle: I'm sorry, I can't create any more revisions for this pipeline failure.

amazon-q-developer[bot] avatar May 20 '25 06:05 amazon-q-developer[bot]