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.

Clicking an Insight data point mangles query content param #57323

@AJKemps

Description

@AJKemps
  • Sourcegraph version: 5.1.4
  • Platform information:

It also mangles the content: options in the queries with the queries it generates... it adds regex-style slashes to the content: option values, which I need to remove in order to make the query valid. Any chance you could create a bug report for that issue?

Steps to reproduce:

  1. Have an Insights graph
  2. Click a data point in that Insights graph

Expected behavior:

this portion of the query below
-content:"NPM_CONFIG_UPDATE_NOTIFIER"
does not get mangled into
-content:/"NPM_CONFIG_UPDATE_NOTIFIER"/

file:^(?:app/)?Dockerfile select:repo 
-content:"NPM_CONFIG_UPDATE_NOTIFIER"
/^FROM.*node[^0-9]*(15|16|17|18|19|20|lts|latest)/ patternType:regexp 

Actual behavior:

repo:telus/.* repo:has.topic(telus-digital) after:2023-08-12T18:04:00Z
before:2023-08-15T18:04:00Z type:diff file:^(?:app/)?Dockerfile
select:repo (-content:/"NPM_CONFIG_UPDATE_NOTIFIER"/ AND /^FROM.*node[^0-9]*(15|16|17|18|19|20|lts|latest)/)

If you would like immediate help on this, please email support@sourcegraph.com (you can still create the issue, but there are no SLAs on issues like there are for support requests).

/cc @vovakulikov

Metadata

Metadata

Assignees

Labels

bugAn error, flaw or fault that produces an incorrect or unexpected result, or behavior.code-insightsIssues related to the Code Insights productteam/code-searchIssues owned by the code search team

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