oncall-engine/engine/apps/integrations/tests
Michael Derynck d14b1c8e28
Improve performance for rate-limited, banned and deleted integrations (#4137)
# What this PR does
- Remove BanAlertConsumptionBasedOnSettingsMiddleware under high traffic
scenarios this causes too much DB load and the same effect can be
achieved by soft-deleting the integration
- Change lookups for integrations so that non-existent and deleted
integrations are also cached to reduce DB load

## Which issue(s) this PR closes

Closes https://github.com/grafana/oncall-private/issues/2608

<!--
*Note*: 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-04-04 18:05:34 +00:00
..
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
test_heartbeat_metadata.py Remove integration html instructions (#2627) 2023-07-25 04:31:28 +00:00
test_integration_backsync.py Integtation backsync endpoint (#4082) 2024-03-20 11:26:33 +00:00
test_legacy_alertmanager.py Polish amv2 (#2701) 2023-08-01 13:13:58 +08:00
test_ratelimit.py Fix ratelimit bug (#4108) 2024-03-26 17:20:05 +00:00
test_tasks.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
test_views.py Improve performance for rate-limited, banned and deleted integrations (#4137) 2024-04-04 18:05:34 +00:00