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.

Insight filtered by context shows no data #45032

@nihaals

Description

@nihaals
  • Sourcegraph version: 4.2.0

Steps to reproduce:

  1. Create a context set to repo:^github\.com/sourcegraph/sourcegraph$ OR repo:^github\.com/sourcegraph/about$
  2. Create an insight ("Track changes" or "Detect and track patterns") for github.com/sourcegraph/sourcegraph with results
  3. Notice results on the graph
  4. Filter the insight to the created context
  5. Notice results disappear
  6. Edit the context to repo:^github\.com/sourcegraph/sourcegraph$
  7. Notice results show
  8. Edit the context to repo:^github\.com/sourcegraph/
  9. Notice the results show

Expected behavior:

The results show in all 3 cases (matching making a manual search query).

Actual behavior:

The results only show in 1 of the cases and shows no results in the other 2 cases (screenshot below).

image

Additional context:

This also affects creating an insight for all repos, this was just used as a MWE to make it more clear that the results should be included.

/cc @Joelkw @felixfbecker @vovakulikov

Metadata

Metadata

Labels

backendAny issue that needs work in the backend to closebugAn error, flaw or fault that produces an incorrect or unexpected result, or behavior.code-insightsIssues related to the Code Insights product

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