mirror of https://github.com/zulip/zulip.git
eca9088176
This commit strengthens types by typing the webhook's incoming payload as WildValue and taming the values of the payload before usage, which eradicates the use of Any within the UptimeRobot incoming webhook integration. The payload's values are now tamed, stored in variables and passed into message templates as opposed to passing in the payload dict as keyword arguments. The KeyError exception has been replaced to catch a ValidationError instead now, since the incoming payload's keys will be tamed before usage and the non-existence of the key is raised as a ValidationError in the taming function. |
||
---|---|---|
.. | ||
actions | ||
data_import | ||
integration_fixtures/nagios | ||
lib | ||
management | ||
migrations | ||
openapi | ||
tests | ||
tornado | ||
views | ||
webhooks | ||
worker | ||
__init__.py | ||
apps.py | ||
context_processors.py | ||
decorator.py | ||
filters.py | ||
forms.py | ||
logging_handlers.py | ||
middleware.py | ||
models.py | ||
signals.py |