Closed Bug 785729 Opened 14 years ago Closed 14 years ago

Webservice Bug.fields (_legal_field_values) should return isactive for versions, components and milestones

Categories

(Bugzilla :: WebService, enhancement)

4.3.2
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 4.4

People

(Reporter: Frank, Assigned: Frank)

Details

Attachments

(1 file, 1 obsolete file)

There is no way for clients like Mylyn to get the information if a version, components or milestones is retired(bug#77193).
Attached patch patch V1 (obsolete) — Splinter Review
Attachment #655437 - Flags: review?(LpSolit)
Attachment #655437 - Flags: review?(LpSolit) → review?(dkl)
Comment on attachment 655437 [details] [diff] [review] patch V1 You must document 'isactive'. Also, use is_active instead, for consistency with other fields.
Attachment #655437 - Flags: review?(dkl) → review-
Attached patch patch V2Splinter Review
Attachment #655437 - Attachment is obsolete: true
Attachment #655447 - Flags: review?(LpSolit)
Attachment #655447 - Attachment is patch: true
Comment on attachment 655447 [details] [diff] [review] patch V2 Review of attachment 655447 [details] [diff] [review]: ----------------------------------------------------------------- Minor changes that can be made on checkin. Otherwise looks fine and works as expected. r=dkl ::: Bugzilla/WebService/Bug.pm @@ +167,4 @@ > sort_key => $self->type('int', $sortkey), > sortkey => $self->type('int', $sortkey), # deprecated > visibility_values => [$self->type('string', $product_name)], > + is_active => $self->type('boolean', $value->is_active()), nit: $value->is_active (no parens) @@ +1193,5 @@ > > +=item C<is_active> > + > +C<boolean> True when the version, target_milestone or component is active, > +false when the element is retired. C<boolean> True when the value for version, target_milestone, or component is active, false when the value is not active.
Attachment #655447 - Flags: review+
Flags: approval?
Comment on attachment 655447 [details] [diff] [review] patch V2 >+=item C<is_active> >+ >+C<boolean> True when the version, target_milestone or component is active, >+false when the element is retired. It should be made clearer that is_active is defined for product-specific fields only. dkl, please reword this on checkin.
Attachment #655447 - Flags: review?(LpSolit)
dkl: also add to the History section that is_active exists only since 4.4.
Assignee: webservice → Frank
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Flags: approval?
Flags: approval4.4+
Flags: approval+
Keywords: relnote
Target Milestone: --- → Bugzilla 4.4
Committing to: bzr+ssh://dlawrence%40mozilla.com@bzr.mozilla.org/bugzilla/4.4 modified Bugzilla/WebService/Bug.pm Committed revision 8375. Committing to: bzr+ssh://dlawrence%40mozilla.com@bzr.mozilla.org/bugzilla/trunk modified Bugzilla/WebService/Bug.pm Committed revision 8377.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Added to the relnotes for 4.4.
Keywords: relnote
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: