zulip/zerver
Sahil Batra c0029319f9 users: Pass realm as arg to select_related in fetch_users_by_id.
This commit updates select_related call to pass "realm" as
argument in select_related call in fetch_users_by_id function
as we only require realm for the UserProfile objects fetched
using fetch_users_by_id.

Also, note that "realm" is the only non-null foreign key field
in UserProfile object, so select_related() was only fetching
realm object previously as well. But we should still pass "realm"
as argument in select_related call so that we can make sure that
only required fields are selected in case we add more foreign
keys to UserProfile in future.
2023-07-20 10:44:39 -07:00
..
actions models: Remove select_related call in get_active_users. 2023-07-20 10:44:39 -07:00
data_import ruff: Fix UP032 Use f-string instead of `format` call. 2023-07-19 16:14:59 -07:00
integration_fixtures/nagios
lib users: Pass realm as arg to select_related in fetch_users_by_id. 2023-07-20 10:44:39 -07:00
management management: Add a reactivate-stream command. 2023-07-17 17:42:54 -07:00
migrations ruff: Fix B034 `re.split`, `re.sub` should pass keyword arguments. 2023-07-19 16:14:59 -07:00
openapi api-changelog: Add entry for feature level 193 updates. 2023-07-20 09:52:28 -07:00
tests ruff: Fix UP032 Use f-string instead of `format` call. 2023-07-19 16:14:59 -07:00
tornado mention: Send notifications for @topic wildcard mentions. 2023-07-17 09:39:24 -07:00
transaction_tests test_classes: Do not necessary wrap test cases in a transaction. 2023-07-06 11:44:50 -07:00
views reactions: Add error code for duplicate addition/removal. 2023-07-19 16:18:31 -07:00
webhooks ruff: Fix B034 `re.split`, `re.sub` should pass keyword arguments. 2023-07-19 16:14:59 -07:00
worker missed-message: Lock ScheduledMessageNotificationEmail rows. 2023-07-13 11:50:42 -07:00
__init__.py
apps.py requirements: Upgrade Python requirements. 2023-04-03 22:39:21 -07:00
context_processors.py emails: Add corporate_enabled to context for emails. 2023-05-01 10:32:43 -07:00
decorator.py logging_util: Remove dependence on get_current_request. 2023-07-11 22:23:47 -07:00
filters.py
forms.py python: Convert translated positional {} fields to {named} fields. 2023-07-18 15:19:07 -07:00
logging_handlers.py
middleware.py logging_util: Remove dependence on get_current_request. 2023-07-11 22:23:47 -07:00
models.py models: Remove select_related call in get_active_users. 2023-07-20 10:44:39 -07:00
signals.py