onboarding: Remove 'core team' private channel.

We no longer create the 'core team' private channel when
a realm is created.

Earlier, "New user announcements" channel was set to the
"core team" channel. Now it is disabled by default.

populate_db still creates the 'core team' channel to
represent a private channel.
This commit is contained in:
Prakhar Pratyush
2024-03-29 17:30:12 +05:30
committed by Tim Abbott
parent 6baf981aa5
commit 61e606f656
15 changed files with 70 additions and 81 deletions

View File

@@ -918,6 +918,10 @@ class InviteUserTest(InviteUserBase):
"""
self.login("hamlet")
user_profile = self.example_user("hamlet")
realm = user_profile.realm
realm.signup_announcements_stream = get_stream("core team", realm)
realm.save(update_fields=["signup_announcements_stream"])
private_stream_name = "Secret"
self.make_stream(private_stream_name, invite_only=True)
self.subscribe(user_profile, private_stream_name)