zulip/zerver
Zixuan James Li 232ba4866a rate_limit: Stop wrapping rate limited functions.
This refactors `rate_limit` so that we no longer use it as a decorator.
This is a workaround to https://github.com/python/mypy/issues/12909 as
`rate_limit` previous expects different parameters than its callers.

Our approach to test logging handlers also needs to be updated because
the view function is not decorated by `rate_limit`.

Signed-off-by: Zixuan James Li <p359101898@gmail.com>
2022-08-12 16:51:55 -07:00
..
actions read_receipts: Add support for displaying read receipts. 2022-08-12 13:16:35 -07:00
data_import rocketchat: Handle PMs with only one recipient. 2022-08-09 10:58:58 -07:00
integration_fixtures/nagios
lib test_fixtures: Rebuild database when create_realm.py changes. 2022-08-12 13:16:35 -07:00
management import: Remove dead do_import_system_bots code. 2022-08-11 13:59:50 -07:00
migrations migrations: Add migration to set default value of enable_read_receipts. 2022-08-12 22:26:14 +05:30
openapi read_receipts: Add support for displaying read receipts. 2022-08-12 13:16:35 -07:00
tests rate_limit: Stop wrapping rate limited functions. 2022-08-12 16:51:55 -07:00
tornado user_topic: Add user_topic event. 2022-08-04 17:44:00 -07:00
views read_receipts: Add support for displaying read receipts. 2022-08-12 13:16:35 -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 rate_limit: Stop wrapping rate limited functions. 2022-08-12 16:51:55 -07:00
filters.py typing: Fix function signatures. 2021-08-20 05:54:19 -07:00
forms.py python: Use a real parser for email addresses. 2022-07-29 15:47:33 -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 read_receipts: Add support for displaying read receipts. 2022-08-12 13:16:35 -07:00
signals.py requirements: Upgrade to Django 4.0. 2022-07-13 16:07:17 -07:00