Render run list miniatures from compact per-stage route evidence
This commit is contained in:
@@ -15,7 +15,8 @@ const (
|
||||
|
||||
// RunEventFrame is the server-pushed run_event delta. It carries only the values
|
||||
// that changed, never the whole run: the run's identity, status, outcome, current
|
||||
// stage, completed-step count and timestamps, plus at most one changed step.
|
||||
// stage, completed-step count and timestamps, plus the latest changed step and
|
||||
// compact routing facts for all changed visits preserved during coalescing.
|
||||
// Every field is optional so an older peer ignores what it does not know and a
|
||||
// client can fold the frame into its cached run.
|
||||
//
|
||||
@@ -24,9 +25,13 @@ const (
|
||||
// from the frame instead of re-reading the whole list. They repeat on every
|
||||
// frame (pipeline identity never changes mid-run).
|
||||
type RunEventFrame struct {
|
||||
NotifyMode string `json:"notify_mode,omitempty"`
|
||||
RunID int64 `json:"run_id"`
|
||||
Workspace string `json:"workspace,omitempty"`
|
||||
// GraphEvidence seeds a complete compact snapshot; GraphVisits preserves
|
||||
// changed visits even when Step is replaced during frame coalescing.
|
||||
GraphEvidence *RunGraphEvidence `json:"graph_evidence,omitempty"`
|
||||
GraphVisits []RunGraphVisit `json:"graph_visits,omitempty"`
|
||||
NotifyMode string `json:"notify_mode,omitempty"`
|
||||
RunID int64 `json:"run_id"`
|
||||
Workspace string `json:"workspace,omitempty"`
|
||||
// PipelineID, Name, Title and Version identify the run's pipeline and its
|
||||
// operator-facing title, so a new run's row can be built without a fetch.
|
||||
PipelineID int64 `json:"pipeline_id,omitempty"`
|
||||
|
||||
Reference in New Issue
Block a user