Squidie.Runs.GraphInspection.Edge (squidie v0.3.2)

Copy Markdown View Source

Compatibility edge struct for run graph inspection.

Squidie.Inspection.GraphInspection.Edge is the canonical inspection namespace. This module preserves the original Squidie.Runs.* struct for existing callers and serializers.

Summary

Functions

Converts a canonical inspection edge into the compatibility struct.

Converts a compatibility edge into the canonical inspection struct.

Converts a compatibility edge into the stable host UI map shape.

Types

edge_status()

@type edge_status() :: :selected | :skipped | :pending | :blocked

edge_type()

@type edge_type() :: :transition | :dependency | :dynamic

t()

@type t() :: %Squidie.Runs.GraphInspection.Edge{
  condition: map() | nil,
  from: String.t(),
  id: String.t(),
  outcome: atom() | nil,
  recovery: atom() | nil,
  status: edge_status(),
  to: String.t(),
  type: edge_type()
}

Functions

from_inspection_edge(edge)

@spec from_inspection_edge(Squidie.Inspection.GraphInspection.Edge.t()) :: t()

Converts a canonical inspection edge into the compatibility struct.

to_inspection_edge(edge)

@spec to_inspection_edge(t()) :: Squidie.Inspection.GraphInspection.Edge.t()

Converts a compatibility edge into the canonical inspection struct.

to_map(edge)

@spec to_map(t()) :: map()

Converts a compatibility edge into the stable host UI map shape.