zulip/zerver
Alex Vandiver 6b6dcf6ce1 soft_deactivate: Handle multiple SUBSCRIPTION_DEACTIVATEDs.
Race conditions in stream unsubscription may lead to multiple
back-to-back SUBSCRIPTION_DEACTIVATED RealmAuditLog entries for the
same stream.  The current logic constructs duplicate UserMessage
entries for such, which then later fail to insert.

Keep a set of message-ids that have been prep'd to be inserted, so
that we don't duplicate them if there is a duplicated
SUBSCRIPTION_DEACTIVATED row.  This also renames the `message` local
variable, which otherwise overrode the `message` argument of a
different type.
2021-11-10 12:19:25 -08:00
..
data_import data_import: Ignore Rocket.Chat livechat streams/messages. 2021-11-07 09:50:55 -08:00
integration_fixtures/nagios tests: Add a test for fixtures for non-webhook integrations. 2021-04-28 08:16:51 -07:00
lib soft_deactivate: Handle multiple SUBSCRIPTION_DEACTIVATEDs. 2021-11-10 12:19:25 -08:00
management export: Remove `--delete-after-upload` flag in realm export. 2021-11-03 11:14:02 -07:00
migrations user_settings: Add option to disable escape key navigation to default view. 2021-10-29 18:15:30 -07:00
openapi openapi: Say message_content_delete_limit_seconds won't be 0 anymore. 2021-11-01 17:17:25 -07:00
tests saml: Refactor get_issuing_idp to rely on class polymorphism. 2021-11-10 12:08:56 -08:00
tornado lint: Fix typos found by codespell. 2021-10-19 16:51:13 -07:00
views links: Replace all references to Django docs to link to /3.2/ version. 2021-11-08 18:06:16 -08:00
webhooks webhooks/github: Include discussion ID in messages. 2021-10-26 17:52:57 -07:00
worker export: Remove `--delete-after-upload` flag in realm export. 2021-11-03 11:14:02 -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 auth: Add login buttons for web public access. 2021-10-05 16:30:40 -07:00
decorator.py push_notifications: Provide a hint when the server is not registered. 2021-10-19 12:17:30 -07:00
filters.py typing: Fix function signatures. 2021-08-20 05:54:19 -07:00
forms.py reset_password: Show user-facing page on rate-limit. 2021-11-04 20:34:39 -07:00
logging_handlers.py logging_handlers: Remove STAGING_ERROR_NOTIFICATIONS setting. 2021-07-07 09:26:02 -07:00
middleware.py lint: Fix typos found by codespell. 2021-10-19 16:51:13 -07:00
models.py links: Replace all references to Django docs to link to /3.2/ version. 2021-11-08 18:06:16 -08:00
signals.py python: Convert deprecated Django ugettext alias to gettext. 2021-04-15 18:01:34 -07:00