Lightning.DataclipScrubber (Lightning v2.15.0-pre5)

View Source

Handles scrubbing of dataclips

Summary

Functions

Returns an Ecto query for credentials (with project env) used in the same run or earlier steps.

Returns webhook auth methods for an http_request dataclip by traversing: dataclip -> work_order -> trigger -> webhook_auth_methods

Returns webhook auth methods for a step by traversing: step -> run_step -> run -> work_order -> trigger -> webhook_auth_methods

Functions

credentials_for_step(step_id, started_at)

Returns an Ecto query for credentials (with project env) used in the same run or earlier steps.

Uses a self-join on RunStep to leverage existing indexes.

scrub_dataclip_body!(dataclip)

@spec scrub_dataclip_body!(%{body: String.t() | nil, type: atom(), id: Ecto.UUID.t()}) ::
  String.t() | nil

webhook_auth_methods_for_dataclip(dataclip_id)

Returns webhook auth methods for an http_request dataclip by traversing: dataclip -> work_order -> trigger -> webhook_auth_methods

webhook_auth_methods_for_step(step_id)

Returns webhook auth methods for a step by traversing: step -> run_step -> run -> work_order -> trigger -> webhook_auth_methods