Skip to content

Add support of non existent in a timeframe data-points

Administrator requested to merge code-insights/insight-timeframe-problem into main

Created by: vovakulikov

Closes https://github.com/sourcegraph/sourcegraph/issues/20772

Important This PR should be merged together with https://github.com/sourcegraph/sourcegraph-search-insights/pull/5

If user set up their insights in a way to get a timeframe when repositories in the insight repositories field hadn't existed It breaks the insight and shows nothing at all but the error message. (see screenshot below)

Now we just skip points which we can't fetch because repositories haven't existed at that moment

BEFORE AFTER
image image

Merge request reports

Loading