zulip/zerver/views
Alex Vandiver 436dab0e01 messages: Remove use of @overload in access_message.
f92d43c690 added uses of `@overload` to probide multiple type
signatures for `access_message`, based on the `get_user_message`
parameter.  Unfortunately, mypy does not check the function body
against overload signatures, so it allows type errors to go
undetected.

Replace the overloads with two functions, for one of which also
returns the usermessage.  The third form, of only returning if the
usermessage exists, is not in a high-enough performance endpoint that
a third form is worth maintaining; it uses the usermessage form.
2024-04-12 11:41:27 -07:00
..
development registration: Ask user how they found Zulip. 2024-04-01 12:44:12 -07:00
__init__.py
alert_words.py alert_words: Migrate alert_words to use @typed_endpoint. 2023-09-08 08:20:17 -07:00
attachments.py attachments: Correct attachment_id type from string to integer. 2023-10-22 17:06:34 -07:00
auth.py auth: Avoid deprecated django.contrib.auth.views.logout_then_login. 2024-04-04 16:27:58 -07:00
compatibility.py django: Use HttpRequest.headers. 2022-05-13 20:42:20 -07:00
custom_profile_fields.py custom_profile_fields: Add "required" parameter to the profile fields. 2024-03-21 10:48:54 -07:00
digest.py
documentation.py documentation: Support having no sidebar for policies docs. 2024-01-07 19:11:16 -08:00
drafts.py drafts: Migrate drafts to use @typed_endpoint. 2023-09-08 08:20:17 -07:00
email_mirror.py decorator: Rename internal_notify_view. 2024-02-15 15:42:50 -08:00
errors.py config_error: Support passing arguments specifying the "go back" link. 2024-03-05 11:53:51 -08:00
events_register.py register: Add client capability to not receive unknown users data. 2023-12-06 00:09:53 -08:00
health.py views: Add a /health healthcheck endpoint. 2023-09-20 09:53:59 -07:00
home.py page_params: Remove unused first_in_realm. 2024-02-08 10:08:15 -08:00
hotspots.py urls: Add a new endpoint for hotspot and deprecate the old one. 2023-12-06 18:19:20 -08:00
invite.py CVE-2024-21630: Check permission to subscribe others using invite link. 2024-01-24 17:41:10 -08:00
message_edit.py messages: Remove use of @overload in access_message. 2024-04-12 11:41:27 -07:00
message_fetch.py message_fetch: Take a REPEATABLE READ READ ONLY when fetching messages. 2024-04-12 09:35:10 -07:00
message_flags.py response: Remove "result: partially_completed" for success responses. 2023-09-18 13:18:24 -07:00
message_send.py message-type: Add support for "channel" as value for type parameter. 2024-04-11 09:40:25 -07:00
muted_users.py bots: Fix muting of cross realm bots. 2023-11-27 16:16:23 -08:00
presence.py models: Extract zerver.models.users. 2023-12-16 22:08:44 -08:00
push_notifications.py config_error: Support passing arguments specifying the "go back" link. 2024-03-05 11:53:51 -08:00
reactions.py messages: Use overloads to only return a user_message if needed. 2024-03-22 09:30:17 -07:00
read_receipts.py messages: Use overloads to only return a user_message if needed. 2024-03-22 09:30:17 -07:00
realm.py settings: Add permission to enforce unique names in realm. 2024-04-02 14:55:59 -07:00
realm_domains.py models: Extract zerver.models.realms. 2023-12-16 22:08:44 -08:00
realm_emoji.py ruff: Fix SIM300 Yoda conditions are discouraged. 2024-01-29 10:41:54 -08:00
realm_export.py migration: Rename extra_data_json to extra_data in audit log models. 2023-08-16 17:18:14 -07:00
realm_icon.py ruff: Fix SIM300 Yoda conditions are discouraged. 2024-01-29 10:41:54 -08:00
realm_linkifiers.py models: Extract zerver.models.linkifiers. 2023-12-16 22:08:44 -08:00
realm_logo.py ruff: Fix SIM300 Yoda conditions are discouraged. 2024-01-29 10:41:54 -08:00
realm_playgrounds.py realm_playgrounds: Refactor error handling for validation on creation. 2023-07-24 17:40:59 -07:00
registration.py settings: Add permission to enforce unique names in realm. 2024-04-02 14:55:59 -07:00
report.py csp_violations: Migrate has_request_variables to typed_endpoint. 2024-03-08 11:26:00 -08:00
scheduled_messages.py message-type: Add support for "channel" as value for type parameter. 2024-04-11 09:40:25 -07:00
sentry.py python: Use urlsplit instead of urlparse. 2023-12-05 13:03:07 -08:00
storage.py
streams.py compose_validate: Remove autosubscribe feature. 2024-03-28 09:06:48 -07:00
submessage.py messages: Use overloads to only return a user_message if needed. 2024-03-22 09:30:17 -07:00
thumbnail.py models: Move some functions to zerver.lib.attachments. 2023-12-16 22:08:44 -08:00
tutorial.py
typing.py message-type: Add support for "channel" as value for type parameter. 2024-04-11 09:40:25 -07:00
unsubscribe.py black: Reformat with Black 23. 2023-02-02 10:40:13 -08:00
upload.py python: Reformat with Ruff formatter. 2024-02-29 17:07:16 -08:00
user_groups.py models: Extract zerver.models.users. 2023-12-16 22:08:44 -08:00
user_settings.py settings: Add new web information density settings. 2024-03-27 12:58:32 -07:00
user_topics.py user_topics: Validate 'topic' parameter length <= max_topic_length. 2024-01-04 09:43:27 -08:00
users.py bots: Avoid multiple active bots with the same name. 2024-04-10 13:14:25 -07:00
video_calls.py video_calls: Add default password to zoom meetings. 2024-04-12 08:49:08 -07:00
zephyr.py ruff: Fix PLW0602 Using global but no assignment is done. 2023-01-04 16:25:07 -08:00