GraphQL for TreeEntry uses Object ID for ID causing duplicate ID's
Description
With a GraphQL query like:
query{
project(fullPath: "pslaughter/small-repo") {
repository {
tree(path: ".", recursive:true, ref: "648fa108476caae1ca83140d55b3974fe621a080") {
blobs {
nodes {
id
path
mode
type
}
}
}
}
}
}
We return a list of blobs from the given tree. But, the Blob ID's are actually the underlying Git Object ID's which are not unique.
This could likely cause issues with apollo caching.
Proposal
- Let's create an actually unique ID for these blobs. Maybe a combinations of ref + path?
- Let's move the Object ID to it's own property
oid
.
Relevant LOC:
Edited by Paul Slaughter