Add hiding min files by default

Review Request #10715 — Created Sept. 15, 2019 and updated — Latest diff uploaded

Information

Review Board
master

Reviewers

When adding minified files for review the entire file is displayed in
the diff veiwer. Since min files are just one long line this does not
make sense to display as they are generally ignored in the review
process. With this change files matching the search .min. are hidden
by default with the option to display them if the reviewer clicks
"Show content". This is similar to how deleted files are handled in the
diff viewer. Since deleted and hidden files are very similar in
functionality I merged the fields into one hidden field with an
optional hidden_context if there is need to know the reason for a file
being hidden.

Included tests for these changes.

Diff Revision 7 (Latest)

orig
1
2
3
4
5
6
7

Commits

First Last Summary ID Author
Address Barret's comments.
5773f493e25a882435a9b80385d25c4cd3bfa25c Ceegan Hale
Address David's comments.
276cef5046ec8eca751fb4ddfe876f6a47320744 Ceegan Hale
re-add debug statement
4ff5f0819b4b6ffa1e61b3a5c66c3173d5d97caa Ceegan Hale
rebase master
4c9aef2a23627d1bbf44bcd0cefa63fdd33c8d21 Ceegan Hale
reviewboard/diffviewer/diffutils.py
reviewboard/diffviewer/tests/test_diffutils.py
reviewboard/reviews/views.py
reviewboard/static/rb/css/defs.less
reviewboard/static/rb/css/pages/diffviewer.less
reviewboard/static/rb/js/diffviewer/models/diffFileModel.es6.js
reviewboard/static/rb/js/diffviewer/models/tests/diffFileModelTests.es6.js
reviewboard/static/rb/js/diffviewer/views/diffFileIndexView.es6.js
reviewboard/templates/diffviewer/diff_file_fragment.html
Loading...