oncall-engine/engine/apps/schedules
Yulya Artyukhina 64bf1e5096
Speed up internal api endpoints (#4830)
# What this PR does
Reduces number of calls to db for `/schedules`, `/alertgroups` and
`/users` endpoints.
Fixes the issue when there was an additional call to db to get
organization url to build user avatar full link.

## Which issue(s) this PR closes

Related to [issue link here]

<!--
*Note*: If you want the issue to be auto-closed once the PR is merged,
change "Related to" to "Closes" in the line above.
If you have more than one GitHub issue that this PR closes, be sure to
preface
each issue link with a [closing
keyword](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests#linking-a-pull-request-to-an-issue).
This ensures that the issue(s) are auto-closed once the PR has been
merged.
-->

## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.
2024-08-15 14:20:55 +00:00
..
ical_events Upgrade to django 4.2.6 and other deps updates (#3176) 2023-10-27 18:45:00 +00:00
migrations add missing db migrations + add additional backend db migration check to CI (#3234) 2023-10-31 16:00:55 -04:00
models Speed up internal api endpoints (#4830) 2024-08-15 14:20:55 +00:00
tasks Refactor gaps and empty shift checks (#3785) 2024-01-31 15:25:06 +01:00
tests Speed up internal api endpoints (#4830) 2024-08-15 14:20:55 +00:00
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
constants.py Optimize GET /schedules and /current_user_events internal api endpoints (#4169) 2024-04-11 14:46:51 +00:00
exceptions.py shift swap requests model + CRUD endpoints (#2597) 2023-07-21 19:35:19 +00:00
ical_utils.py Fix deleted schedule on getting on-call users from cache (#4763) 2024-07-31 15:17:08 +00:00