Skip to content

insights: remove interval step reset when toggling all repos during creation

Administrator requested to merge cw/fix-preview-range-shift into main

Created by: chwarwick

During insight creation removes the changes to the step between data points when the user switches from scoped to all repos.

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

Test plan

In Search Insight creation:

  • enter an repo and search query
  • update interval to 4 weeks
  • preview loads
  • check all repos
  • validate that time interval remains at 4 weeks

In Detect and Track Insight creation:

  • enter an repo and search query
  • update interval to 4 weeks
  • preview loads
  • check all repos
  • validate that time interval remains at 4 weeks

App preview:

Check out the client app preview documentation to learn more.

Merge request reports

Loading