zulip/zerver
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
..
fixtures team page: Remove duplicate contribution counts. 2018-03-07 17:25:41 -08:00
lib refactoring: Replaced occurences of create_stream_if_needed. 2018-03-21 16:47:36 -07:00
management refactoring: Replaced occurences of create_stream_if_needed. 2018-03-21 16:47:36 -07:00
migrations emoji: Migrate realm emoji to be addressed by `id` rather than `name`. 2018-03-20 22:24:44 -07:00
templatetags mypy: Migrate templatetags/minified_js.py to python3.5 annotations. 2018-03-12 11:23:30 -07:00
tests refactoring: Replaced occurences of create_stream_if_needed. 2018-03-21 16:47:36 -07:00
tornado mypy: Rewrite some middleware annotations to use ViewFuncT. 2018-03-17 23:25:05 +00:00
views auth: Make redirects to next work for REMOTE_USER based Apache SSO. 2018-03-21 14:01:05 -07:00
webhooks ifttt: Support topic as preferred alternative to subject. 2018-03-18 19:19:44 -07:00
worker mypy: Remove need for cast by using ConcreteQueueWorker TypeVar. 2018-03-11 15:34:11 -07:00
__init__.py
apps.py zerver: Use Python 3 syntax for typing. 2017-11-28 16:49:36 -08:00
context_processors.py integrations/email: Render settings.EMAIL_GATEWAY_EXAMPLE correctly. 2018-01-22 18:05:20 -05:00
decorator.py decorator: Improve error message for a deactivated organization. 2018-03-16 16:59:02 -07:00
filters.py zerver: Use Python 3 syntax for typing. 2017-11-28 16:49:36 -08:00
forms.py forms: Fix missing translation tag for disposable emails. 2018-03-15 14:43:40 -07:00
logging_handlers.py Fix mypy error in AdminNotifyHandler.emit(). 2017-12-22 15:02:18 -05:00
middleware.py mypy: Rewrite some middleware annotations to use ViewFuncT. 2018-03-17 23:25:05 +00:00
models.py emoji: Migrate realm emoji to be addressed by `id` rather than `name`. 2018-03-20 22:24:44 -07:00
signals.py emails: Fix notify_new_login emails have unserializable context. 2017-12-22 16:34:18 -05:00
static_header.txt
storage.py mypy: Improve typing for ManifestStaticFilesStorage monkeypatch. 2017-12-08 19:00:18 -08:00