mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 06:53:25 +00:00
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.
95 KiB
95 KiB