Commit 2166998
committed
fix(ci): destructure timeline API records in stream_active_logs/2
Same bug as render_timeline_diff/2 (fixed in 0be521c): the Azure
DevOps timeline API returns {"records": [...]}, not a bare
list. Without the %{"records" => records} pattern, the
Enum.filter/2 on line 193 would iterate over a map's key/value
pairs as tuples {"records", [...]} instead of the actual
record maps, and the reduction in stream_active_logs/2 would
never find matching records (because r["state"] and r["log"]
would be nil on the tuple {"records", [...]}).
This is the second and final call site of fetch_timeline/3
(the first was fixed earlier).1 parent 2a35f32 commit 2166998
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
| 191 | + | |
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| |||
0 commit comments