flake8
passed.
JSHint
passed.
Review Request #9003 — Created June 6, 2017 and submitted
This standardizes parts of
ReviewsDiffViewerView
by using the new
ReviewRequestViewMixin
. It centralizes the access checks and review
request fetching, along with improving the documentation, cleaning up
some styling, and adding defaults for member variables.
Tested that the diff viewer still works as expected.
Cleaned up some more code in the class to reduce key lookups in dicts.
Revision 2 (+83 -45)
Switched to using
self.get_diff
instead of_query_for_diff
.
Revision 3 (+85 -49)