oncall-engine/engine/apps/alerts
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
..
escalation_snapshot Handle a exceptions on some retrying tasks 2022-09-01 11:39:47 -06:00
grafana_alerting_sync_manager Handle 404 for get_alerting_config 2022-11-18 17:07:39 +08:00
incident_appearance Improve Jinja Template feedback and error handling (#884) 2022-11-28 09:46:51 -07:00
incident_log_builder Not previously handled backends (eg. mobile) could end here without a messaging backend 2022-10-26 09:30:13 -03:00
migrations fix relation already exists (#660) 2022-10-18 14:04:27 +01:00
models Improve Jinja Template feedback and error handling (#884) 2022-11-28 09:46:51 -07:00
tasks Improve Jinja Template feedback and error handling (#884) 2022-11-28 09:46:51 -07:00
terraform_renderer World, meet OnCall! 2022-06-03 08:09:47 -06:00
tests Fix failing test related to users org caching 2022-10-25 14:27:27 -03:00
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
admin.py Alert group search (#488) 2022-09-06 11:30:12 +01:00
constants.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
integration_options_mixin.py Restore email notifications (#621) 2022-10-19 12:32:56 +01:00
representative.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
signals.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
utils.py Fix outgoing webhook to resolve IP from parsed hostname 2022-09-22 14:35:37 -03:00