[manual] Rename new user bot to zulip.com domain.

Just before this is pushed to prod, we need to rename the Humbug new
user bot in the database using:

./manage.py change_user_email humbug+signups@humbughq.com new-user-bot@zulip.com
/etc/init.d/memcached restart

No action is required on pushing this to staging, but in between when
this is pushed to staging and when it is pushed to prod (and that
transition performed), signup reporting to humbug will not work on
staging.

(imported from commit af2cd007b41ea885491f383442f211e8609fe5f9)
This commit is contained in:
Tim Abbott 2013-07-24 14:23:35 -04:00
parent b17741a5c4
commit e085a804b9
3 changed files with 4 additions and 4 deletions

View File

@ -774,7 +774,7 @@ def do_create_realm(domain, restricted_to_domain=True):
signup_message = "Signups enabled"
if not restricted_to_domain:
signup_message += " (open realm)"
internal_send_message("humbug+signups@humbughq.com", "stream",
internal_send_message("new-user-bot@zulip.com", "stream",
"signups", domain, signup_message)
return (realm, created)

View File

@ -193,7 +193,7 @@ class Command(BaseCommand):
# These bots are directly referenced from code and thus
# are needed for the test suite.
hardcoded_humbug_users_nosubs = [
("Zulip New User Bot", "humbug+signups@humbughq.com"),
("Zulip New User Bot", "new-user-bot@zulip.com"),
("Zulip Error Bot", "error-bot@zulip.com"),
("Zulip Notification Bot", "humbug+notifications@humbughq.com"),
("Zulip Tutorial Bot", "tutorial-bot@zulip.com"),

View File

@ -149,7 +149,7 @@ def send_signup_message(sender, signups_stream, user_profile, internal=False):
)
def notify_new_user(user_profile, internal=False):
send_signup_message("humbug+signups@humbughq.com", "signups", user_profile, internal)
send_signup_message("new-user-bot@zulip.com", "signups", user_profile, internal)
statsd.gauge("users.signups.%s" % (user_profile.realm.domain.replace('.', '_')), 1, delta=True)
class PrincipalError(JsonableError):
@ -286,7 +286,7 @@ def accounts_register(request):
if prereg_user.referred_by is not None:
# This is a cross-realm private message.
internal_send_message("humbug+signups@humbughq.com",
internal_send_message("new-user-bot@zulip.com",
"private", prereg_user.referred_by.email, user_profile.realm.domain,
"%s <`%s`> accepted your invitation to join Zulip!" % (
user_profile.full_name,