zulip/zerver/actions
Sahil Batra 92c1dfc248 message_send: Optimize checking access to DM recipients.
We previously used get_accessible_user_ids to check whether the
sender can access all DM recipients, which was not efficient as
it queries the Message table. This commit updates the code to
make sure we use get_inaccessible_user_ids which is much more
efficient as it limits the queries to only DM recipients and
also queries the Message table only if needed.

This can still be optimized further as mentioned in #27835 but
this commit is a nice first step.
2023-12-14 08:14:09 -08:00
..
__init__.py
alert_words.py actions: Split out zerver.actions.alert_words. 2022-04-14 17:14:31 -07:00
bots.py migration: Rename extra_data_json to extra_data in audit log models. 2023-08-16 17:18:14 -07:00
create_realm.py remote_server: Rename maybe_enqueue_audit_log_upload. 2023-12-11 14:07:39 -08:00
create_user.py remote_server: Immediately send analytics on user count change. 2023-12-11 14:07:39 -08:00
custom_profile_fields.py users: Send events only to users who can access the modified user. 2023-11-21 23:58:45 -08:00
default_streams.py python: Convert translated positional {} fields to {named} fields. 2023-07-18 15:19:07 -07:00
hotspots.py events: Add 'onboarding_steps' event deprecating 'hotspots'. 2023-12-06 18:19:20 -08:00
invites.py python: Consistently use from…import for datetime. 2023-12-05 12:01:18 -08:00
message_delete.py models: Always search Messages with a realm_id or id limit. 2023-09-11 15:00:37 -07:00
message_edit.py message: Do not allow guest to mention inaccessible users. 2023-12-09 16:59:38 -08:00
message_flags.py python: Elide unnecessary list wrappers. 2023-09-13 12:41:23 -07:00
message_send.py message_send: Optimize checking access to DM recipients. 2023-12-14 08:14:09 -08:00
muted_users.py python: Consistently use from…import for datetime. 2023-12-05 12:01:18 -08:00
presence.py python: Consistently use from…import for datetime. 2023-12-05 12:01:18 -08:00
reactions.py settings: Add automatically follow and unmute topics policy settings. 2023-10-04 13:04:29 -07:00
realm_domains.py django: Use .exists() instead of .count() when possible. 2023-09-11 15:00:37 -07:00
realm_emoji.py docs: Fix grammar errors found by mwic. 2023-10-09 13:24:09 -07:00
realm_export.py migration: Rename extra_data_json to extra_data in audit log models. 2023-08-16 17:18:14 -07:00
realm_icon.py migration: Rename extra_data_json to extra_data in audit log models. 2023-08-16 17:18:14 -07:00
realm_linkifiers.py migration: Rename extra_data_json to extra_data in audit log models. 2023-08-16 17:18:14 -07:00
realm_logo.py django_api: Extract send_event_on_commit helper. 2023-06-19 13:42:40 -07:00
realm_playgrounds.py migration: Rename extra_data_json to extra_data in audit log models. 2023-08-16 17:18:14 -07:00
realm_settings.py realm_settings: Clear sessions outside transaction. 2023-12-12 09:20:47 -08:00
scheduled_messages.py python: Consistently use from…import for datetime. 2023-12-05 12:01:18 -08:00
streams.py streams: Send user remove events when deactivating streams. 2023-11-21 23:58:45 -08:00
submessage.py settings: Add automatically follow and unmute topics policy settings. 2023-10-04 13:04:29 -07:00
typing.py typing: Limit typing notifications in large streams. 2023-11-15 09:42:25 -08:00
uploads.py uploads: Rewrite comment in do_claim_attachments to improve clarity. 2023-08-15 10:08:11 -07:00
user_activity.py python: Consistently use from…import for datetime. 2023-12-05 12:01:18 -08:00
user_groups.py python: Consistently use from…import for datetime. 2023-12-05 12:01:18 -08:00
user_settings.py python: Consistently use from…import for datetime. 2023-12-05 12:01:18 -08:00
user_status.py users: Update presence and user status code to support restricted users. 2023-11-21 23:58:45 -08:00
user_topics.py python: Consistently use from…import for datetime. 2023-12-05 12:01:18 -08:00
users.py remote_server: Immediately send analytics on user count change. 2023-12-11 14:07:39 -08:00
video_calls.py