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

feat: Add id for CodeGraphData#63337

Merged
varungandhi-src merged 2 commits into
mainfrom
vg/expose-codegraphdata-id
Jun 19, 2024
Merged

feat: Add id for CodeGraphData#63337
varungandhi-src merged 2 commits into
mainfrom
vg/expose-codegraphdata-id

Conversation

@varungandhi-src

Copy link
Copy Markdown
Contributor

Fixes https://linear.app/sourcegraph/issue/GRAPH-692/provide-id-field-on-codegraphdata

Here's a screenshot of it in action:

CleanShot 2024-06-19 at 19 57 54@2x

Test plan

Manually tested against API console. Will follow-up with automated tests later.

Changelog

@cla-bot cla-bot Bot added the cla-signed label Jun 19, 2024
@github-actions github-actions Bot added team/graph Graph Team (previously Code Intel/Language Tools/Language Platform) team/product-platform labels Jun 19, 2024
@varungandhi-src varungandhi-src enabled auto-merge (squash) June 19, 2024 12:01

@camdencheek camdencheek left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thank you!

}
repos, err := repoStore.GetByIDs(ctx, id.RepoID)
if err != nil {
return nil, errors.Wrap(err, "repo for CodeGraphData value no longer exists")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this error message is quite accurate since this could also be a network error, context canceled, etc.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@varungandhi-src varungandhi-src merged commit d378d73 into main Jun 19, 2024
@varungandhi-src varungandhi-src deleted the vg/expose-codegraphdata-id branch June 19, 2024 17:03
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