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

[Backport 5.3] client: Quote language name in code nav search queries#60989

Merged
BolajiOlajide merged 1 commit into
5.3from
backport-60987-to-5.3
Mar 15, 2024
Merged

[Backport 5.3] client: Quote language name in code nav search queries#60989
BolajiOlajide merged 1 commit into
5.3from
backport-60987-to-5.3

Conversation

@sourcegraph-release-bot

Copy link
Copy Markdown
Collaborator

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

Backport 55d005d from #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)
@BolajiOlajide BolajiOlajide merged commit dc8f48e into 5.3 Mar 15, 2024
@BolajiOlajide BolajiOlajide deleted the backport-60987-to-5.3 branch March 15, 2024 07:46
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.

4 participants