zulip/zerver/management/commands
Jack Weatherilt 3396cfc2ef refactoring: Replaced occurences of create_stream_if_needed.
Issue #2088 asked for a wrapper to be created for
`create_stream_if_needed` (called `ensure_stream`) for the 25 times that
`create_stream_if_needed` is called and ignores whether the stream was
created. This commit replaces relevant occurences of
`create_stream_if_needed` with `ensure_stream`, including imports.

The changes weren't significant enough to add any tests or do any
additional manual testing.

The refactoring intended to make the API easier to use in most cases.
The majority of uses of `create_stream_if_needed` ignored the second
parameter.

Fixes: #2088.
2018-03-21 16:47:36 -07:00
..
__init__.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
add_users_to_mailing_list.py python: Sort imports in management commands. 2017-11-15 15:43:47 -08:00
add_users_to_streams.py refactoring: Replaced occurences of create_stream_if_needed. 2018-03-21 16:47:36 -07:00
bankrupt_users.py python: Sort imports in management commands. 2017-11-15 15:43:47 -08:00
bulk_change_user_name.py python: Sort imports in management commands. 2017-11-15 15:43:47 -08:00
change_user_email.py zerver/management: Remove unused imports (F401). 2017-11-07 16:36:54 -08:00
check_redis.py python: Sort imports in management commands. 2017-11-15 15:43:47 -08:00
checkconfig.py python: Sort imports in management commands. 2017-11-15 15:43:47 -08:00
compilemessages.py i18n: Include mobile stats in percent translated. 2018-01-29 12:49:51 -08:00
convert_slack_data.py slack importer: Fix output_dir path and remove sys.exit(0). 2018-02-09 12:17:10 -08:00
create_default_stream_groups.py refactoring: Replaced occurences of create_stream_if_needed. 2018-03-21 16:47:36 -07:00
create_large_indexes.py zerver/management: Use python 3 syntax for typing. 2017-10-26 15:24:56 -07:00
create_realm_internal_bots.py bots: Clean up create_realm_internal_bots. 2018-02-06 18:59:57 -08:00
create_stream.py python: Sort imports in management commands. 2017-11-15 15:43:47 -08:00
create_user.py python: Sort imports in management commands. 2017-11-15 15:43:47 -08:00
deactivate_realm.py python: Sort imports in management commands. 2017-11-15 15:43:47 -08:00
deactivate_user.py python: Sort imports in management commands. 2017-11-15 15:43:47 -08:00
delete_old_unclaimed_attachments.py python: Sort imports in management commands. 2017-11-15 15:43:47 -08:00
deliver_email.py logging: Reduce `create_logger` to new `log_to_file`. 2017-12-12 17:17:08 -08:00
deliver_scheduled_messages.py scheduledmessages: Start using/expecting delivery_type as a param. 2018-01-19 11:33:11 -05:00
dump_messages.py python: Sort imports in management commands. 2017-11-15 15:43:47 -08:00
email_mirror.py requirements: Upgrade mypy to 0.550. 2017-11-25 10:06:27 -08:00
enqueue_digest_emails.py logging: Reduce `create_logger` to new `log_to_file`. 2017-12-12 17:17:08 -08:00
enqueue_file.py python: Sort imports in management commands. 2017-11-15 15:43:47 -08:00
export.py python: Sort imports in management commands. 2017-11-15 15:43:47 -08:00
export_single_user.py python: Sort imports in management commands. 2017-11-15 15:43:47 -08:00
export_usermessage_batch.py python: Sort imports in management commands. 2017-11-15 15:43:47 -08:00
fill_memcached_caches.py python: Sort imports in management commands. 2017-11-15 15:43:47 -08:00
fix_unreads.py python: Sort imports in management commands. 2017-11-15 15:43:47 -08:00
generate_invite_links.py models: Make email_allowed_for_realm raise exception. 2018-03-15 14:35:24 -07:00
generate_multiuse_invite_link.py refactoring: Replaced occurences of create_stream_if_needed. 2018-03-21 16:47:36 -07:00
generate_realm_creation_link.py confirmation: Presume email valid when admin creates realm. 2018-02-05 12:59:12 -08:00
get_migration_status.py python: Sort imports in management commands. 2017-11-15 15:43:47 -08:00
import.py Import script: Check and add system bots after every import. 2017-12-27 07:52:45 -05:00
initialize_voyager_db.py python: Sort imports in management commands. 2017-11-15 15:43:47 -08:00
knight.py python: Sort imports in management commands. 2017-11-15 15:43:47 -08:00
list_realms.py python: Sort imports in management commands. 2017-11-15 15:43:47 -08:00
logout_all_users.py python: Sort imports in management commands. 2017-11-15 15:43:47 -08:00
makemessages.py translation: Mark error strings in django.po files. 2018-02-15 11:12:42 -08:00
merge_streams.py python: Sort imports in management commands. 2017-11-15 15:43:47 -08:00
print_email_delivery_backlog.py python: Sort imports in management commands. 2017-11-15 15:43:47 -08:00
process_queue.py python: Sort imports in management commands. 2017-11-15 15:43:47 -08:00
purge_queue.py purge_queue: Allow purging Tornado-consumed queues. 2017-11-29 14:44:53 -08:00
query_ldap.py python: Sort imports in management commands. 2017-11-15 15:43:47 -08:00
rate_limit.py python: Sort imports in management commands. 2017-11-15 15:43:47 -08:00
reactivate_realm.py python: Sort imports in management commands. 2017-11-15 15:43:47 -08:00
realm_domain.py python: Sort imports in management commands. 2017-11-15 15:43:47 -08:00
realm_filters.py python: Sort imports in management commands. 2017-11-15 15:43:47 -08:00
remove_users_from_stream.py zerver/management: Remove unused imports (F401). 2017-11-07 16:36:54 -08:00
rename_stream.py python: Sort imports in management commands. 2017-11-15 15:43:47 -08:00
runtornado.py python: Sort imports in management commands. 2017-11-15 15:43:47 -08:00
send_password_reset_email.py mypy: Use Python 3 type syntax in 'send_password_reset_email.py'. 2017-12-26 08:34:38 -05:00
send_stats.py python: Sort imports in management commands. 2017-11-15 15:43:47 -08:00
send_test_email.py zerver/management: Remove unused imports (F401). 2017-11-07 16:36:54 -08:00
send_webhook_fixture_message.py python: Sort imports in management commands. 2017-11-15 15:43:47 -08:00
set_default_streams.py python: Sort imports in management commands. 2017-11-15 15:43:47 -08:00
set_message_flags.py python: Sort imports in management commands. 2017-11-15 15:43:47 -08:00
show_admins.py python: Sort imports in management commands. 2017-11-15 15:43:47 -08:00
show_unreads.py python: Sort imports in management commands. 2017-11-15 15:43:47 -08:00
soft_deactivate_users.py python: Sort imports in management commands. 2017-11-15 15:43:47 -08:00
sync_ldap_user_data.py logging: Reduce `create_logger` to new `log_to_file`. 2017-12-12 17:17:08 -08:00
turn_off_digests.py zerver/management: Remove unused imports (F401). 2017-11-07 16:36:54 -08:00