Storage limit - Notify admins of users approaching/over storage limit #1189
Labels
kind/enhancement
A net-new feature or improvement to an existing feature
need/triage
Needs initial labeling and prioritization
P2
Medium: Good to have, but can wait until someone steps up
pi/account-limits
topic/pot
Issues handled by PT.
This is a an extension of #990, and depends on #1153, which is part of that.
We want to notify the Web3.Storage admins of the users who are approaching or over their storage limit.
checkStorageUsed
function that's been added in Storage limit - Framework to get users and record emails sent #990.template_content
parameter to insert a block of content into a MailChimp template. See API docs.EmailService
to send these emails.daysSince
parameter ofEmailService.sendEmail
to ensure that admins don't get it more than once a day, even if we start running the cron job more frequently than that.daysSince
to less than one day, because the cron job might be run daily but won't necessarily run on an exact schedule, so we probably want to set it to something like 23 hours. So we might want to changedaysSince
tohoursSince
! NOTE: implemented assecondsSinceLastSent
AdminStorageExceeded
and a new template in MailChimp (and then use the "Send to Mandrill" option so that we can send it transactionally).sendEmail
with just the list of user details intemplateVars
parameter, and then leave it up to theMailChimpEmailProvider
to decide how it wants to format that list into the template.The text was updated successfully, but these errors were encountered: