feat(api): add publish reminder emails for stale draft dandisets#2673
Open
bendichter wants to merge 2 commits intomasterfrom
Open
feat(api): add publish reminder emails for stale draft dandisets#2673bendichter wants to merge 2 commits intomasterfrom
bendichter wants to merge 2 commits intomasterfrom
Conversation
Add automated email reminders for dandiset owners whose draft-only dandisets haven't been modified in 30 days. Changes: - Add build/send functions for publish reminder emails in mail.py - Add publish_reminder_sent_at field to Dandiset model to track sent reminders - Add send_publish_reminder_emails scheduled task that finds eligible dandisets (draft-only, not embargoed, unmodified for 30+ days, no prior reminder) and sends reminder emails to owners
Member
Author
|
Policy questions:
Questions we can punt on:
|
Record all sent emails using SentEmail model for tracking purposes. Update email sending functions to return SentEmail records including ownership changes, registration notices, and rejection messages. Add helper function to extract HTML content from email messages.
Member
Author
|
I created a table for tracking sent reminders so we could make sure we don't send reminders for the same dandiset everyday. Then I thought it would be nice to track all of our emails in that table. This may be outside the scope of this PR, but I wanted to get the team's take on this. I think it's a good idea to have a queryable record of our email communications in general. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fix #2672
Add automated email reminders for dandiset owners whose draft-only dandisets haven't been modified in 30 days.
Changes: