zulip/corporate/lib
Prakhar Pratyush 9c9866461a transaction: Add `durable=True` to the outermost db transactions.
This commit adds `durable=True` to the outermost db transactions
created in the following:
* confirm_email_change
* handle_upload_pre_finish_hook
* deliver_scheduled_emails
* restore_data_from_archive
* do_change_realm_subdomain
* do_create_realm
* do_deactivate_realm
* do_reactivate_realm
* do_delete_user
* do_delete_user_preserving_messages
* create_stripe_customer
* process_initial_upgrade
* do_update_plan
* request_sponsorship
* upload_message_attachment
* register_remote_server
* do_soft_deactivate_users
* maybe_send_batched_emails

It helps to avoid creating unintended savepoints in the future.

This is as a part of our plan to explicitly mark all the
transaction.atomic calls with either 'savepoint=False' or
'durable=True' as required.

* 'savepoint=True' is used in special cases.
2024-11-05 17:58:47 -08:00
..
__init__.py
activity.py corporate: Import corporate.lib.stripe lazily. 2024-09-24 18:18:26 -07:00
billing_types.py corporate: Use Literal types for upgrade parameters. 2024-09-24 18:18:26 -07:00
decorator.py corporate: Import corporate.lib.stripe lazily. 2024-09-24 18:18:26 -07:00
registration.py billing: Enforce manual license management for guest role changes. 2024-09-20 12:02:39 -07:00
remote_billing_util.py ruff: Fix UP007 Use `X | Y` for type annotations. 2024-07-13 22:28:22 -07:00
stripe.py transaction: Add `durable=True` to the outermost db transactions. 2024-11-05 17:58:47 -08:00
stripe_event_handler.py ruff: Fix E721 Use `isinstance()` for isinstance checks. 2024-08-01 16:46:58 -07:00
support.py support: Consolidate logic for generating support URLs. 2024-11-05 08:56:24 -08:00