Closed
Bug 1234161
Opened 9 years ago
Closed 9 years ago
Don't render filediff review button on drafts
Categories
(MozReview Graveyard :: General, defect)
MozReview Graveyard
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mdoglio, Assigned: mdoglio)
References
Details
Attachments
(1 file)
Drafts don't have a get_diffsets method, which is used to retrieve the data for the filediff buttons. The diff view is currently broken.
Assignee | ||
Comment 1•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/28767/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/28767/
Attachment #8700576 -
Flags: review?(smacleod)
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → mdoglio
Status: NEW → ASSIGNED
Comment 2•9 years ago
|
||
Comment on attachment 8700576 [details]
MozReview Request: mozreview: don't render filediff buttons on drafts (bug 1234161); r?smacleod
https://reviewboard.mozilla.org/r/28767/#review26217
::: pylib/mozreview/mozreview/fields.py:311
(Diff revision 1)
> + type(self.review_request_details) == ReviewRequest):
The case where the review request is not published yet will still get past this (there is no draft I believe, just `.public=False`)
Attachment #8700576 -
Flags: review?(smacleod)
Assignee | ||
Comment 3•9 years ago
|
||
https://reviewboard.mozilla.org/r/28767/#review26217
> The case where the review request is not published yet will still get past this (there is no draft I believe, just `.public=False`)
That shouldn't be a big deal. As long as we get a ReviewRequest object we can call .get_diffsets() on it and that's all we need, right?
Comment 5•9 years ago
|
||
https://reviewboard.mozilla.org/r/28767/#review26217
> That shouldn't be a big deal. As long as we get a ReviewRequest object we can call .get_diffsets() on it and that's all we need, right?
Yup, you're absolutely correct. Lets use isinstance instead of type here though and it should be good.
Assignee | ||
Comment 6•9 years ago
|
||
https://reviewboard.mozilla.org/r/28767/#review26711
::: pylib/mozreview/mozreview/fields.py:311
(Diff revision 1)
> + type(self.review_request_details) == ReviewRequest):
use isinstance instead of type
Assignee | ||
Comment 7•9 years ago
|
||
Comment on attachment 8700576 [details]
MozReview Request: mozreview: don't render filediff buttons on drafts (bug 1234161); r?smacleod
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/28767/diff/1-2/
Attachment #8700576 -
Flags: review?(smacleod)
Updated•9 years ago
|
Attachment #8700576 -
Flags: review?(smacleod) → review+
Comment 8•9 years ago
|
||
Comment on attachment 8700576 [details]
MozReview Request: mozreview: don't render filediff buttons on drafts (bug 1234161); r?smacleod
https://reviewboard.mozilla.org/r/28767/#review27313
Assignee | ||
Updated•9 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Updated•9 years ago
|
Product: Developer Services → MozReview
You need to log in
before you can comment on or make changes to this bug.
Description
•