Lightning.Channels.PersistencePolicy (Lightning v2.19.0-pre)

View Source

Decides whether channel request/event payload fields are persisted, based on the project's retention_policy. PII fields are dropped from the attrs map before insert when persist_observations? is false, and the resulting ChannelRequest is marked is_wiped: true so the UI can render the wiped-payload affordance.

Summary

Functions

persist_observations?(project_id)

@spec persist_observations?(Ecto.UUID.t()) :: boolean()

wipe_event_attrs(attrs, list)

@spec wipe_event_attrs(map(), [{:persist_observations, boolean()}]) :: map()

wipe_request_attrs(attrs, list)

@spec wipe_request_attrs(map(), [{:persist_observations, boolean()}]) :: map()