Fix 500s from the diff context resource
Review Request #9065 — Created July 10, 2017 and submitted
The refactoring of views into mixins broke subtly broke the diff context
resource. It was passing in all arguments positionally and the new
CheckLocalSiteAccessViewMixin was pullinglocal_site_name
out of both
kwargs and (mistakenly) from a caller passing*args
. We now pass all
arguments in as keyword arguments to avoid this mess.This patch also removes a bunch of dead imports I noticed in
reviews/views
as a result of the aforementioned refactor.
- Ran unit tests.
- With this patch applied, there are no more 500s on the diff context
resource when viewing interdiffs.
Description | From | Last Updated |
---|---|---|
Looks good, but it would be nicer to remove the imports in a separate change, since otherwise that file isn't … |
chipx86 | |
It doesn't look like you posted the right revision range... |
david | |
No blank line. |
chipx86 | |
Wrong order. |
chipx86 | |
Did you mean to leave this in? |
chipx86 | |
Two blank lines. |
chipx86 |
- Change Summary:
-
Addressed Christian's issues
- Commit:
-
ed38c29af9850e64ca62806816c6ac76be2af372ce44bed17729cf290e8d01f35be8ed21daa4ced8
- Diff:
-
Revision 3 (+418 -92)