LSIF uploads fail with abbreviated OID
View options
- Truncate descriptions
Created by: efritz
Uploading LSIF data with an abbreviated OID produces an error from src lsif upload:
failed to enqueue payload: pq: new row for relation "lsif_uploads" violates check constraint "lsif_uploads_commit_valid_chars"
This is the wrong error to display - we should be validating the hash before attempting to insert it. Best implementation would be able to disambiguate an abbreviated OID into a full one, as we need to ensure that the commit exists first anyway.