oncall-engine/engine/common/api_helpers
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
custom_fields.py Add oncall shift endpoint to internal api 2022-07-12 13:59:17 +03:00
exceptions.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
filters.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
mixins.py Improve Jinja Template feedback and error handling (#884) 2022-11-28 09:46:51 -07:00
optional_slash_router.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
paginators.py Use create_engine_url to add prefix to previous/next links (#553) 2022-09-23 10:45:28 +01:00
utils.py Add shift preview endpoint for web schedule 2022-08-16 10:50:16 -03:00