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

insights: Only send repo criteria at the insight level#49633

Merged
chwarwick merged 2 commits intomainfrom
cw/detect-track-repocriteria
Mar 17, 2023
Merged

insights: Only send repo criteria at the insight level#49633
chwarwick merged 2 commits intomainfrom
cw/detect-track-repocriteria

Conversation

@chwarwick
Copy link
Contributor

@chwarwick chwarwick commented Mar 17, 2023

Detect & Track insights were sending conflicting insight and series level repo information. This caused the series level data to override the insight level. The series level was not including the repo search and it was being mistaken for an "all repos" insight.

resolves https://github.com/sourcegraph/sourcegraph/issues/49631

Test plan

Create a detect & track insight with repos specified as a repo search.
After creation go to edit to view insight ensure the repo search is still specified.
Verify insight only contains data from expected repos.

App preview:

Check out the client app preview documentation to learn more.

@sg-e2e-regression-test-bob
Copy link

sg-e2e-regression-test-bob commented Mar 17, 2023

Bundle size report 📦

Initial size Total size Async size Modules
0.00% (0.00 kb) -0.00% (-0.05 kb) -0.00% (-0.05 kb) 0.00% (0)

Look at the Statoscope report for a full comparison between the commits 006e8ae and a720267 or learn more.

Open explanation
  • Initial size is the size of the initial bundle (the one that is loaded when you open the page)
  • Total size is the size of the initial bundle + all the async loaded chunks
  • Async size is the size of all the async loaded chunks
  • Modules is the number of modules in the initial bundle

@chwarwick chwarwick merged commit 7d9e8d5 into main Mar 17, 2023
@chwarwick chwarwick deleted the cw/detect-track-repocriteria branch March 17, 2023 20:17
github-actions bot pushed a commit that referenced this pull request Mar 17, 2023
Detect & Track insights were sending conflicting insight and series
level repo information. This caused the series level data to override
the insight level. The series level was not including the repo search
and it was being mistaken for an "all repos" insight.

resolves https://github.com/sourcegraph/sourcegraph/issues/49631

(cherry picked from commit 7d9e8d5)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

insights: Repo search criteria is not applied to Detect & Track insights

3 participants