zulip/zerver/actions
Prakhar Pratyush fdf90f7ad1 create_user: Handle integrity error when importing settings.
During account creation when a user opted to import settings
from an existing account, the "Mark visibility_policy_banner as
read" step was raising integrity error.

It is because 'copy_onboarding_steps' is already executed earlier
in the 'do_create_user' codeflow. If the source profile had already
marked 'visibility_policy_banner' as read, we were facing integrity
error.

This commit fixes the bug.
2024-10-31 09:55:01 -07:00
..
__init__.py
alert_words.py actions: Use 'durable=True' in outermost transaction.atomic block. 2024-09-03 09:17:38 -07:00
bots.py audit-log: Move user event types to AuditLogEventType enum. 2024-09-09 11:50:13 -07:00
create_realm.py settings: Add `can_move_messages_between_channels_group` realm setting. 2024-10-16 14:26:18 -07:00
create_user.py create_user: Handle integrity error when importing settings. 2024-10-31 09:55:01 -07:00
custom_profile_fields.py custom_profile_fields: Make transaction no longer durable. 2024-10-14 16:30:46 -07:00
default_streams.py ruff: Fix UP035 Import from `collections.abc`, `typing` instead. 2024-07-13 22:28:22 -07:00
invites.py analytics: Pass subgroup=None to improve indexing. 2024-10-02 14:11:44 -04:00
message_delete.py delete_message: Fix recipients of "delete_message" event. 2024-10-07 11:35:06 -07:00
message_edit.py attachments: Return a list of removed attachments while editing. 2024-09-06 11:40:51 -07:00
message_flags.py django_api: Rename 'send_event' to 'send_event_rollback_unsafe'. 2024-09-20 15:20:18 -07:00
message_send.py do_deactivate_stream: Remove unnecessary mutations. 2024-10-25 16:06:42 -07:00
muted_users.py audit-log: Move user muted event types to AuditLogEventType enum. 2024-09-09 11:50:13 -07:00
onboarding_steps.py onboarding_steps: Send event on commit in mark onboarding_step as read. 2024-08-12 12:16:14 -07:00
presence.py django_api: Rename 'send_event' to 'send_event_rollback_unsafe'. 2024-09-20 15:20:18 -07:00
reactions.py reaction: Use the generic 'event_recipient_ids_for_action_on_messages'. 2024-10-07 11:35:06 -07:00
realm_domains.py audit-log: Move realm event types to AuditLogEventType enum. 2024-09-09 11:50:13 -07:00
realm_emoji.py audit-log: Move realm event types to AuditLogEventType enum. 2024-09-09 11:50:13 -07:00
realm_export.py realm_export: Add a RealmAuditLog entry for delete operation. 2024-10-04 14:17:20 -07:00
realm_icon.py audit-log: Move realm event types to AuditLogEventType enum. 2024-09-09 11:50:13 -07:00
realm_linkifiers.py audit-log: Move realm event types to AuditLogEventType enum. 2024-09-09 11:50:13 -07:00
realm_logo.py audit-log: Move realm event types to AuditLogEventType enum. 2024-09-09 11:50:13 -07:00
realm_playgrounds.py audit-log: Move realm event types to AuditLogEventType enum. 2024-09-09 11:50:13 -07:00
realm_settings.py settings: Remove `edit_topic_policy` setting. 2024-10-29 16:27:04 -07:00
saved_snippets.py saved_snippets: Add backend for saved snippets. 2024-09-24 15:27:58 -07:00
scheduled_messages.py scheduled_messages: Remove separate logfile. 2024-10-04 14:22:37 -07:00
streams.py do_deactivate_stream: Remove unnecessary mutations. 2024-10-25 16:06:42 -07:00
submessage.py submessage: Fix recipients of "submessage" event. 2024-10-07 11:35:06 -07:00
typing.py django_api: Rename 'send_event' to 'send_event_rollback_unsafe'. 2024-09-20 15:20:18 -07:00
uploads.py upload: Explicitly return a bool and the Attachment object. 2024-09-09 12:40:17 -07:00
user_activity.py queue_processors: Process user_activity in one query. 2024-01-22 16:25:13 -08:00
user_groups.py user_groups: Add can_leave_group setting for user group. 2024-10-14 11:44:27 -07:00
user_settings.py realm_export: Add realm_export_consent feature to API. 2024-10-18 14:08:20 -07:00
user_status.py actions: Use 'durable=True' in outermost transaction.atomic block. 2024-09-03 09:17:38 -07:00
user_topics.py ruff: Fix UP007 Use `X | Y` for type annotations. 2024-07-13 22:28:22 -07:00
users.py update_user_backend: Allow authorized org owners to change user emails. 2024-10-22 16:36:38 -07:00
video_calls.py video_calls: Update do_set_zoom_token to send event on commit. 2024-08-12 12:16:14 -07:00