Closed Bug 1150074 Opened 9 years ago Closed 9 years ago

when a person blocks needinfo? requests, it prevents comments on a bug when there is an existing ni? request

Categories

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

Production
x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jmaher, Assigned: glob)

Details

Attachments

(1 file)

I ran into the scenario today where there was an outstanding needinfo? request on a bug.  I went to make a general comment on the bug and when I hit submit, it failed because it said the person was not accepting needinfo? requests anymore.

This should allow comments, but not new needinfo requests to people when they change their status.
moving to the needinfo component, although it applies to the review ext as well.
Assignee: create-and-change → glob
Component: Creating/Changing Bugs → Extensions: Needinfo
Product: Bugzilla → bugzilla.mozilla.org
Version: unspecified → Production
QA Contact: default-qa
Attached patch 1150074_1.patchSplinter Review
- only validate the requestee when updating a bug if it has changed
Attachment #8587170 - Flags: review?(dylan)
(In reply to Byron Jones ‹:glob› from comment #1)
> it applies to the review ext as well.

this doesn't appear to be the case; the check in the review extension already has a check for a requestee change.
Comment on attachment 8587170 [details] [diff] [review]
1150074_1.patch

Review of attachment 8587170 [details] [diff] [review]:
-----------------------------------------------------------------

r=dylan

::: extensions/Needinfo/Extension.pm
@@ +205,5 @@
>      my $object = $args->{object};
>      return unless $object->isa('Bugzilla::Flag')
>          && $object->type->name eq 'needinfo'
> +        && $object->requestee
> +        && exists $args->{changes}->{requestee_id};

Not that it *really* matters, but ordering this so the $args check is first would save 4 method calls in the case that the requestee_id was not changed.
Attachment #8587170 - Flags: review?(dylan) → review+
To ssh://gitolite3@git.mozilla.org/webtools/bmo/bugzilla.git
   63567a9..ab32334  master -> master
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Component: Extensions: Needinfo → Extensions
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: