zulip/zilencer/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 [schema] Support for authenticating Deployments via the API. 2013-10-25 14:13:30 -04:00
add_mock_conversation.py refactoring: Replaced occurences of create_stream_if_needed. 2018-03-21 16:47:36 -07:00
add_new_realm.py zilencer: Use python 3 syntax for typing. 2017-11-22 12:29:03 -08:00
add_new_user.py mypy: Add clarifying variable in add_new_user.py. 2018-02-13 11:40:52 -08:00
add_remote_server.py zilencer: Add a simple management command to create a RemoteZulipServer. 2018-01-08 17:46:46 -08:00
calculate_first_visible_message_id.py messages: Calculate value of first visible message ID using cron job. 2018-01-24 17:15:08 -08:00
compare_messages.py zilencer: Use python 3 syntax for typing. 2017-11-22 12:29:03 -08:00
mark_all_messages_unread.py zilencer: Use python 3 syntax for typing. 2017-11-22 12:29:03 -08:00
migrate_stream_notifications.py zilencer: Use python 3 syntax for typing. 2017-11-22 12:29:03 -08:00
populate_db.py populate_db: Remove the `test_suite` check for custom profile fields. 2018-03-21 16:05:31 -07:00
print_initial_password.py zilencer: Use python 3 syntax for typing. 2017-11-22 12:29:03 -08:00
profile_request.py zilencer: Use python 3 syntax for typing. 2017-11-22 12:29:03 -08:00
render_messages.py zilencer: Use python 3 syntax for typing. 2017-11-22 12:29:03 -08:00
sync_api_key.py zilencer: Use python 3 syntax for typing. 2017-11-22 12:29:03 -08:00