Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send submission notification as digests #215

Open
ctueck opened this issue Jun 10, 2018 · 0 comments
Open

Send submission notification as digests #215

ctueck opened this issue Jun 10, 2018 · 0 comments

Comments

@ctueck
Copy link
Member

ctueck commented Jun 10, 2018

As discussed in our longer call the other day, submission notifications should be queued and sent as digests at regular intervals (I suggest to start with hourly or 2-hourly digests to keep it close to real-time, but we might tweak the interval later).

This should solve two problems:

  1. If agencies make bulk uploads of dozens or hundreds of reports in separate API requests, there's an avalanche of emails sent.
  2. If agencies upload files (rather than passing URLs) via API or webform, they get a submission email with a flag/warning. This is because the email is sent already before the request to the file submission endpoint is made, even if that's only seconds later. If the email goes out only after a while, the flag will have usually cleared by then.

In addition, we discussed that the submission report/log should be sent as a CSV file attachment rather than in the body of the email.

(#208 is related to that, but separate. #136 is about the content of the response.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant