zulip/zerver
Alex Vandiver c978bfaa32 models: Add a unique index on UserProfile.api_key.
This prevents `get_user_profile_by_api_key` from doing a sequential
scan.

Doing this requires moving the generation of initial api_key values
into the column definition, so that even bare calls to
`UserProfile.objects.create` (e.g. from tests) call appropriately
generate a random initial value.
2023-05-19 11:11:04 -07:00
..
actions scheduled-messages: Simplify message_to type in check_schedule_message. 2023-05-18 08:45:51 -07:00
data_import rocketchat: Treat users with "bot" roles as bots when importing. 2023-05-16 15:10:58 -07:00
integration_fixtures/nagios
lib models: Add a unique index on UserProfile.api_key. 2023-05-19 11:11:04 -07:00
management workers: Pass down if they are running multi-threaded. 2023-05-16 14:05:01 -07:00
migrations models: Add a unique index on UserProfile.api_key. 2023-05-19 11:11:04 -07:00
openapi api-changelog: Add 2.1.0 entry for realm_default_external_accounts. 2023-05-19 10:50:17 -07:00
tests test_timeout: Skip test_timeout_warn on Python 3.11 for coverage issue. 2023-05-18 11:52:22 -07:00
tornado tornado_url: Replace occurrences of uri with url. 2023-04-26 16:37:16 -07:00
views sentry: Add the observed user's IP address before forwarding. 2023-05-18 16:25:54 -07:00
webhooks integrations: Add support for MovieAdded Radarr hook. 2023-05-11 12:08:25 -07:00
worker realm_export: Handle hard head-of-queue failures. 2023-05-16 14:05:01 -07:00
__init__.py django: Upgrade Zulip to Django 3.2 LTS. 2021-05-03 08:36:22 -07:00
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 Remove statsd support. 2023-04-25 19:58:16 -07:00
filters.py typing: Fix function signatures. 2021-08-20 05:54:19 -07:00
forms.py accounts: Allow user to change email visibility during first login. 2023-05-16 13:52:56 -07:00
logging_handlers.py python: Use Python 3.8 typing.{Protocol,TypedDict}. 2022-04-27 12:57:49 -07:00
middleware.py middleware: Redirect non-canonical realm domain names. 2023-05-16 15:13:51 -07:00
models.py models: Add a unique index on UserProfile.api_key. 2023-05-19 11:11:04 -07:00
signals.py requirements: Upgrade to Django 4.0. 2022-07-13 16:07:17 -07:00