Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

emails: Update out-of-date references to day1/day2 onboarding emails.

Lauryn Menarde5da17459d1c
diff --git a/zerver/tests/test_email_notifications.py b/zerver/tests/test_email_notifications.py
index 053edaa825a..2d8fd78363a 100644
--- a/zerver/tests/test_email_notifications.py
+++ b/zerver/tests/test_email_notifications.py
@@ -253,7 +253,7 @@ class TestCustomEmails(ZulipTestCase):
class TestFollowupEmails(ZulipTestCase):
- def test_day1_email_context(self) -> None:
+ def test_account_registered_email_context(self) -> None:
hamlet = self.example_user("hamlet")
send_account_registered_email(hamlet)
scheduled_emails = ScheduledEmail.objects.filter(users=hamlet).order_by(
@@ -298,7 +298,7 @@ class TestFollowupEmails(ZulipTestCase):
"ou=users,dc=zulip,dc=com", ldap.SCOPE_ONELEVEL, "(uid=%(email)s)"
),
)
- def test_day1_email_ldap_case_a_login_credentials(self) -> None:
+ def test_account_registered_email_ldap_case_a_login_credentials(self) -> None:
self.init_default_ldap_database()
ldap_user_attr_map = {"full_name": "cn"}
@@ -325,7 +325,7 @@ class TestFollowupEmails(ZulipTestCase):
"zproject.backends.ZulipDummyBackend",
)
)
- def test_day1_email_ldap_case_b_login_credentials(self) -> None:
+ def test_account_registered_email_ldap_case_b_login_credentials(self) -> None:
self.init_default_ldap_database()
ldap_user_attr_map = {"full_name": "cn"}
@@ -350,7 +350,7 @@ class TestFollowupEmails(ZulipTestCase):
"zproject.backends.ZulipDummyBackend",
)
)
- def test_day1_email_ldap_case_c_login_credentials(self) -> None:
+ def test_account_registered_email_ldap_case_c_login_credentials(self) -> None:
self.init_default_ldap_database()
ldap_user_attr_map = {"full_name": "cn"}
@@ -374,7 +374,7 @@ class TestFollowupEmails(ZulipTestCase):
cordelia = self.example_user("cordelia")
realm = get_realm("zulip")
- # Hamlet has account only in Zulip realm so day1, day2 and zulip_guide emails should be sent
+ # Hamlet has account only in Zulip realm so all onboarding emails should be sent
send_account_registered_email(self.example_user("hamlet"))
enqueue_welcome_emails(self.example_user("hamlet"))
scheduled_emails = ScheduledEmail.objects.filter(users=hamlet).order_by(
@@ -443,7 +443,7 @@ class TestFollowupEmails(ZulipTestCase):
realm.org_type = Realm.ORG_TYPES["education_nonprofit"]["id"]
realm.save()
- # Cordelia has account in more than 1 realm so day2 email should not be sent
+ # Cordelia has account in more than 1 realm so onboarding_zulip_topics email should not be sent
send_account_registered_email(self.example_user("cordelia"))
enqueue_welcome_emails(self.example_user("cordelia"))
scheduled_emails = ScheduledEmail.objects.filter(users=cordelia).order_by(
@@ -469,7 +469,7 @@ class TestFollowupEmails(ZulipTestCase):
realm.org_type = Realm.ORG_TYPES["other"]["id"]
realm.save()
- # In this case, Cordelia should only be sent the day1 email
+ # In this case, Cordelia should only be sent the account_registered email
send_account_registered_email(self.example_user("cordelia"))
enqueue_welcome_emails(self.example_user("cordelia"))
scheduled_emails = ScheduledEmail.objects.filter(users=cordelia)
diff --git a/zerver/views/development/email_log.py b/zerver/views/development/email_log.py
index bb68bf1bc34..40560c6eae6 100644
--- a/zerver/views/development/email_log.py
+++ b/zerver/views/development/email_log.py
@@ -137,16 +137,16 @@ def generate_all_emails(request: HttpRequest) -> HttpResponse:
# Reset the email value so we can run this again
do_change_user_delivery_email(user_profile, registered_email)
- # Initial email with new account information for normal user.
+ # Initial email with new account information for normal user
send_account_registered_email(user_profile)
- # Follow up day2 and onboarding zulip guide emails for normal user
+ # Onboarding emails for normal user
enqueue_welcome_emails(user_profile)
# Initial email with new account information for admin user
send_account_registered_email(get_user_by_delivery_email("[email protected]", realm))
- # Follow up day2 and onboarding zulip guide emails for admin user
+ # Onboarding emails for admin user
enqueue_welcome_emails(get_user_by_delivery_email("[email protected]", realm))
# Realm reactivation email