l.s.w.model : module documentation

Part of lp.services.webhooks

No module docstring
Function webhook_modified Update the date_last_modified property when a Webhook is modified.
Class Webhook See IWebhook.
Class WebhookSet See IWebhookSet.
Class WebhookTargetMixin Undocumented
Class WebhookJobType Values that IWebhookJob.job_type can take.
Class WebhookJob See IWebhookJob.
Class WebhookJobDerived No class docstring; 1/1 class methods, 0/2 methods documented
Class WebhookDeliveryJob A job that delivers an event to a webhook endpoint.
Function _redact_payload Redact a webhook payload for logging.
def webhook_modified(webhook, event):
Update the date_last_modified property when a Webhook is modified.

This method is registered as a subscriber to IObjectModifiedEvent events on Webhooks.

def _redact_payload(event_type, payload):
Redact a webhook payload for logging.

Webhook payloads don't generally contain anything that's particularly sensitive for the purposes of logging (i.e. no credentials), although they may contain information that's private to their target. However, we still don't want logs to be clogged up with excessive detail from long user-supplied text fields, so redact some fields that are known to be boring, and truncate any multi-line strings that may slip through.

API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.