Skip to content

codeintel/indexing: Normalize names of JVM dependency repos

Warren Gifford requested to merge backend-integration/fix-jvm-dep-repos into main

Created by: tsenart

This commit introduces a normalization step in dependencySyncSchedulerHandler for making packages data (scheme, name, version) from LSIF uploads be consistent with internal structure / format.

This is needed most immediatelly for JVM dependency repos to work again after https://github.com/sourcegraph/sourcegraph/pull/34289, which assumed all name columns in the lsif_dependency_repos table matched the reposource.PackageDependency.PackageSyntax method.

We also add a SQL migration to migrate existing rows to the new format. lsif-java will be updated in the future.

Test plan

Unit and manual tests.

Merge request reports

Loading