oncall-engine/engine/apps
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
..
alerts Improve Jinja Template feedback and error handling (#884) 2022-11-28 09:46:51 -07:00
api Improve Jinja Template feedback and error handling (#884) 2022-11-28 09:46:51 -07:00
api_for_grafana_incident World, meet OnCall! 2022-06-03 08:09:47 -06:00
auth_token Mobile app messaging backend (#874) 2022-11-23 15:56:43 +00:00
base Mobile app messaging backend (#874) 2022-11-23 15:56:43 +00:00
email Allow no-auth SMTP connection for email notifications (#759) 2022-11-03 16:18:37 +00:00
grafana_plugin Get rid of installation token + add a bunch of tests (#624) 2022-11-21 16:26:00 +01:00
heartbeat Insight logs (#348) 2022-08-24 12:04:44 +05:00
integrations Check id instead of object to avoid unnecessary query 2022-10-28 15:45:51 -06:00
mobile_app Add internal API fields for the mobile app (#910) 2022-11-28 15:52:31 +00:00
oss_installation Conform URLs (#281) 2022-07-25 09:12:50 -06:00
public_api Cleanup on deletion/archivation of slack channel (#822) 2022-11-16 17:56:05 +08:00
schedules Fix web oncall calendars not loading (#891) 2022-11-23 20:19:52 +08:00
slack Merge pull request #836 from grafana/fix-warning-popup-on-slack-slash-command 2022-11-21 11:51:59 +01:00
social_auth Support of oncall-gw (#741) 2022-11-08 14:43:22 +08:00
telegram Support mutliregion telegram (#676) 2022-10-25 14:53:07 +08:00
twilioapp Add simple check if using API key instead of AUTH token 2022-11-09 21:52:42 -07:00
user_management Add internal API fields for the mobile app (#910) 2022-11-28 15:52:31 +00:00
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00