sourcegraph/cmd
Camden Cheek 78d95e61d0
Embeddings: multi-repo search take 2 (#52019)
This re-opens the reverted #51662.

There were three independent issues with the deployed version:
1) There was a stray printf from debugging. It wasn't breaking anything,
but it was pretty spammy.
2) I made a change to `httpPost` that made it take an endpoint rather
than a repo name, but forgot to update the callsite in
`IsContextRequiredForChatQuery`, so it was using an empty string as the
URL. This was not caught by tests because the API was not covered by
tests before this PR, and I only added tests for the `EmbeddingsSearch`
endpoint, not the `IsContextRequiredForChatQuery` endpoint. I've added a
new test to this endpoint as part of this un-revert
3) Followup changes in the client to use the new endpoints were using
types that did not match the actual response shape from GraphQL and this
was causing undefined field accesses. This was not caught by the type
system because the problem was at the JSON -> typescript type layer,
which is an unchecked type assertion.

I squashed the original PR into the first commit, so the second and
third commits are the only changes

## Test plan

Added a test for `IsContextRequiredForChatQuery` API
2023-05-16 16:42:15 -06:00
..
blobstore 'undeprecate' single-service main entrypoints (#51930) 2023-05-15 15:37:49 +00:00
frontend Embeddings: multi-repo search take 2 (#52019) 2023-05-16 16:42:15 -06:00
github-proxy 'undeprecate' single-service main entrypoints (#51930) 2023-05-15 15:37:49 +00:00
gitserver Observation: use opentelemetry types rather than opentracing types (#51958) 2023-05-16 09:19:27 -06:00
loadtest ci: enable bazel builds for docker images (#51241) 2023-04-28 10:41:13 +02:00
migrator drift: Polish output (#52030) 2023-05-16 22:29:05 +00:00
repo-updater 'undeprecate' single-service main entrypoints (#51930) 2023-05-15 15:37:49 +00:00
searcher 'undeprecate' single-service main entrypoints (#51930) 2023-05-15 15:37:49 +00:00
server Bump syntax-highlighter docker container for single-docker deployment (#51616) 2023-05-09 18:28:55 +02:00
sitemap sitemap: fix compile error after update to NewRetryPolicy (#51926) 2023-05-15 12:52:57 +00:00
sourcegraph-oss 'undeprecate' single-service main entrypoints (#51930) 2023-05-15 15:37:49 +00:00
symbols Observation: use opentelemetry types rather than opentracing types (#51958) 2023-05-16 09:19:27 -06:00
worker 'undeprecate' single-service main entrypoints (#51930) 2023-05-15 15:37:49 +00:00
README.md Reminder to keep architecture diagram in-sync (#36869) 2022-06-08 19:40:36 -07:00

This directory contains Sourcegraph services and binaries.

When a services is added, removed, or when a service's dependencies change, update our architecture diagram.