# What this PR does Fixes slow internal`GET /schedules` endpoints. Using the fake-data generation script in #1128, I generated 65 calendar schedules in my local setup. This resulted in the following endpoint performance:  The responses which show ~76 queries were run on the latest `dev` branch. Responses w/ ~26 queries were run on this branch. Additionally: - add typing to a few methods in `apps/schedules/ical_utils.py` - document `apps/api/permissions/__init__.py:user_is_authorized` function ## Which issue(s) this PR fixes https://github.com/grafana/oncall-private/issues/1552 ## Checklist - [ ] Tests updated - [ ] Documentation added - [ ] `CHANGELOG.md` updated Co-authored-by: Vadim Stepanov <vadimkerr@gmail.com> |
||
|---|---|---|
| .. | ||
| test_scenario_steps | ||
| __init__.py | ||
| conftest.py | ||
| factories.py | ||
| test_create_message_blocks.py | ||
| test_parse_slack_usernames.py | ||
| test_populate_slack_channels.py | ||
| test_reset_slack.py | ||
| test_user_group.py | ||