Render run list miniatures from compact per-stage route evidence
This commit is contained in:
@@ -173,6 +173,9 @@ func (h *runEventHub) remove(sub *runSubscription) {
|
||||
// A terminal transition flushes any pending delta first, then the terminal frame
|
||||
// immediately, so a client always observes the final state as its own frame.
|
||||
func (h *runEventHub) emit(frame protocol.RunEventFrame, terminal bool) {
|
||||
if step := frame.Step; step != nil {
|
||||
frame.GraphVisits = append(frame.GraphVisits, protocol.RunGraphVisit{Sequence: step.Sequence, Stage: step.Stage, Status: step.Status, Outcome: step.Outcome, Target: step.Target})
|
||||
}
|
||||
if h == nil || frame.RunID <= 0 {
|
||||
return
|
||||
}
|
||||
@@ -470,6 +473,7 @@ func mergeRunEventFrame(into, in *protocol.RunEventFrame) {
|
||||
if in.Step != nil {
|
||||
into.Step = in.Step
|
||||
}
|
||||
into.GraphVisits = append(into.GraphVisits, in.GraphVisits...)
|
||||
}
|
||||
|
||||
// handleRunEvents dispatches one subscribe/unsubscribe request and reports
|
||||
@@ -505,6 +509,7 @@ func handleRunEvents(request protocol.Message, events *runEventHub, runs *runner
|
||||
continue
|
||||
}
|
||||
frame := protocol.RunEventFrame{
|
||||
GraphEvidence: summary.GraphEvidence,
|
||||
NotifyMode: summary.NotifyMode,
|
||||
RunID: summary.ID,
|
||||
Workspace: summary.Workspace,
|
||||
|
||||
Reference in New Issue
Block a user