insights: Fix panic in aggregation results progress
Created by: CristinaBirkel
Description
We weren't initializing the progress
field in the searchAggregationResults
. This fixes that. (Credit to @leonore !)
Test plan
This panic was initially discovered on k8s
, and can be repro'd locally by adding in a line to /internal/search/streaming/api/progress.go
at line 19
:
stats.Timedout = []api.RepoID{1, 2}
Once the repro is verified, this fix can be applied to verify that it fixes the panic.