oncall-engine/engine
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
..
apps Improve Jinja Template feedback and error handling (#884) 2022-11-28 09:46:51 -07:00
common Improve Jinja Template feedback and error handling (#884) 2022-11-28 09:46:51 -07:00
config_integrations Readme about how to add Integrations and Zabbix Integration (#653) 2022-11-02 22:58:47 +08:00
engine Move MobileAppAuthToken view to mobile_app (#902) 2022-11-28 12:50:58 +00:00
settings Improve Jinja Template feedback and error handling (#884) 2022-11-28 09:46:51 -07:00
static/images World, meet OnCall! 2022-06-03 08:09:47 -06:00
.dockerignore One startup command to rule them all (#760) 2022-11-07 16:34:43 +01:00
.gitignore local dev setup - fixes for some minor issues (#821) 2022-11-10 16:04:30 +01:00
celery_with_exporter.sh Add celery parameters to disable gossip, heartbeat, mingle (#907) 2022-11-28 14:18:27 +08:00
conftest.py Get rid of installation token + add a bunch of tests (#624) 2022-11-21 16:26:00 +01:00
Dockerfile local dev setup - fixes for some minor issues (#821) 2022-11-10 16:04:30 +01:00
manage.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
pyproject.toml World, meet OnCall! 2022-06-03 08:09:47 -06:00
requirements.txt One startup command to rule them all (#760) 2022-11-07 16:34:43 +01:00
tox.ini Add rule for jinja2.Template to remind common environment use 2022-11-07 15:40:49 -07:00
uwsgi.ini Update uwsgi.ini 2022-06-15 19:13:50 +03:00
wait_for_test_mysql_start.sh World, meet OnCall! 2022-06-03 08:09:47 -06:00