Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

insights: [spike] improve scoped insights missing data points #39883

@coury-clark

Description

@coury-clark

In Code Insights missing timeseries values are not recorded. That is to say for a repository set {A, B, C}, the matches {A: 5, B: 2} will save data for A and B but not for C. In the case of tracking migrations this hurts the experience somewhat, because values can never become zero (missing values are not recorded). To make it slightly more confusing, just-in-time insights (live preview) will show zeroes.

As an example (bottom is JIT and top is after saving):
image

We don't want (and can't in many cases) to fill out the missing value set with zeroes. For large insights this would be especially difficult / wasteful. Here are some potential ideas to improve this:

  1. For scoped insights populate the missing values and save with zeroes.
  2. Track the set of queried times (without repo cardinality) and join this set to the result to coalesce 0 in place of nulls

Metadata

Metadata

Assignees

Labels

backendAny issue that needs work in the backend to closecode-insightsIssues related to the Code Insights productspikeTime boxed investigation meant to facilitate more granular planning.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions