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

chore(codeintel): Derive TargetPathWithoutRoot dynamically#63986

Merged
varungandhi-src merged 1 commit into
mainfrom
vg/derive
Jul 23, 2024
Merged

chore(codeintel): Derive TargetPathWithoutRoot dynamically#63986
varungandhi-src merged 1 commit into
mainfrom
vg/derive

Conversation

@varungandhi-src

@varungandhi-src varungandhi-src commented Jul 22, 2024

Copy link
Copy Markdown
Contributor

We only need to two out of three for representing a document in an upload:

  1. Upload root
  2. RepoRootRelPath
  3. UploadRootRelPath

For simplicity, drop the 3rd one, deriving it dynamically
from the other two as needed. Once https://github.com/sourcegraph/sourcegraph/pull/63965
lands, I'll mark visibleUpload as requiring exhaustive initialization.

Stepping stone for GRAPH-573

Test plan

Covered by existing tests.

@cla-bot cla-bot Bot added the cla-signed label Jul 22, 2024
@github-actions github-actions Bot added team/graph Graph Team (previously Code Intel/Language Tools/Language Platform) team/product-platform labels Jul 22, 2024
@varungandhi-src varungandhi-src enabled auto-merge (squash) July 22, 2024 14:47
@varungandhi-src varungandhi-src merged commit 08ec7ca into main Jul 23, 2024
@varungandhi-src varungandhi-src deleted the vg/derive branch July 23, 2024 04:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-signed team/graph Graph Team (previously Code Intel/Language Tools/Language Platform) team/product-platform

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants