zulip/zerver
Sahil Batra 3dc82eed57 user_groups: Refactor code to compute user group objects.
This commit refactors code in user_groups_in_realm_serialized
such that we do not prefetch "can_mention_group__direct_members"
and "can_mention_group__direct_subgroups" using prefetch_related
and instead fetch members and subgroups for all groups in separate
queries and then use that data to find the members and subgroups
of the group used for that setting.

This change helps us in avoiding two prefetch queries for each
setting when we add more group settings.
2024-08-19 15:41:55 -07:00
..
actions streams: Update do_change...retention_days to send event on commit. 2024-08-19 10:14:49 -07:00
data_import rocketchat: Fix "OSError: [Errno 36] File name too long" error. 2024-08-14 18:18:31 -07:00
integration_fixtures/nagios
lib user_groups: Refactor code to compute user group objects. 2024-08-19 15:41:55 -07:00
management management: Add change_auth_backends command. 2024-08-14 14:04:46 -07:00
migrations migrations: Fix quoting bug in tutorial_status migration. 2024-08-17 22:17:21 -07:00
models user_profile: Remove 'tutorial_status' field. 2024-08-15 13:31:40 -07:00
openapi api-docs: Update topics array description in get-stream-topics response. 2024-08-15 18:27:43 -07:00
tests user_groups: Refactor code to compute user group objects. 2024-08-19 15:41:55 -07:00
tornado events: Migrate to typed_endpoint. 2024-07-31 17:10:06 -07:00
transaction_tests ruff: Bump target-version from py38 to py310. 2024-07-13 22:28:22 -07:00
views create stream: Bulk conversion of principals to UserProfiles. 2024-08-16 17:46:19 -07:00
webhooks integration-docs: Update Open Collective for new doc format. 2024-08-15 13:16:14 -07:00
worker thumbnail: Resolve a race condition when rendering messages. 2024-08-01 16:48:16 -07:00
__init__.py
apps.py ruff: Fix UP007 Use `X | Y` for type annotations. 2024-07-13 22:28:22 -07:00
context_processors.py ruff: Fix UP035 Import from `collections.abc`, `typing` instead. 2024-07-13 22:28:22 -07:00
decorator.py ruff: Fix UP035 Import from `collections.abc`, `typing` instead. 2024-07-13 22:28:22 -07:00
filters.py ruff: Fix UP007 Use `X | Y` for type annotations. 2024-07-13 22:28:22 -07:00
forms.py ruff: Fix UP007 Use `X | Y` for type annotations. 2024-07-13 22:28:22 -07:00
logging_handlers.py ruff: Fix UP007 Use `X | Y` for type annotations. 2024-07-13 22:28:22 -07:00
middleware.py ruff: Fix UP035 Import from `collections.abc`, `typing` instead. 2024-07-13 22:28:22 -07:00
signals.py ruff: Bump target-version from py38 to py310. 2024-07-13 22:28:22 -07:00