refactoring backfiller to support non-global iteration
Created by: coury-clark
Closes https://github.com/sourcegraph/sourcegraph/issues/36098 Closes https://github.com/sourcegraph/sourcegraph/issues/35580
Refactors the historical backfiller to support non globally scoped series in support of unifying insight behaviors. Some thoughts:
- Refactoring this was kind of a mess, and isn't necessarily in the state I'd like it to be. However it works and I'd like to get this merged so we can start to test this earlier than later. Happy for any suggestions, I feel like I'm going in circles on this.
- This has a very basic integration with the API, and only on the create path. Edits don't work yet. We have a separate issue here.
- We can toggle the behavior of the backfill with the feature flag
code_insights_deprecate_jit
. You can create an override for your user with this gql (replace the namespace with your user ID)
mutation CreateFeatureFlagOverride{
createFeatureFlagOverride(
namespace: "VXNlcjox",
flagName: "code_insights_deprecate_jit",
value: true,
){
__typename
}
}
- There isn't really any new test coverage on the scoped path. I'm going to add this in a follow up PR because it's somewhat non-trivial and this PR is already fairly complicated.
Test plan
I've tested a variety of scenarios locally, but by no means is exhaustive. Here is a screenshot of the dashboard showing a bunch of scoped (mostly using the query insights
) series.