Closed Bug 1346162 Opened 7 years ago Closed 7 years ago

Needinfo is not checked for users that don't have canconfirm

Categories

(bugzilla.mozilla.org :: Extensions, defect)

Production
defect
Not set
normal

Tracking

()

VERIFIED FIXED

People

(Reporter: mayhemer, Assigned: seban)

References

Details

Attachments

(2 files)

Scenario:
- a "New to bugzilla" user reports a bug
- I ask the user for some info (logs, retest etc) and raise NI on him/her
- the reporter answers, but the NI flag is left raised

I don't think users deliberately uncheck the "Clear the needinfo request for" checkbox.  Rather is something wrong with the UI.

I can see this mainly with new users.  No idea if this is caused by the new UI or something else.  Could it be that such a user refreshes the page with F5, which doesn't update fields on the page to reflect the current bug state and the "Clear the needinfo request for" check box is left unchecked from some reason?
An example comment where NI was not dropped:
https://bugzilla.mozilla.org/show_bug.cgi?id=1344086#c6
Hey other me, you are uniquely suited to test this!
Flags: needinfo?(dylan)
Yep, it seems to not be checked if the account doesn't have editbugs
Yep, now that I have editbugs it is checked.
Flags: needinfo?(dylan)
Summary: For some users needinfo to them doesn't drop automatically when they answer a comment → Needinfo is not checked for users that don't have editbugs
Thanks Dylan!
It's actually 'canconfirm', not 'editbugs' but 'editbugs' automatically gives you 'canconfirm' which explains your change.

https://github.com/mozilla-bteam/bmo/blob/master/extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl#L161

What it should use maybe is ($flag->requestee->id == $user->id || $user->in_group('canconfirm')) since the requestee should be able to clear their own needinfo at least.

dkl
Is this a regression from the old bug page?
Flags: needinfo?(ech)
No. It's not a regression.
Flags: needinfo?(ech)
Severity: normal → enhancement
Whiteboard: [modal-enhancements]
Whiteboard: [modal-enhancements]
Summary: Needinfo is not checked for users that don't have editbugs → Needinfo is not checked for users that don't have canconfirm
Attached file github pull request
Assignee: nobody → sebastinssanty
Comment on attachment 8846938 [details] [review]
github pull request

r=dylan
Attachment #8846938 - Flags: review+
To git@github.com:mozilla-bteam/bmo.git
   ac85576..5bfe41d  master -> master
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Hey dylanAtHome, can you check if this is working now?
Flags: needinfo?(dylan)
The checkbox was pre-checked, other-me!
Flags: needinfo?(dylan)
Status: RESOLVED → VERIFIED
Testing something, disregard.
Flags: needinfo?(dylan)
It looks like the canconfirm logic is wrong...
Flags: needinfo?(dylan)
Assignee: sebastinssanty → nobody
Component: Extensions: Needinfo → Extensions
Assignee: nobody → sebastinssanty
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: