mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 11:01:44 +00:00
This PR aims to craft the /internal/tenant package for use by all Sourcegraph cluster-internal services to properly scope data visibility to the correct requesting tenant. For now, we only expose methods we know we will DEFINITELY need. This PR also adds the required middlewares so we can start to tinker with it in implementations. ## Test plan CI passes. We don't enforce anything for now except not passing unparseable tenant IDs, which should be fine. |
||
|---|---|---|
| .. | ||
| internal | ||
| rockskipintegration | ||
| shared | ||
| BUILD.bazel | ||
| cargo-config.sh | ||
| CODENOTIFY | ||
| ctags-install-alpine.sh | ||
| image_test.yaml | ||
| main.go | ||
| README.md | ||
symbols
Indexes symbols in repositories using Ctags. Similar in architecture to searcher, except over ctags output.
The ctags output is stored in SQLite files on disk (one per repository@commit). Ctags processing is lazy, so it will occur only when you first query the symbols service. Subsequent queries will use the cached on-disk SQLite DB.
It is used by basic-code-intel to provide the jump-to-definition feature.
It supports regex queries, with prefix queries (^foo) and exact match queries (^foo$) optimized to perform index lookups. The symbols sidebar and search-based code intel benefit from these optimizations.