Fix the Diff Size column for review requests lacking that information.

Review Request #8094 — Created April 1, 2016 and submitted

Information

Review Board
release-2.0.x
0029daf...

Reviewers

The Diff Size column made some assumptions that certain statistical data
on the diffs were present, which wasn't the case for review requests without
diffs.

This adds some bullet-proofing to this column so that we only fetch the
information if it's available, and harmlessly fall back if not.

Viewed the dashboard and saw the diff size info come up for all review
requests containing diffs, but not those that are just file aettachmnets.
Didn't see any errors in the console.

reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/datagrids/columns.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/datagrids/columns.py
    
    
  2. 
      
david
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-2.0.x (bb177cd)
Loading...