zulip/zerver
Zixuan James Li cf455131ef message_edit: Make propagate_mode optional.
When there is no topic/stream being change, `propagate_mode` becomes
unnecessary. We add an assertion to ensure that the previous assumption
that `propagate_mode` is not `None` still holds when either `topic_name`
or `new_stream` is not `None`.

We can possibly improve this by overloading `do_update_message` and
`check_update_message`, but that's beyond the scope of the PR and
feasibility of doing that should also be further discussed.

Signed-off-by: Zixuan James Li <p359101898@gmail.com>
2022-06-23 22:09:05 -07:00
..
actions message_edit: Make propagate_mode optional. 2022-06-23 22:09:05 -07:00
data_import import_utils: Fix wrong usage of model_to_dict. 2022-06-23 22:09:05 -07:00
integration_fixtures/nagios tests: Add a test for fixtures for non-webhook integrations. 2021-04-28 08:16:51 -07:00
lib home: Prevent mypy from inferring the type of page_params. 2022-06-23 22:09:05 -07:00
management typing: Narrow connection type before accessing pg_version. 2022-06-23 19:25:48 -07:00
migrations typing: Fix typical typing typos. 2022-06-23 19:25:48 -07:00
openapi api-docs: Add changelog entry for user/stream ID narrow options. 2022-06-01 15:11:26 -07:00
tests typing: Add assertions for report returned from notify_server_error. 2022-06-23 22:09:05 -07:00
tornado tornado: Add missing await for finish calls. 2022-06-23 19:22:12 -07:00
views upload: Add assertions before accessing uploaded files. 2022-06-23 22:09:05 -07:00
webhooks middleware: Pass unhandled API exceptions through to the test suite. 2022-06-23 19:23:08 -07:00
worker message_send: Remove unnecessary user_ids argument. 2022-05-04 14:45:18 -07:00
__init__.py django: Upgrade Zulip to Django 3.2 LTS. 2021-05-03 08:36:22 -07:00
apps.py caching: Make sender type optional for flush_cache. 2021-07-26 14:48:07 -07:00
context_processors.py typing: Apply trivial fixes to adjust edge cases in typing. 2022-05-30 12:03:51 -07:00
decorator.py webhooks: Use setattr when assigning _all_event_types. 2022-06-23 19:25:48 -07:00
filters.py typing: Fix function signatures. 2021-08-20 05:54:19 -07:00
forms.py typing: Fix typical typing typos. 2022-06-23 19:25:48 -07:00
logging_handlers.py python: Use Python 3.8 typing.{Protocol,TypedDict}. 2022-04-27 12:57:49 -07:00
middleware.py middleware: Pass unhandled API exceptions through to the test suite. 2022-06-23 19:23:08 -07:00
models.py typing: Correct type annotation of supported_backends. 2022-06-23 22:09:05 -07:00
signals.py django: Use HttpRequest.headers. 2022-05-13 20:42:20 -07:00