oncall-engine/engine/apps/api/views
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
alert_group.py Mobile app messaging backend (#874) 2022-11-23 15:56:43 +00:00
alert_receive_channel.py Wrong team error for integrations and escalation chains pages 2022-09-12 17:30:45 +03:00
alert_receive_channel_template.py Improve Jinja Template feedback and error handling (#884) 2022-11-28 09:46:51 -07:00
alerts.py Add alert detail view (#385) 2022-08-19 14:03:07 +05:00
auth.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
channel_filter.py Insight logs (#348) 2022-08-24 12:04:44 +05:00
custom_button.py remove POST /api/internal/v1/custom_buttons/{id}/action (#734) 2022-10-28 10:44:37 +02:00
escalation_chain.py Wrong team error for integrations and escalation chains pages 2022-09-12 17:30:45 +03:00
escalation_policy.py Insight logs (#348) 2022-08-24 12:04:44 +05:00
features.py Mobile app messaging backend (#874) 2022-11-23 15:56:43 +00:00
gitops.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
integration_heartbeat.py Insight logs (#348) 2022-08-24 12:04:44 +05:00
live_setting.py Rename to validate_settings 2022-11-01 18:24:44 -06:00
maintenance.py Show only maintenances for current team (#287) 2022-07-25 11:09:06 +01:00
on_call_shifts.py Allow empty users when previewing a web schedule shift 2022-09-02 16:45:35 -03:00
organization.py Support mutliregion telegram (#676) 2022-10-25 14:53:07 +08:00
preview_template_options.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
public_api_tokens.py Fix deletion of public api tokens (#422) 2022-08-30 14:25:19 +01:00
resolution_note.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
route_regex_debugger.py Optimize alert group list view (#299) 2022-07-27 14:14:59 +03:00
schedule.py Update web schedule events to return all-day as datetimes 2022-11-02 16:12:37 -03:00
slack_channel.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
slack_team_settings.py Insight logs (#348) 2022-08-24 12:04:44 +05:00
subscription.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
team.py Mobile app messaging backend (#874) 2022-11-23 15:56:43 +00:00
telegram_channels.py Insight logs (#348) 2022-08-24 12:04:44 +05:00
test_insight_logs.py Fix propagation for the insight logger 2022-07-25 12:59:12 +04:00
user.py Move MobileAppAuthToken view to mobile_app (#902) 2022-11-28 12:50:58 +00:00
user_group.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
user_notification_policy.py Mobile app messaging backend (#874) 2022-11-23 15:56:43 +00:00