Closed
Bug 1349769
Opened 7 years ago
Closed 7 years ago
takebug should only be default for patch attachments
Categories
(bugzilla.mozilla.org :: General, defect, P1)
Tracking
()
VERIFIED
FIXED
People
(Reporter: dholbert, Assigned: dylan)
References
Details
Attachments
(1 file)
3.13 KB,
patch
|
glob
:
review+
|
Details | Diff | Splinter Review |
STR: 1. Visit some bug which is unassigned -- e.g. at the moment, try visiting https://bugzilla.mozilla.org/show_bug.cgi?id=1332359 2. Click "Attach File" 3. Scroll down and look for the "take bug" checkbox. EXPECTED RESULTS: The checkbox should not be checked. ACTUAL RESULT: The checkbox is checked by default (and presumably you'll assign the bug to yourself, by accident, if you complete the form without noticing.) I suspect this must be an simple mistake, though perhaps we made this change intentionally, based on the assumption that posting an attachment means you're taking the bug...? If so, I very much dispute any such assumption. Posting an attachment is absolutely *not* an expression of intent to take a bug. When a bug is unassigned, attachments are more likely (or at least quite likely) to be testcases/logs/screenshots from someone reporting/confirming the bug, and these actions are not an expression of intent to assign the bug to themselves.
Reporter | ||
Comment 1•7 years ago
|
||
I believe this started happening pretty recently -- I ran into it yesterday, and I don't recall running into it before then. (Also, for now at least [while this bug is unassigned], you can reproduce the bug [default-checked checkbox] using the "Attach file" link on this very bug report here.)
Reporter | ||
Comment 2•7 years ago
|
||
(Hoping Dylan can take a look or farm this out to somebody.)
Flags: needinfo?(dylan)
Assignee | ||
Comment 3•7 years ago
|
||
Sorry, this was a recent change. We can back it out next week. Possibly may it only apply when it's a patch?
Flags: needinfo?(dylan)
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → dylan
Assignee | ||
Comment 4•7 years ago
|
||
I think the gap in my understanding here for bug 1344979 was how many unassigned bugs get non-patch attachments. Here's a patch (hah) that only checks "take" when the attachment is a patch. Along the way it removes some onchange= style event handlers and even adds [% csp_nonce FILTER none %] which will be an empty string currently, but might as well add it now.
Attachment #8850277 -
Flags: review?(glob)
Assignee | ||
Comment 5•7 years ago
|
||
Bah, with the minor nit that s/csp_nonce/script_nonce/. Note that is actually a problem itself, as script_nonce will look wrong when we start using it on <style> tags. Will fix on commit assuming an r+
Comment on attachment 8850277 [details] [diff] [review] 1349769_1.patch Review of attachment 8850277 [details] [diff] [review]: ----------------------------------------------------------------- r=glob lgtm
Attachment #8850277 -
Flags: review?(glob) → review+
Priority: -- → P1
Assignee | ||
Updated•7 years ago
|
Summary: On BMO "attach file" page, the checkbox for "take bug" is now auto-checked (annoying if you just want to post a testcase) → takebug should only be default for patch attachments
Assignee | ||
Comment 7•7 years ago
|
||
To git@github.com:mozilla-bteam/bmo.git dc6eca0..9af56b9 master -> master
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 9•7 years ago
|
||
hmm, when I tested this locally, it worked when I attached a patch and the patch pre-checked "patch" for me, but this doesn't work on production. It works if patch is manually chosen. I'll follow up after some other things. At least this won't be annoying anyone
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•