oncall-engine/engine/apps/user_management/tests
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
..
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
factories.py Add multi-stack support for mobile app (#3500) 2023-12-13 09:00:18 +00:00
test_free_public_beta_subcription_strategy.py Phone provider refactoring (#1713) 2023-05-24 06:27:48 +00:00
test_organization.py Make type required when creating an escalation policy step (#4356) 2024-05-20 13:49:19 +00:00
test_region.py bump uwsgi to 2.0.26 + Python to 3.12.3 (#4495) 2024-06-10 15:33:37 -04:00
test_sync.py Speed up internal api endpoints (#4830) 2024-08-15 14:20:55 +00:00
test_team.py Setup team uniqueness at DB level (#4396) 2024-05-27 17:41:20 +00:00
test_user.py address Google OAuth2 issues where user didn't grant us the https://www.googleapis.com/auth/calendar.events.readonly scope (#4802) 2024-08-14 18:02:34 -04:00