CDCgov / prime-simplereport

SimpleReport is a fast, free, and easy way for COVID-19 testing facilities to report results to public health departments.
https://simplereport.gov
Creative Commons Zero v1.0 Universal
56 stars 56 forks source link

Add action to send notification to support team in maintenance workflow #5741

Closed johanna-skylight closed 1 year ago

johanna-skylight commented 1 year ago

Background

In the support research effort, it was mentioned that sometimes when the banner goes up indicating a prod outage, the support folks aren't notified and are sometimes taken by surprise. This ticket covers the implementation of the solution detailed in spike #5659

Action requested

  1. GMAIL_USER: simplereportnotifications@gmail.com
  2. GMAIL_PASS: ask johanna to send it with keybase
  3. APP_GMAIL_ADDRESS: simplereportnotifications@gmail.com
  4. SUPPORT_MAIL_ADDRESS: ask johanna to send it

Acceptance Criteria

An email is sent to support team when the maintenance banner is displayed or taken down in the Simple Report application.

Additional Context

@mehansen also has the email account information An example on how to use the action can be found in this post

johanna-skylight commented 1 year ago

Moving this ticket to grooming state as some concerns about not using send grid as the email sender and the github action not having the status of verify were raised.

Action items:

johanna-skylight commented 1 year ago

Resources that will be useful:

Send Grid SMTP Service How to create an API key Access levels for API keys

Example on creating and endpoint in the app to send an email (non SMTP implementation) Report Stream callback