zulip/zerver/views
madrix01 a1e71e8639 topic: Return JsonableError for race condition in topic mute.
To avoid an uncaught IntegrityError causing a 500 HTTP response in a
race between two processes trying to mute a topic, we catch the
integrity error and raise the error exception with status 400 we'd
have gotten if the second request had been a bit later.

Fixes #21011.
2022-02-09 14:35:12 -08:00
..
development backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
__init__.py
alert_words.py backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
attachments.py backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
auth.py backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
compatibility.py backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
custom_profile_fields.py backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
digest.py mypy: Fix most AnonymousUser type errors. 2021-07-24 14:55:46 -07:00
documentation.py docs: Fix many spelling mistakes. 2022-02-07 18:51:06 -08:00
drafts.py backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
email_mirror.py backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
events_register.py backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
home.py home: Simplify and comment terms of service notice implementation. 2022-02-04 15:48:38 -08:00
hotspots.py backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
invite.py backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
message_edit.py backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
message_fetch.py backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
message_flags.py backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
message_send.py backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
muting.py topic: Return JsonableError for race condition in topic mute. 2022-02-09 14:35:12 -08:00
portico.py portico: Use /help/ style pages for displaying policies. 2021-12-10 17:56:12 -08:00
presence.py backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
push_notifications.py backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
reactions.py backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
realm.py backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
realm_domains.py backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
realm_emoji.py backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
realm_export.py backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
realm_icon.py backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
realm_linkifiers.py backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
realm_logo.py backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
realm_playgrounds.py backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
registration.py docs: Fix many spelling mistakes. 2022-02-07 18:51:06 -08:00
report.py backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
storage.py backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
streams.py backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
submessage.py backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
thumbnail.py requirements: Remove Thumbor. 2021-05-06 20:07:32 -07:00
tutorial.py backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
typing.py backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
unsubscribe.py get_object_from_key: Accept multiple allowed Confirmation types. 2021-12-02 09:50:41 -08:00
upload.py backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
user_groups.py backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
user_settings.py backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
users.py docs: Fix many spelling mistakes. 2022-02-07 18:51:06 -08:00
video_calls.py backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
zephyr.py backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00