Harden worker federation and operator UI
This commit is contained in:
@@ -155,6 +155,14 @@ func (s *Store) apply(e domain.Event) error {
|
||||
case "TaskBlocked":
|
||||
t.State = domain.StateBlocked
|
||||
t.Lease = nil
|
||||
t.Blocker, _ = p["blocker"].(string)
|
||||
t.BlockedAt = e.At
|
||||
t.LastPaneID, _ = p["pane_id"].(string)
|
||||
t.LastHarness, _ = p["harness_id"].(string)
|
||||
t.PaneState, _ = p["pane_state"].(string)
|
||||
if t.PaneState == "" {
|
||||
t.PaneState = "unknown"
|
||||
}
|
||||
case "TaskAmended":
|
||||
if v, ok := p["title"].(string); ok {
|
||||
t.Title = v
|
||||
|
||||
Reference in New Issue
Block a user