sourcegraph / sourcegraph-public-snapshot

Code AI platform with Code Search & Cody
https://sourcegraph.com
Other
10.12k stars 1.29k forks source link

Unable to view, edit or delete a context that starts with a slash #30442

Open mike-r-mclaughlin opened 2 years ago

mike-r-mclaughlin commented 2 years ago

Steps to reproduce:

  1. Create a new context with a name that begins with // (//app/main/core)
  2. Select the newly created context
  3. You will see an error like this: image
Reproduced on demo.sourcegraph.com

This has been reproduced on demo:

  1. Go to https://demo.sourcegraph.com/contexts
  2. Select the //app/main/core context

Expected behavior:

You can edit and delete a context that begins with a /

Actual behavior:

If you create a context that begins with a slash (or more than one slash), you can select it and search against it, but you cannot edit it or delete it.

There is slightly different behavior when it's a personal/org context vs global. But in both cases you cannot view, modify or delete the context.

Slack Discussion(s): https://sourcegraph.slack.com/archives/C01D50MSA7L/p1643335082052500 (From Customer )

github-actions[bot] commented 2 years ago

Heads up @benvenker @lguychard - the "team/search-product" label was applied to this issue.