oncall-engine/engine/apps/alerts/models
Michael Derynck 3582f9b08f
Improve Jinja Template feedback and error handling (#884)
* Improve feedback so template errors are given to user

* Add security error logging

* Add limits for templates, payloads, results

* Show popup error notification for webhook errors and template errors that don't have a result

* Update tests

* Split exceptions into warnings/errors to give more control when previewing, rendering, saving templates

* Limit title lengths

* Make TypeError a warning

* Adjust title length limit

* Remove length limiting on urlize since it is being done on template render

* Fix tests

* Add KeyError and ValueError to warnings

* No longer enforcing json result when saving webhook in case it is dependent on payload

* Add tests for expected exceptions coming from apply_jinja_template

* Update changelog

* Send raw post if template result is not JSON
2022-11-28 09:46:51 -07:00
..
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
alert.py Improve Jinja Template feedback and error handling (#884) 2022-11-28 09:46:51 -07:00
alert_group.py Add internal API fields for the mobile app (#910) 2022-11-28 15:52:31 +00:00
alert_group_counter.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
alert_group_log_record.py Optimize alert group list view (#299) 2022-07-27 14:14:59 +03:00
alert_manager_models.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
alert_receive_channel.py Use common environment for templates 2022-11-05 00:31:51 -06:00
channel_filter.py Cleanup on deletion/archivation of slack channel (#822) 2022-11-16 17:56:05 +08:00
custom_button.py Improve Jinja Template feedback and error handling (#884) 2022-11-28 09:46:51 -07:00
escalation_chain.py Insight logs (#348) 2022-08-24 12:04:44 +05:00
escalation_policy.py Insight logs (#348) 2022-08-24 12:04:44 +05: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 Alert group search (#488) 2022-09-06 11:30:12 +01: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