-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: log all critical bounces (#288)
* refactor: move bounce model into module * refactor: inline tests * refactor: move helpers into util * feat: log admin responses to main log group * feat: log all critical bounces * refactor: use absolute paths in tests * fix: fix constants import * feat: log submission ID for critical bounces * test: allow varying email type * test: update tests for bounce service * test: ignore __tests__ for coverage * test: add test for short term logs * build: ignore tests for compilation * refactor: rename bounce-helpers to bounce-test-helpers * refactor: avoid using lodash get * refactor: convert EMAIL_TYPES to enum * refactor: change log action to calling method * refactor: change CRITICAL BOUNCE to sentence case * refactor: move isCriticalBounce into domain * refactor: move typeguards into util * refactor: avoid typecast for IBounceNotification * refactor: call logCriticalBounce only once * refactor: remove setting of hasAlarmed * refactor: extract function for logging raw notif * docs: add TODO to convert bounceType to enum * refactor: use typeguard to check recipients * fix: convert formId to string * fix: set hasAlarmed * refactor: collapse save calls * refactor: add bounceInfo key explicitly
- Loading branch information
1 parent
d5bfd5a
commit 22b8ab1
Showing
13 changed files
with
316 additions
and
150 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
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
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
...ackend/models/bounce.server.model.spec.ts → ...les/bounce/__tests__/bounce.model.spec.ts
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
Oops, something went wrong.