zulip/zerver
Mateusz Mandera 89d1f1f385 messages: Eliminate redundant realm fetch in has_message_access.
Accessing .realm will cause a fetch query from the database if the
attribute hasn't been fetched already earlier in the codepath. That's
completely redundant if we're just comparing realms, and we should only
access .realm_id attribute. This seems to eliminate a query in some
codepaths, which is nice in this performance-sensitive function.
2023-01-10 15:27:55 -08:00
..
actions message send: Ignore alert words for presence idle users. 2023-01-06 17:08:20 -08:00
data_import uploads: Split out S3 and local file backends into separate files. 2023-01-09 18:23:58 -05:00
integration_fixtures/nagios
lib messages: Eliminate redundant realm fetch in has_message_access. 2023-01-10 15:27:55 -08:00
management ruff: Fix ISC001 Implicitly concatenated string literals on one line. 2023-01-04 16:25:07 -08:00
migrations uploads: Add LOCAL_AVATARS_DIR / LOCAL_FILES_DIR computed settings. 2023-01-09 18:23:58 -05:00
openapi docs: Link to management commands documentation in user facing docs. 2023-01-10 08:50:00 -08:00
tests messages: Eliminate redundant realm fetch in has_message_access. 2023-01-10 15:27:55 -08:00
tornado tornado: Move internal tornado redirect to under /internal/. 2023-01-09 18:23:58 -05:00
views uploads: Serve S3 uploads directly from nginx. 2023-01-09 18:23:58 -05:00
webhooks intercom: Return success on HEAD requests. 2023-01-06 13:32:47 -08:00
worker ruff: Fix PIE790 Unnecessary `pass` statement. 2023-01-04 16:25:07 -08:00
__init__.py
apps.py sentry: Initialize sentry in AppConfig ready hook. 2022-09-26 12:42:36 -07:00
context_processors.py apps: Fix redirect from /apps -> https://zulip.com/apps/. 2022-12-30 17:47:16 -08:00
decorator.py decorator: Do not send HEAD response with non-empty body. 2023-01-06 13:32:47 -08:00
filters.py
forms.py ruff: Fix ISC003 Explicitly concatenated string. 2023-01-04 16:25:07 -08:00
logging_handlers.py python: Use Python 3.8 typing.{Protocol,TypedDict}. 2022-04-27 12:57:49 -07:00
middleware.py Upgrade Python requirements. 2023-01-04 11:08:56 -08:00
models.py settings: Rename helper function to check who can edit topics. 2022-12-13 23:11:50 -08:00
signals.py requirements: Upgrade to Django 4.0. 2022-07-13 16:07:17 -07:00