Skip to content

LG-10126: SendProofingNotificationJob refactor#8843

Merged
tomas-nava merged 16 commits intomainfrom
tomas/lg-10126-refactor
Jul 26, 2023
Merged

LG-10126: SendProofingNotificationJob refactor#8843
tomas-nava merged 16 commits intomainfrom
tomas/lg-10126-refactor

Conversation

@tomas-nava
Copy link
Contributor

@tomas-nava tomas-nava commented Jul 24, 2023

🎫 Ticket

Related to LG-10126

🛠 Summary of changes

Follow-up to #8772, refactors related to the implementation of SendProofingNotificationJob.

The only functional changes:

  • Only invokes the job when we get a pass/fail from the USPS API
  • Log notification job 'skipped' when the enrollment can't be found (instead of 'completed')
  • Capture exceptions and log them with a new analytics event
  • Converts telephony response to a hash before logging it

Tomas Apodaca added 8 commits July 24, 2023 12:06
changelog: Internal, In-person proofing, refactor SendProofingNotificationJob
move 'completed' log to a private method
- log completed separately for expired
- fix test
- add test for enrollment that doesn't exist
- rename telephony_result -> telephony_response for consistency
- convert response to hash before sending to analytics
- generalize analytics call
@tomas-nava tomas-nava requested review from a team, NavaTim and dawei-nava July 24, 2023 19:11
Copy link
Contributor

@NavaTim NavaTim left a comment

Choose a reason for hiding this comment

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

Approved since the user-facing changes (not notifying for unsupported status) are an improvement on the status quo. I highly recommend that the ensure block change is addressed before merging. The other issues are important but low-priority enough that they could be addressed in another PR.

Note that #8848 touches some of the same code and tests; when one of these is merged then it is likely the other will need adjustments.

@tomas-nava tomas-nava merged commit a17969e into main Jul 26, 2023
@tomas-nava tomas-nava deleted the tomas/lg-10126-refactor branch July 26, 2023 15:08
mitchellhenke pushed a commit that referenced this pull request Jul 26, 2023
* Only invoke the job when we get a pass/fail from the USPS API
* Log notification job 'skipped' when the enrollment can't be found (instead of 'completed')
* Capture exceptions and log them with a new analytics event
* Convert telephony response to a hash before logging it

changelog: Internal, In-person proofing, refactor SendProofingNotificationJob
@amirbey amirbey mentioned this pull request Jul 27, 2023
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.

3 participants