oncall-engine/engine/apps/alerts/models
Vadim Stepanov 16bbfbbe73
Alert list view & caching rework (#216)
* remove cache usage in AlertGroupView

* remove CustomSearchFilter

* remove caching for alerts

* remove readonly db setup

* render templates on alert creation

* serialize only necessary fields on alert groups list

* optimize AlertGroupListSerializer

* return on-demand templating for alerts

* return on-demand templating for alert groups

* use CursorPaginator

* remove templating on alert create

* pass alert to AlertGroupWebRenderer

* alert_count -> alerts_count

* make sql joins after pagination

* add migration

* bring alert.save() back

* fix tests

* fix tests

* fix tests

* add perpage query param

* add cursor pagination to incidents page

* remove cached_render_for_web usage

* post merge fix

* keep cursor

* lint

* remove get_alert_groups_and_days_for_previous_same_period

* fix pagination on navigate

* refine search_fields on AlertGroupView

Co-authored-by: Maxim <hello.makson@gmail.com>
Co-authored-by: Maxim <maxim.mordasov@grafana.com>
2022-07-14 15:19:25 +01:00
..
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
alert.py Alert list view & caching rework (#216) 2022-07-14 15:19:25 +01:00
alert_group.py Alert list view & caching rework (#216) 2022-07-14 15:19:25 +01:00
alert_group_counter.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
alert_group_log_record.py Alert list view & caching rework (#216) 2022-07-14 15:19:25 +01:00
alert_manager_models.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
alert_receive_channel.py Alert list view & caching rework (#216) 2022-07-14 15:19:25 +01:00
channel_filter.py Fix linting 2022-06-13 11:43:24 +03:00
custom_button.py Reshape webhook payload 2022-07-13 14:54:53 +04:00
escalation_chain.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
escalation_policy.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
grafana_alerting_contact_point.py Fix creation contact points for grafana alerting integration 2022-06-16 17:16:31 +03:00
invitation.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
maintainable_object.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
resolution_note.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
user_has_notification.py World, meet OnCall! 2022-06-03 08:09:47 -06:00