Closed Bug 1162111 Opened 9 years ago Closed 9 years ago

Publishing commit review requests directly is not prevented

Categories

(MozReview Graveyard :: General, defect, P1)

Development/Staging
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: smacleod, Assigned: smacleod)

Details

Attachments

(5 files, 1 obsolete file)

      No description provided.
/r/8243 - MozReview: Cleanup unused CSS file (Bug 1162111); r=mcote
/r/8245 - MozReview: Hide draft banner buttons on commit requests (Bug 1162111); r=mcote

Pull down these commits:

hg pull -r b144820cd77ba1a93460485431226ba32c8bb623 https://reviewboard-hg.mozilla.org/version-control-tools/
Attachment #8602204 - Flags: review?(mcote)
https://reviewboard.mozilla.org/r/8245/#review6973

Shouldn't we disallow publishing commit rrs via the web API? Otherwise, this is merely (needed) wallpaper over an open barn door.
https://reviewboard.mozilla.org/r/8245/#review6975

Yes, this is a WIP commit series. I put up the front-end stuff so that mcote could base off of it for his work. API fix is coming.
Attachment #8602204 - Flags: review?(mcote) → review+
Comment on attachment 8602204 [details]
MozReview Request: bz://1162111/smacleod

https://reviewboard.mozilla.org/r/8241/#review6979

Ship It!
Comment on attachment 8602204 [details]
MozReview Request: bz://1162111/smacleod

/r/8243 - MozReview: Cleanup unused CSS file (Bug 1162111); r=mcote
/r/8245 - MozReview: Hide draft banner buttons on commit requests (Bug 1162111); r=mcote
/r/8253 - MozReview: Stop allowing publish to commit requests (Bug 1162111); r=mcote
/r/8255 - MozReview: Hide problematic actions; r=mcote

Pull down these commits:

hg pull -r 86390adcbc90b6598dbaa98bbdb83e19a4f31a9d https://reviewboard-hg.mozilla.org/version-control-tools/
Attachment #8602204 - Flags: review+ → review?(mcote)
Comment on attachment 8602204 [details]
MozReview Request: bz://1162111/smacleod

/r/8243 - MozReview: Cleanup unused CSS file (Bug 1162111); r=mcote
/r/8245 - MozReview: Hide draft banner buttons on commit requests (Bug 1162111); r=mcote
/r/8253 - MozReview: Stop allowing publish to commit requests (Bug 1162111); r=mcote
/r/8255 - MozReview: Hide problematic actions; r=mcote

Pull down these commits:

hg pull -r 86390adcbc90b6598dbaa98bbdb83e19a4f31a9d https://reviewboard-hg.mozilla.org/version-control-tools/
Attachment #8602204 - Flags: review?(gps)
Comment on attachment 8602204 [details]
MozReview Request: bz://1162111/smacleod

/r/8243 - MozReview: Cleanup unused CSS file (Bug 1162111); r=mcote
/r/8245 - MozReview: Hide draft banner buttons on commit requests (Bug 1162111); r=mcote
/r/8253 - MozReview: Stop allowing publish to commit requests (Bug 1162111); r=mcote
/r/8255 - MozReview: Hide problematic actions; r=mcote
/r/8261 - MozReview: Add test for preventing publish on commit requests; r=gps

Pull down these commits:

hg pull -r cfa9af3c0581e62755d28454c6e3ccab11601a7c https://reviewboard-hg.mozilla.org/version-control-tools/
https://reviewboard.mozilla.org/r/8245/#review7049

::: pylib/mozreview/mozreview/static/mozreview/css/review.less:43
(Diff revision 2)
> +#draft-banner {
> +  #btn-draft-publish,
> +  #btn-review-request-discard,
> +  #btn-draft-discard {
> +    display: none;
> +  }
> +}

Drive-by - instead of hiding the buttons by default, and special-casing the parent to show them - why not just hide them for the commit-request type?
Comment on attachment 8602204 [details]
MozReview Request: bz://1162111/smacleod

https://reviewboard.mozilla.org/r/8241/#review7051

Ship It!
Attachment #8602204 - Flags: review+
https://reviewboard.mozilla.org/r/8245/#review7053

> Drive-by - instead of hiding the buttons by default, and special-casing the parent to show them - why not just hide them for the commit-request type?

In the event that our javascript breaks, or the structure changes so that the class is no longer an ancestor I wanted things hidden by default. Might be pointless though - thoughts on that?
https://reviewboard.mozilla.org/r/8245/#review7057

> In the event that our javascript breaks, or the structure changes so that the class is no longer an ancestor I wanted things hidden by default. Might be pointless though - thoughts on that?

Ok, that makes sense.

We might want to land a hook in core to allow us to inject attributes on the review_request DIV that CSS can respond to.
Pushed https://hg.mozilla.org/hgcustom/version-control-tools/rev/2626181ab759
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Attachment #8602204 - Flags: review?(mcote)
Comment on attachment 8602204 [details]
MozReview Request: bz://1162111/smacleod

https://reviewboard.mozilla.org/r/8241/#review7127

Clearing review flag.
Comment on attachment 8602204 [details]
MozReview Request: bz://1162111/smacleod

I guess I no longer need to review this. Or maybe the flag didn't clear. I dunno.
Attachment #8602204 - Flags: review?(gps)
Attachment #8602204 - Attachment is obsolete: true
Attachment #8620236 - Flags: review+
Attachment #8620237 - Flags: review+
Attachment #8620238 - Flags: review+
Attachment #8620239 - Flags: review+
Attachment #8620240 - Flags: review+
Product: Developer Services → MozReview
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: