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)
Wed, Dec 11, 3:23 AM
Unknown Object (File)
Sun, Dec 8, 1:55 PM
Unknown Object (File)
Wed, Dec 4, 7:54 PM
Unknown Object (File)
Tue, Dec 3, 1:49 PM
Unknown Object (File)
Wed, Nov 20, 5:41 PM
Unknown Object (File)
Nov 16 2024, 6:39 AM
Unknown Object (File)
Nov 14 2024, 1:54 AM
Unknown Object (File)
Nov 14 2024, 1:51 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
Branch
arcpatch-D15828
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 12510
Build 15863: Run Core Tests
Build 15862: arc lint + arc unit

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.