zulip/zerver
Prakhar Pratyush d92eb77c98 add_subscriptions_backend: Add 'transaction.atomic' decorator.
This commit adds an 'transaction.atomic' decorator to the
'add_subscriptions_backend' view thus making the db operations
within the view atomic and helps to avoid race between events sent.

In tests where we make POST requests to this view, we have
wrapped the API calls with a transaction.atomic() context
manager. It helps us with NOT rolling back the entire test
transaction due to error responses.
2024-07-10 10:50:37 -07:00
..
actions settings: Add two realm settings to restrict direct messages. 2024-07-08 19:34:17 -07:00
data_import refactor: Rename `Huddle` Django model class to `DirectMessageGroup`. 2024-07-07 21:31:30 -07:00
integration_fixtures/nagios
lib add_subscriptions_backend: Add 'transaction.atomic' decorator. 2024-07-10 10:50:37 -07:00
management refactor: Rename `Huddle` Django model class to `DirectMessageGroup`. 2024-07-07 21:31:30 -07:00
migrations settings: Remove private_message_policy setting. 2024-07-08 19:34:17 -07:00
models onboarding: Modify message that welcome bot does not understand. 2024-07-09 13:08:02 -07:00
openapi settings: Remove private_message_policy setting. 2024-07-08 19:34:17 -07:00
tests test_subs: Use 'common_subscribe_to_streams' helper function. 2024-07-10 10:50:37 -07:00
tornado ruff: Fix FURB167 Use of regular expression alias. 2024-06-30 22:37:15 -07:00
transaction_tests user_groups: Create NamedUserGroup objects when creating new groups. 2024-04-26 17:03:09 -07:00
views add_subscriptions_backend: Add 'transaction.atomic' decorator. 2024-07-10 10:50:37 -07:00
webhooks integration-docs: Update Linear for new doc format. 2024-07-09 13:41:06 -07:00
worker requirements: Upgrade Python requirements. 2024-06-27 15:31:43 -07:00
__init__.py
apps.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
context_processors.py sentry: Untangle from page_params. 2024-06-22 18:53:56 -07:00
decorator.py test_decorators: Replace some deleted tests. 2024-03-29 09:39:34 -07:00
filters.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
forms.py emails: Replace occurrences of uri with url in email templates. 2024-05-24 11:18:35 -07:00
logging_handlers.py
middleware.py portico: Improve message for deactivated, invalid and moved orgs. 2024-05-13 12:44:20 -07:00
signals.py ruff: Fix UP036 Version block is outdated for minimum Python version. 2024-04-01 18:32:52 -07:00