Expose FileDiff.patched_sha256 and FileDiff.orig_sha256 to the API.

Review Request #14790 — Created Jan. 28, 2026 and updated

Information

Review Board
release-7.1.x

Reviewers

We have these SHA hashes for file diffs that are useful to checksum the
file diffs. They exist in the file diff's extra data and as attributes
on the object, but aren't officially listed in our API. It'd be useful
to expose them in the API so that callers can make use of them without
having to reach into the extra data and know the internal key naming of
the SHAs.
  • Ran unit tests.
  • Used in an upcoming RBTools change where I access the patched_sha256
    attribute via the API.
Summary ID
Expose `FileDiff.patched_sha256` and `FileDiff.orig_sha256` to the API.
We have these SHA hashes for file diffs that are useful to checksum the file diffs. They exist in the file diff's extra data and as attributes on the object, but aren't officially listed in our API. It'd be useful to expose them in the API so that callers can make use of them without having to reach into the extra data and know the internal key naming of the SHAs.
98c2c7a050d9a82eaa136265a760d932735cc7c3
Checks run (2 succeeded)
flake8 passed.
JSHint passed.