oncall-engine/engine/settings
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
base.py Improve Jinja Template feedback and error handling (#884) 2022-11-28 09:46:51 -07:00
ci-test.py Restore email notifications (#621) 2022-10-19 12:32:56 +01:00
dev.py One startup command to rule them all (#760) 2022-11-07 16:34:43 +01:00
helm.py Allow multiple database and celery broker types (#582) 2022-10-04 09:25:53 +01:00
hobby.py Allow multiple database and celery broker types (#582) 2022-10-04 09:25:53 +01:00
prod_without_db.py Mobile app messaging backend (#874) 2022-11-23 15:56:43 +00:00