Fix bugs bugs with local sites.
Review Request #8224 — Created June 8, 2016 and submitted
The bugs field on a review request had several bugs when using local sites. The
first of these is that we were passing in the arguments tolocal_site_reverse
as a tuple, but in the case where there's a local site, that gets appended to a
list (which doesn't work). Changing this to be a list fixes this bug. Second,
thebug_urlandbug_infoboxviews took alocal_siteargument but didn't
add the necessary decorators to translate thelocal_site_nameparameter into
a real object (and do associated access checks).Bugs.
Set the bugs field on a review request on a local site. Saw that I could then
re-load the page and see the bugs listed. Clicked on a bug link and saw that I
was correctly redirected. Hovered over a link and saw a request to the infobox
URL that was correctly handled.
| Description | From | Last Updated |
|---|---|---|
|
'ChangeDescription' imported but unused |
|
Tool: Pyflakes Processed Files: reviewboard/reviews/builtin_fields.py reviewboard/reviews/views.py Tool: PEP8 Style Checker Processed Files: reviewboard/reviews/builtin_fields.py reviewboard/reviews/views.py