Re: Issue 1791 in reviewboard: Hide unreasonably large diffs.

2011-03-21 Thread reviewboard

Updates:
Status: WontFix

Comment #2 on issue 1791 by trowb...@gmail.com: Hide unreasonably large  
diffs.

http://code.google.com/p/reviewboard/issues/detail?id=1791

I think this is actually a social problem rather than a technical one. If  
your users are posting code reviews of auto-generated code that aren't  
reviewable, then just hiding it in the UI isn't really helping anything.


--
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to reviewboard-issues@googlegroups.com.
To unsubscribe from this group, send email to 
reviewboard-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/reviewboard-issues?hl=en.



Re: Issue 1791 in reviewboard: Hide unreasonably large diffs.

2010-09-30 Thread reviewboard

Updates:
Labels: Component-DiffViewer

Comment #1 on issue 1791 by trowbrds: Hide unreasonably large diffs.
http://code.google.com/p/reviewboard/issues/detail?id=1791

(No comment was entered for this change.)

--
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to reviewboard-iss...@googlegroups.com.
To unsubscribe from this group, send email to 
reviewboard-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/reviewboard-issues?hl=en.



Issue 1791 in reviewboard: Hide unreasonably large diffs.

2010-08-26 Thread reviewboard

Status: New
Owner: 
Labels: Type-Enhancement Priority-Medium

New issue 1791 by josh.hamacher: Hide unreasonably large diffs.
http://code.google.com/p/reviewboard/issues/detail?id=1791

*NOTE: If you have a patch, please submit it to
http://reviews.reviewboard.org/


What version are you running?
1.5 RC 1

What's the URL of the page this enhancement relates to, if any?
The diff viewer.

Describe the enhancement and the motivation for it.
We have various tools that generate source code; sometimes these generated  
files are huge.  Sometimes developers submit diffs of those generated files  
for code review.  Sometimes those diffs are small enough that they actually  
get published (i.e. post-review doesn't time out) but still large enough to  
be virtually meaningless to a reviewer.  We've added a very small change to  
diffviewer/forms.py (see below) to hide these changes.


What operating system are you using? What browser?
N/A

Please provide any additional information below.
We've modified diffviewer/forms.py as follows, starting at line 155:

# treat gigantic diffs as binary
maxDiffSizeK = 255
diffSizeK = len(f.data) / 1024
if (diffSizeK > maxDiffSizeK):
f.binary = True
f.data = ""

We didn't submit this as a patch because there's probably a better way of  
doing it, but if it sounds reasonable we can do so.


--
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to reviewboard-iss...@googlegroups.com.
To unsubscribe from this group, send email to 
reviewboard-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/reviewboard-issues?hl=en.