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

client: Quote language name in code nav search queries#60987

Merged
varungandhi-src merged 1 commit into
mainfrom
vg/fix-quoting
Mar 11, 2024
Merged

client: Quote language name in code nav search queries#60987
varungandhi-src merged 1 commit into
mainfrom
vg/fix-quoting

Conversation

@varungandhi-src

Copy link
Copy Markdown
Contributor

Language names can contain spaces, and because we don't have a typed API,
I made the mistake of directly concatenating the language name string to lang:,
which caused an incorrect search query to be sent for code nav for Protocol Buffers,
resulting in 0 code nav results.

Fixes https://github.com/sourcegraph/customer/issues/2882

Test plan

Manually confirmed that quoting fixes the issue.

CleanShot 2024-03-11 at 14 44 35@2x

@varungandhi-src varungandhi-src merged commit 55d005d into main Mar 11, 2024
@varungandhi-src varungandhi-src deleted the vg/fix-quoting branch March 11, 2024 08:32
sourcegraph-release-bot pushed a commit that referenced this pull request Mar 11, 2024
Language names can contain spaces, and because we don't have a typed API,
I made the mistake of directly concatenating the language name string to lang:,
which caused an incorrect search query to be sent for code nav for Protocol Buffers,
resulting in 0 code nav results.

(cherry picked from commit 55d005d)
varungandhi-src added a commit that referenced this pull request Mar 14, 2024
Language names can contain spaces, and because we don't have a typed API,
I made the mistake of directly concatenating the language name string to lang:,
which caused an incorrect search query to be sent for code nav for Protocol Buffers,
resulting in 0 code nav results.

(cherry picked from commit 55d005d)
BolajiOlajide pushed a commit that referenced this pull request Mar 15, 2024
…#60989)

client: Quote language name in code nav search queries (#60987)

Language names can contain spaces, and because we don't have a typed API,
I made the mistake of directly concatenating the language name string to lang:,
which caused an incorrect search query to be sent for code nav for Protocol Buffers,
resulting in 0 code nav results.

(cherry picked from commit 55d005d)

Co-authored-by: Varun Gandhi <varun.gandhi@sourcegraph.com>
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.

2 participants