oncall-engine/engine/apps/user_management
Matias Bordese bba6eb333e
Add db indexes to user table (#3067)
Add composite indexes based on existing queries/usage, ensuring partial
index prefixes are useful too.

- `is_active` filtering is set in the default `User` manager
- most of our user queries are per `organization`
- multiple cases filter by `username` or `email` (most notably schedule
related queries, given the low-level backend ical representation)

Also rework how users are fetched from DB when getting users from
schedules ical representation (which was particularly slow when regex
filtering by required permission).

Related to https://github.com/grafana/oncall-private/issues/2163
2023-09-27 12:35:52 +00:00
..
migrations Add db indexes to user table (#3067) 2023-09-27 12:35:52 +00:00
models Add db indexes to user table (#3067) 2023-09-27 12:35:52 +00:00
subscription_strategy apps.get_model -> import (#2619) 2023-07-25 09:43:23 +00:00
tests Add mobile app push notifications for shift swap requests (#2717) 2023-08-02 12:26:45 +01:00
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
apps.py Update ical event/user email matching to be case-insensitive 2022-10-20 16:12:41 -03:00
exceptions.py Org soft-delete (#1073) 2023-01-05 12:42:55 +08:00
middlewares.py Add organization moved exception to mobile app auth (#2422) 2023-07-05 06:11:56 +00:00
signals.py add several new database columns + emit two new Django signals (#1522) 2023-04-14 09:15:57 +02:00
sync.py Re-enable a few mypy rules + fix existing errors (#2725) 2023-08-03 09:43:03 +00:00
user_representative.py apps.get_model -> import (#2619) 2023-07-25 09:43:23 +00:00