Closed Bug 1382085 Opened 7 years ago Closed 7 years ago

Add find_first_flag_type() to Bugzilla::Component

Categories

(bugzilla.mozilla.org :: General, enhancement)

Production
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: dylan, Assigned: dylan)

References

Details

Attachments

(1 file)

Ideally, something like $component->find_flag('sec-bounty') returns a Bugzilla::FlagType object.
Depends on: 1382086
Removing blocking on 1382086 as we can just re-scope this to be "find first" and worry about the invariant later
No longer depends on: 1382086
Summary: Need way of finding flag type id of a particular named flag in a product and component → Add find_first_flag_type() to Bugzilla::Component
Attached patch PRSplinter Review
Attachment #8887934 - Flags: review?(dkl)
Comment on attachment 8887934 [details] [diff] [review]
PR

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

Fix on commit. r=dkl

::: Bugzilla/Component.pm
@@ +618,5 @@
>  
> +
> +=item C<find_first_flag_type($target_type, $name).
> +
> + Description: Changes the description of the component.

Left over text from copy/paste. Change to match function.
Attachment #8887934 - Attachment is patch: true
Attachment #8887934 - Attachment mime type: text/x-github-pull-request → text/plain
Attachment #8887934 - Flags: review?(dkl) → review+
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: