mirror of https://github.com/zulip/zulip.git
tutorial: Disable tutorial for default development users.
You can always make a new user if you need to test the tutorial, and this will save a bunch of developer time ignoring the tutorial popup.
This commit is contained in:
parent
2a5269baa9
commit
67a4ce99ee
|
@ -20,7 +20,8 @@ def bulk_create_users(realm, users_raw, bot_type=None, tos_version=None):
|
|||
for (email, full_name, short_name, active) in users:
|
||||
profile = create_user_profile(realm, email,
|
||||
initial_password(email), active, bot_type,
|
||||
full_name, short_name, None, False, tos_version)
|
||||
full_name, short_name, None, False, tos_version,
|
||||
tutorial_status=UserProfile.TUTORIAL_FINISHED)
|
||||
profiles_to_create.append(profile)
|
||||
UserProfile.objects.bulk_create(profiles_to_create)
|
||||
|
||||
|
|
|
@ -25,8 +25,9 @@ def random_api_key():
|
|||
# create_user (below) which will also make the Subscription and
|
||||
# Recipient objects
|
||||
def create_user_profile(realm, email, password, active, bot_type, full_name,
|
||||
short_name, bot_owner, is_mirror_dummy, tos_version):
|
||||
# type: (Realm, Text, Optional[Text], bool, Optional[int], Text, Text, Optional[UserProfile], bool, Optional[Text]) -> UserProfile
|
||||
short_name, bot_owner, is_mirror_dummy, tos_version,
|
||||
tutorial_status=UserProfile.TUTORIAL_WAITING):
|
||||
# type: (Realm, Text, Optional[Text], bool, Optional[int], Text, Text, Optional[UserProfile], bool, Optional[Text], Optional[Text]) -> UserProfile
|
||||
now = timezone.now()
|
||||
email = UserManager.normalize_email(email)
|
||||
|
||||
|
@ -36,6 +37,7 @@ def create_user_profile(realm, email, password, active, bot_type, full_name,
|
|||
pointer=-1, is_bot=bool(bot_type), bot_type=bot_type,
|
||||
bot_owner=bot_owner, is_mirror_dummy=is_mirror_dummy,
|
||||
tos_version=tos_version,
|
||||
tutorial_status=tutorial_status,
|
||||
onboarding_steps=ujson.dumps([]),
|
||||
default_language=realm.default_language)
|
||||
|
||||
|
|
Loading…
Reference in New Issue