oncall-engine/engine/apps/schedules
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
..
ical_events apps.get_model -> import (#2619) 2023-07-25 09:43:23 +00:00
migrations Add mobile app push notifications for shift swap requests (#2717) 2023-08-02 12:26:45 +01:00
models Refactoring/optimizing some bits in schedule views (#3039) 2023-09-20 11:49:58 +00:00
tasks Notify user when their shift swap request is taken (#2992) 2023-09-07 14:59:54 +00:00
tests Fix returned shift PK in current user events endpoint (#3036) 2023-09-18 17:49:21 +00:00
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
constants.py Fix returned shift PK in current user events endpoint (#3036) 2023-09-18 17:49:21 +00:00
exceptions.py shift swap requests model + CRUD endpoints (#2597) 2023-07-21 19:35:19 +00:00
ical_utils.py Add db indexes to user table (#3067) 2023-09-27 12:35:52 +00:00