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
Unknown Object (File)
Mon, Apr 29, 1:15 PM
Unknown Object (File)
Sun, Apr 28, 6:29 AM
Unknown Object (File)
Sun, Apr 28, 6:25 AM
Unknown Object (File)
Sat, Apr 27, 8:51 PM
Unknown Object (File)
Sat, Apr 27, 6:40 AM
Unknown Object (File)
Fri, Apr 26, 9:10 PM
Unknown Object (File)
Fri, Apr 26, 6:27 AM
Unknown Object (File)
Sat, Apr 20, 9:24 AM

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.