Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

[Backport 5.3] Cody context: handle empty queries#60107

Merged
keegancsmith merged 1 commit into
5.3from
backport-60106-to-5.3
Feb 5, 2024
Merged

[Backport 5.3] Cody context: handle empty queries#60107
keegancsmith merged 1 commit into
5.3from
backport-60106-to-5.3

Conversation

@sourcegraph-release-bot

Copy link
Copy Markdown
Collaborator

If a cody context query contains only stopwords, then query processing returns
a list of empty terms, causing a panic. Now, we just return an empty query
which matches no files.

Fixes #60090

Test plan

Added new unit test
Backport 060d10d from #60106

If a cody context query contains only stopwords, then query processing returns
a list of empty terms, causing a panic. Now, we just return an empty query
which matches no files.

(cherry picked from commit 060d10d)
@keegancsmith keegancsmith merged commit 5a286bd into 5.3 Feb 5, 2024
@keegancsmith keegancsmith deleted the backport-60106-to-5.3 branch February 5, 2024 07:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants