Closed Bug 897442 Opened 11 years ago Closed 11 years ago

Set bug status to ASSIGNED when setting the assignee on new and existing bugs

Categories

(Developer Services :: Mercurial: bzexport, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: emorley, Assigned: emorley)

Details

Attachments

(1 file)

      No description provided.
Attached patch Patch v1Splinter Review
For existing bugs: If we're already needing to update the assignee, then also set the bug status to ASSIGNED, as long as the current status is not RESOLVED. For new bugs just set to assigned as long as we've not specified --no-take-bug.
Attachment #780346 - Flags: review?(sphink)
Comment on attachment 780346 [details] [diff] [review]
Patch v1

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

::: __init__.py
@@ +860,5 @@
>          taker = auth.username(api_server)
>          if result['assigned_to']['name'] != taker:
>              result['assigned_to'] = { 'name': taker }
> +            if result['status'] != 'RESOLVED':
> +                result['status'] = 'ASSIGNED'

Just to confirm: you're ok with REOPENED going to ASSIGNED too, right? (Makes sense to me.)
Attachment #780346 - Flags: review?(sphink) → review+
(In reply to Steve Fink [:sfink] from comment #2)
> Just to confirm: you're ok with REOPENED going to ASSIGNED too, right?
> (Makes sense to me.)

Yup :-)
http://hg.mozilla.org/users/tmielczarek_mozilla.com/bzexport/rev/07b4ca7edd34
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Product: Other Applications → Developer Services
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: