Skip to content

LG-7185: Add error handling and analytics to in-person proofing email reminder job#7364

Merged
tomas-nava merged 11 commits intoshannon/lg-7185-email-reminders-job-newfrom
tomas/lg-7185-add-error-handling-and-analytics
Nov 21, 2022
Merged

LG-7185: Add error handling and analytics to in-person proofing email reminder job#7364
tomas-nava merged 11 commits intoshannon/lg-7185-email-reminders-job-newfrom
tomas/lg-7185-add-error-handling-and-analytics

Conversation

@tomas-nava
Copy link
Contributor

@tomas-nava tomas-nava commented Nov 18, 2022

🎫 Ticket

LG-7185

🛠 Summary of changes

Add basic error handling and analytics for InPerson::EmailReminderJob

Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

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

LGTM!

@tomas-nava tomas-nava marked this pull request as ready for review November 21, 2022 18:45
@tomas-nava tomas-nava changed the title Add error handling and analytics to in-person proofing email reminder job LG-7185: Add error handling and analytics to in-person proofing email reminder job Nov 21, 2022
Tomas Apodaca added 2 commits November 21, 2022 11:48
@tomas-nava tomas-nava merged commit d805490 into shannon/lg-7185-email-reminders-job-new Nov 21, 2022
@tomas-nava tomas-nava deleted the tomas/lg-7185-add-error-handling-and-analytics branch November 21, 2022 22:02
svalexander added a commit that referenced this pull request Nov 29, 2022
* email job

* moving email job file and fixing missing end

* send partially working

* email job working

* include test for needs email reminder

* add test for excluded enrollments

* make methods private

* fall back to app name if sp_name is not available

* changelog:Improvement, Job, add email reminder job

* db migration

* update email reminder so it covers a range of dates

* can be equal to end interval

* adjust interval

* update config names

* make input param names clearer and change time to make sure correct dates included

* update email reminder tests

* lint fix

* update calculation so excludes enrollments on late benchmark and includes ones on early benchmark

* fix test so correct enrollments are picked based on established_at time

* fix lint issue

* check flags are false and remove unneeded test

* move email reminder job to in person folder

* fix lint

* job spec

* continued work on job spec

* check enrollment code

* update to email job

* some tests pass and others fail

* tests working and lint changes

* update naming

* refactor based on feedback

* update tests

* remove unneeded nil check

* LG-7185: Add error handling and analytics to in-person proofing email reminder job (#7364)

* add new analytics events

* add analytics and error handling to job

* add analytics expectations to tests

* add test for error handling (currently failing)

* job refactor

* remove put statement

* error is raised but occurs 2x

* execption logged test passes

* separate error test for clarity

* fix lint by documenting parameter

* fix spelling

Co-authored-by: Shannon Alexander <shannon.alexander-navarro@gsa.gov>

* pluralize email subject and header by days left

we might send the email when there's only one day left

Co-authored-by: Tomas Apodaca <thomas.apodaca@gsa.gov>
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