Page MenuHomePhabricator

Render more info for binary files in Differential
ClosedPublic

Authored by avivey on May 1 2016, 3:47 AM.
Tags
None
Referenced Files
F18658000: D15828.id38639.diff
Tue, Sep 23, 4:24 AM
F18619132: D15828.diff
Mon, Sep 15, 1:48 AM
F18488902: D15828.id.diff
Wed, Sep 3, 9:14 PM
F18467605: D15828.diff
Tue, Sep 2, 1:10 PM
F18218198: D15828.id38641.diff
Aug 19 2025, 9:56 AM
F18105504: D15828.id.diff
Aug 10 2025, 6:23 PM
F18086020: D15828.id.diff
Aug 5 2025, 7:31 PM
F17949428: D15828.id.diff
Jul 31 2025, 11:24 PM

Details

Summary

Ref T10856. The rendering logic was already there, but it was expecting the information under properties
field, whereas arc puts it under metadata. Not sure if that something that changed a long time ago or if
it was always like this.

Test Plan

pasted_file (821×706 px, 86 KB)

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

avivey retitled this revision from to render more info for binary files.
avivey updated this object.
avivey edited the test plan for this revision. (Show Details)
avivey added a reviewer: Blessed Reviewers.
avivey edited edge metadata.
chad retitled this revision from render more info for binary files to Render more info for binary files in Differential.Jun 1 2016, 6:00 PM
epriestley edited edge metadata.
epriestley added inline comments.
src/applications/differential/render/DifferentialChangesetRenderer.php
641

Maybe null is better to show than 0 B when the data is not present? There's a minor technical difference between an empty file (0 bytes long) and a file which does not exist.

`
$size = idx(...);
if ($size !== null) {
  $size = phutil_format_bytes(...);
}
This revision is now accepted and ready to land.Jun 5 2016, 10:16 PM
avivey edited edge metadata.

Don't invent 0s for size

This revision was automatically updated to reflect the committed changes.