mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
Fixes ##31935. do_update_user_custom_profile_data_if_change can't be durable as it's invoked within `sync_ldap_user_data`, which is already in transaction.atomic. This change requires a few additional tweaks to untangle other related transactions. The top level view functions up the codepath now use durable=True. check_remove_custom_profile_field_value is called inside do_update_user, so it no longer can be durable and should be switched to savepoint=False. In turn, its remaining caller - the view remove_user_custom_profile_data - gets switched to durable=True.
12 KiB
12 KiB