oncall-engine/engine/apps/alerts/models
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 User notifications bundle (#4457) 2024-07-16 11:24:08 +00:00
alert.py Handle alert group deleted when task is already queued (#4230) 2024-04-16 14:39:00 +00:00
alert_group.py Speed up internal api endpoints (#4830) 2024-08-15 14:20:55 +00:00
alert_group_counter.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
alert_group_log_record.py Speed up internal api endpoints (#4830) 2024-08-15 14:20:55 +00:00
alert_manager_models.py Enable flake8-bugbear, fix issues (#3454) 2023-11-29 15:04:48 +00:00
alert_receive_channel.py Fix deleting integration with connected webhooks (#4237) 2024-04-16 17:02:41 +00:00
alert_receive_channel_connection.py SNOW external ID (#4076) 2024-03-20 10:54:27 +00:00
channel_filter.py Allow routing via labels on the Integration page (#3850) 2024-07-15 07:43:40 +00:00
custom_button.py cleanup CustomButton backend code + add ngrok/express outgoing webhook e2e test (#2544) 2024-03-28 15:37:22 +00:00
escalation_chain.py re-enable mypy GitHub Actions CI job (#2390) 2023-06-29 14:01:52 +00:00
escalation_policy.py Rename notify whole Slack channel (#4577) 2024-06-25 10:19:12 -04:00
grafana_alerting_contact_point.py Improve getting/updating contact points for Grafana Alerting integration (#2742) 2023-08-18 12:12:29 +02:00
invitation.py Trigger alert group signal after transaction commit (#3001) 2023-09-11 14:28:37 +00:00
maintainable_object.py Improve OpenAPI schema coverage (#3629) 2024-01-12 15:11:22 +00:00
resolution_note.py Speed up internal api endpoints (#4830) 2024-08-15 14:20:55 +00:00
user_has_notification.py User notifications bundle (#4457) 2024-07-16 11:24:08 +00:00
user_notification_bundle.py Fix notification plan builder (#4726) 2024-07-24 15:49:03 +00:00