oncall-engine/engine/common
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
..
api_helpers Improve Jinja Template feedback and error handling (#884) 2022-11-28 09:46:51 -07:00
constants World, meet OnCall! 2022-06-03 08:09:47 -06:00
custom_celery_tasks World, meet OnCall! 2022-06-03 08:09:47 -06:00
exceptions Remove auto-recreating logic for UserNotificationPolicy (#414) 2022-08-26 13:46:50 +05:00
insight_log user_id -> linked_user_id (#410) 2022-08-25 13:34:19 +05:00
jinja_templater Improve Jinja Template feedback and error handling (#884) 2022-11-28 09:46:51 -07:00
oncall_gateway Fix oncallGatewayClient 2022-11-08 16:27:36 +08:00
tests Improve Jinja Template feedback and error handling (#884) 2022-11-28 09:46:51 -07:00
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
admin.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
public_primary_keys.py Insight logs (#348) 2022-08-24 12:04:44 +05:00
utils.py Set DATA_UPLOAD_MAX_MEMORY_SIZE to 1mb (#393) 2022-08-24 11:59:01 +05:00