feat: add admin invite reminder emails (ENT-11581)#2573
Open
sjasti-sonata-svg wants to merge 1 commit intoopenedx:masterfrom
Open
feat: add admin invite reminder emails (ENT-11581)#2573sjasti-sonata-svg wants to merge 1 commit intoopenedx:masterfrom
sjasti-sonata-svg wants to merge 1 commit intoopenedx:masterfrom
Conversation
Add automatic reminder emails for pending enterprise admin invites. Management command triggered via cron/Jenkins following OpenEdx ADR-002 pattern.
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.
Admin Invite Reminder Emails
Problem
Enterprise admin invites often go unnoticed, leading to delayed onboarding and manual follow-ups from customer success teams.
Solution
Implemented automatic reminder emails for pending enterprise admin invites following OpenEdx's standard pattern:
send_pending_admin_reminders) that can be triggered by external cron/JenkinsWhy No Celery Beat?
This implementation follows the pattern established in OpenEdx ADR-002 (Processing Scheduled Instructor Tasks):
This is the same pattern used by:
send_email_digestcommandsend_recurring_nudgecommandprocess_scheduled_instructor_taskscommandKey Features
Implementation Details
New Files
enterprise/management/commands/send_pending_admin_reminders.py./manage.py lms send_pending_admin_reminderstests/test_enterprise/management/test_send_pending_admin_reminders.pyModified Files
enterprise/tasks.pysend_enterprise_admin_invite_reminders()task (decorated with@shared_task)send_enterprise_admin_invite_email()with identified/anonymous recipient supportenterprise/constants.pyBRAZE_ADMIN_INVITE_REMINDER_CAMPAIGN_SETTING— Braze campaign for non-learner remindersBRAZE_LEARNER_ADMIN_INVITE_REMINDER_CAMPAIGN_SETTING— Braze campaign for existing learner remindersenterprise/settings/test.pytests/test_enterprise/test_tasks.pyConfiguration Required
Braze Campaigns
Add to
lms/envs/production.py(or auth.json):Cron Job Setup (DevOps)
Add to Jenkins/cron configuration:
Testing
Unit Tests
Manual Testing
Manually tested with test invites:
Test Command
# Run manually to test ./manage.py lms send_pending_admin_remindersMonitoring
What to Monitor
PendingEnterpriseCustomerAdminUser.historyfor updatesLogs to Watch