-
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.
refactor: encapsulate parsed responses (part 1) (#1140)
* refactor: define EmailDataObj class * refactor: use lodash compact * docs: improve comments * chore: shift business logic of returning masked autoreplydata to class * chore: update tests * chore: update types for response emails * chore: rename jsonData to dataCollationData * refactor: unnest compact * refactor: convert maskField to generic maskStringHead function * refactor: separate checks in tests * chore: add defensive check that charsToReveal is nonnegative * refactor: simplify use of state and run maskUidOnLastField only if necessary Co-authored-by: Yuan Ruo <[email protected]> * style: lint * refactor: use type instead of interface, constraint generic T on createFormattedDataForOneField * refactor: avoid state * build: resolve merge conflicts * doc: remove comment * docs: createFormattedDataForOneField * chore: rename Submission Email Object, add unit tests Co-authored-by: Yuan Ruo <[email protected]>
- Loading branch information
1 parent
7f68e9c
commit 147e5ff
Showing
14 changed files
with
604 additions
and
330 deletions.
There are no files selected for viewing
351 changes: 198 additions & 153 deletions
351
src/app/modules/submission/email-submission/__tests__/email-submission.service.spec.ts
Large diffs are not rendered by default.
Oops, something went wrong.
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
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.