Skip to content

insights: Avoid a panic for the default sorting option when series have 0 points

Warren Gifford requested to merge insights/fix-recent-value into main

Created by: CristinaBirkel

Description

Fix for a panic we're seeing when there are zero points in a series.

Test plan

I was able to repro this bug locally by creating non-capture group insights with multiple series. After this change, there is no longer a panic while they backfill.

Merge request reports

Loading