Skip to content

[CHORE] split cash exceptions#96

Merged
chelsea-EYDS merged 4 commits intomainfrom
CHORE-exceptions-service-refactor
May 10, 2023
Merged

[CHORE] split cash exceptions#96
chelsea-EYDS merged 4 commits intomainfrom
CHORE-exceptions-service-refactor

Conversation

@chelsea-EYDS
Copy link
Contributor

CHORE

Objective:

  • improve readability by splitting out the exceptions for cash into a separate service
  • easier unit testing

@chelsea-EYDS chelsea-EYDS requested review from fw-noel and fwkendall May 2, 2023 23:50
appLogger: Logger,
cashRecon: CashReconciliationService
cashRecon: CashReconciliationService,
exceptionsService: CashExceptionsService
Copy link
Collaborator

Choose a reason for hiding this comment

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

Argument for renaming to cashExceptionsService for consistency?

);
this.appLogger.log(
`${aggregatedPayments.length} AGGREGATED PAYMENTS PENDING RECONCILIATION`,
`${aggregatedPayments?.length} AGGREGATED PAYMENTS PENDING RECONCILIATION`,
Copy link
Collaborator

Choose a reason for hiding this comment

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

If this nullish is necessary, then I imagine you'd want aggregatedPayments?.length || 0. Otherwise, the log won't look right!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops, good call! On this topic, I was wondering if I should scale back the logs? Or maybe add more logging to the specific services that I are querying for/updating the data vs having the logs here? The logs are bit unwieldily...

Copy link
Collaborator

Choose a reason for hiding this comment

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

Logs are cheap, no need to scale back, but we may want to refine them so as to make them easier to sift through.

fw-noel
fw-noel previously approved these changes May 10, 2023
@chelsea-EYDS chelsea-EYDS merged commit 0924ad1 into main May 10, 2023
@chelsea-EYDS chelsea-EYDS deleted the CHORE-exceptions-service-refactor branch May 10, 2023 23:20
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.

2 participants