zulip/zerver
Zixuan James Li 5c49e4ba06 rest: Extract remote_server_path from rest_path.
This allows us to separate the zilencer paths from other JSON paths,
with explicit type annotation expecting `RemoteZulipServer` as the
second parameter of the handler using
authenticated_remote_server_view.

The test case is also updated to remove a test for a situation that no
longer occurs anymore, since we don't perform subdomain checks on
remote servers.

Signed-off-by: Zixuan James Li <p359101898@gmail.com>
2022-08-13 14:53:52 -07:00
..
actions streams: Extract code for sending events in bulk_remove_subscriptions. 2022-08-13 14:28:30 -07:00
data_import rocketchat: Handle PMs with only one recipient. 2022-08-09 10:58:58 -07:00
integration_fixtures/nagios
lib rest: Implement get_target_view_function_or_response. 2022-08-13 14:53:51 -07:00
management import: Remove dead do_import_system_bots code. 2022-08-11 13:59:50 -07:00
migrations message_edit: Make zero invalid value for message_content_edit_time_limit_seconds. 2022-08-12 18:09:53 -07:00
openapi message_edit: Make zero invalid value for message_content_edit_time_limit_seconds. 2022-08-12 18:09:53 -07:00
tests rest: Extract remote_server_path from rest_path. 2022-08-13 14:53:52 -07:00
tornado user_topic: Add user_topic event. 2022-08-04 17:44:00 -07:00
views message_edit: Make zero invalid value for message_content_edit_time_limit_seconds. 2022-08-12 18:09:53 -07:00
webhooks python: Use a real parser for email addresses. 2022-07-29 15:47:33 -07:00
worker queue_processor: Fix type annotation for connection. 2022-07-26 18:00:24 -07:00
__init__.py
apps.py caching: Make sender type optional for flush_cache. 2021-07-26 14:48:07 -07:00
context_processors.py footer: Reduce links for self-hosted installations on signup pages. 2022-07-22 15:46:42 -07:00
decorator.py rest: Extract remote_server_path from rest_path. 2022-08-13 14:53:52 -07:00
filters.py typing: Fix function signatures. 2021-08-20 05:54:19 -07:00
forms.py rate_limiter: Extract rate limit related functions. 2022-08-12 16:51:55 -07:00
logging_handlers.py python: Use Python 3.8 typing.{Protocol,TypedDict}. 2022-04-27 12:57:49 -07:00
middleware.py request: Refactor remote_server into RequestNotes. 2022-07-28 09:38:40 -07:00
models.py message_edit: Make zero invalid value for message_content_edit_time_limit_seconds. 2022-08-12 18:09:53 -07:00
signals.py requirements: Upgrade to Django 4.0. 2022-07-13 16:07:17 -07:00