mirror of https://github.com/zulip/zulip.git
populate_db: Remove the 'simple' realm.
The 'simple' realm was super broken and confusing for new users. We should replace this with having an easy way to make a new realm in development, done properly. Fixes #6116.
This commit is contained in:
parent
98be0cc502
commit
64230b3bd5
|
@ -308,8 +308,6 @@ class Command(BaseCommand):
|
|||
]
|
||||
create_users(mit_realm, testsuite_mit_users)
|
||||
|
||||
create_simple_community_realm()
|
||||
|
||||
if not options["test_suite"]:
|
||||
# Initialize the email gateway bot as an API Super User
|
||||
email_gateway_bot = get_system_bot(settings.EMAIL_GATEWAY_BOT)
|
||||
|
@ -486,22 +484,6 @@ def send_messages(data):
|
|||
num_messages += 1
|
||||
return tot_messages
|
||||
|
||||
def create_simple_community_realm():
|
||||
# type: () -> None
|
||||
simple_realm = Realm.objects.create(
|
||||
string_id="simple", name="Simple Realm", restricted_to_domain=False,
|
||||
invite_required=False, org_type=Realm.CORPORATE)
|
||||
|
||||
names = [
|
||||
("alice", "alice@example.com"),
|
||||
("bob", "bob@foo.edu"),
|
||||
("cindy", "cindy@foo.tv"),
|
||||
]
|
||||
create_users(simple_realm, names)
|
||||
|
||||
user_profiles = UserProfile.objects.filter(realm__string_id='simple')
|
||||
create_user_presences(user_profiles)
|
||||
|
||||
def create_user_presences(user_profiles):
|
||||
# type: (Iterable[UserProfile]) -> None
|
||||
for user in user_profiles:
|
||||
|
|
Loading…
Reference in New Issue