Preserve leases needing recovery
This commit is contained in:
@@ -80,7 +80,7 @@ func AggregateQuota(events []domain.Event, from, to time.Time) map[string]float6
|
||||
func StandupItems(tasks []domain.Task) []StandupItem {
|
||||
out := make([]StandupItem, 0)
|
||||
for _, t := range tasks {
|
||||
if t.State == domain.StateQueued || t.State == domain.StateLeased || t.State == domain.StateBlocked {
|
||||
if t.State == domain.StateQueued || t.State == domain.StateLeased || t.State == domain.StateNeedsAttention || t.State == domain.StateBlocked {
|
||||
out = append(out, StandupItem{t.ID, t.State, t.Title})
|
||||
}
|
||||
}
|
||||
@@ -108,6 +108,8 @@ func BuildBrief(events []domain.Event, from, to time.Time, git map[string]GitSyn
|
||||
case "TaskBlocked":
|
||||
b.Blocked++
|
||||
b.NeedsAttention = append(b.NeedsAttention, e)
|
||||
case "TaskNeedsAttention":
|
||||
b.NeedsAttention = append(b.NeedsAttention, e)
|
||||
case "ApprovalRequested":
|
||||
b.NeedsAttention = append(b.NeedsAttention, e)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user