zulip/zerver
Sahil Batra 63cc18a94b sync_ldap_user_data: Pass realm as arg to select_related.
This commit updates the select_related calls in queries
to get UserProfile objects in sync_ldap_user_data code
to pass "realm" as argument to select_related call.

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 sync_ldap_user_data: Pass realm as arg to select_related. 2023-07-20 10:44:39 -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 dev_login: Pass realm as arg to select_related calls. 2023-07-20 10:44:39 -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: Pass realm as arg to select_related in get_user_profile_by_email. 2023-07-20 10:44:39 -07:00
signals.py