Download original versions of binary files for diffs.

Review Request #13582 — Created Feb. 27, 2024 and submitted

Information

Review Board
release-7.x

Reviewers

When viewing a diff where we have a file attachment for the new version
of a binary file, this change will download the original file and create
a matching file attachment.

Created a file attachment for the new version of an image in a diff.
Opened the diff viewer and saw that the original file was downloaded,
stored in a file attachment, and the image review UI showed a diff in
the diff viewer.

Summary ID
Download original versions of binary files for diffs.
When viewing a diff where we have a file attachment for the new version of a binary file, this change will download the original file and create a matching file attachment. Testing Done: Created a file attachment for the new version of an image in a diff. Opened the diff viewer and saw that the original file was downloaded, stored in a file attachment, and the image review UI showed a diff in the diff viewer.
d39db57538bc740f59268b05c0830b0b98c0f40f
Description From Last Updated

'django.template.Context' imported but unused Column: 1 Error code: F401

reviewbotreviewbot

local variable 'context' is assigned to but never used Column: 9 Error code: F841

reviewbotreviewbot

We should just import os.

chipx86chipx86
Checks run (1 failed, 1 succeeded)
flake8 failed.
JSHint passed.

flake8

david
maubin
  1. Ship It!
  2. 
      
chipx86
  1. 
      
  2. Show all issues

    We should just import os.

  3. 
      
david
Review request changed
Status:
Completed
Change Summary:
Pushed to release-7.x (8562e38)