notification-admin
notification-admin copied to clipboard
Calculate job percent complete only when the job has rows in the notification table
Summary | Résumé
This PR adds a defensive check to get_job_partials
to prevent a DivisionByZeroError
that occurred when attempting to view a scheduled job. This issue was uncovered when investigating an alarm
Test instructions | Instructions pour tester la modification
- Schedule a bulk send via the api
- Navigate to your service's dashboard and click the link to the job under the
Scheduled Jobs
section - Note that the page loads without any errors