Skip to content

Add async repo resolve step for 1 click code insight creation flow

Created by: vovakulikov

Close https://github.com/sourcegraph/sourcegraph/issues/22005

In 1 click creation UI flow we're getting query value from URL query param and trying to break down this query into insight parts - series query and repositories. Before this PR we did FE processing for repositories value with FE query parsers and extract repository names from repo: filter value

But this FE logic about extraction isn't reliable in many cases

repo:^github.com/sourcegraph/sourcegraph-
repo:^github.com/sourcegraph/.*\.js$
repo:^github.com/sourcegraph/sourcegraph-(sourcegraph|about)$

In order to support all possible cases, this PR adds a search resolver via search API and uses search results instead of runtime regexp processed values from URL.

Merge request reports

Loading