zulip/zerver/actions
Sahil Batra 7adc83d2a0 streams: Optimize code for computing stream objects.
This commit updates code to optimize code for computing stream
objects to be sent with stream creation event and in response
for 'GET /streams/{stream_id}' endpoint by optimizing number
of queries while computing values for group permission settings.

This change does not benefit much currently as we only have one
stream group permission setting, but is important before we add
more stream permission settings.

There are a couple of places left where we can still optimize
the code and that would be done in further commits.
2024-11-18 11:55:19 -08: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 change_realm_subdomain: Revoke user sessions. 2024-11-10 19:13:14 -08:00
create_user.py create_user: Add `savepoint=False` to avoid creating savepoints. 2024-11-05 17:58:47 -08: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 transaction: Add durable=True to outermost transaction.atomic decorator. 2024-11-01 16:41:15 -07: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 user_groups: Define AnonymousSettingGroupDict in types.py. 2024-11-15 16:36:37 -08: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 streams: Optimize code for computing stream objects. 2024-11-18 11:55:19 -08: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: Define AnonymousSettingGroupDict in types.py. 2024-11-15 16:36:37 -08: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 streams: Optimize code for computing stream objects. 2024-11-18 11:55:19 -08:00
video_calls.py video_calls: Update do_set_zoom_token to send event on commit. 2024-08-12 12:16:14 -07:00