Skip to content

Create Unique ID for Blobs

What does this MR do and why?

Currently a GraphQL query to list blobs from the given tree returns blob ids which are not unique. In #356006 (closed) it was discussed that a combination of blob web_path and sha would be a suitable replacement for ID.

This MR:

  • Creates a unique ID for blobs by using the Blob attributes 'web_path/sha' as id.
  • Moves the Object ID (formally the id) to its own property oid.
  • Adds oid to a spec checking for an expected list of graphql fields.

Contributes to #356006 (closed)

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Gavin Hinfey

Merge request reports