Closed Bug 779799 Opened 13 years ago Closed 13 years ago

Add support to call Bugzilla::Version->check({ id => $id })

Categories

(Bugzilla :: Bugzilla-General, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 4.4

People

(Reporter: koosha.khajeh, Assigned: koosha.khajeh)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 2 obsolete files)

Attached patch patch (obsolete) — Splinter Review
No description provided.
Attachment #648295 - Flags: review?(glob)
Attachment #648295 - Flags: review?(glob) → review?(LpSolit)
Attachment #648295 - Flags: review?(LpSolit)
Attached patch patch (obsolete) — Splinter Review
Attachment #648295 - Attachment is obsolete: true
Attachment #648309 - Flags: review?(LpSolit)
Comment on attachment 648309 [details] [diff] [review] patch >- my $version = new Bugzilla::Version({ name => $name, product => $product }); >+ my $version = new Bugzilla::Version({ name => 'version_name', product => $product_obj }); There is no reason to replace $name by 'version_name'. We do it everything else and that's fine. Please revert this change. About making clearer that you need a product object instead of a product name, this change is helpful and can stay. >+ my $version = Bugzilla::Version->check({ name => 'version_name', product => $product_obj }); Use $name instead of 'version_name'. >+ my $version = Bugzilla::Version->check({ id => $id }); Our policy is to only implement stuff if we use it, and actually, your patch implements the ability to pass {id => $id}, but this is used nowhere. Is there a place where you plan to use it? If yes, please mark this bug as blocking the bug which would use it. Else I see no reason to take this change. >- { value => $name, product => $product }); >+ { value => 'name', product => $product_obj }); Same comment as above. $product_obj is clearer, but there is no reason to replace $name by 'name'.
Blocks: 777047
Attached patch patchSplinter Review
Attachment #648309 - Attachment is obsolete: true
Attachment #648309 - Flags: review?(LpSolit)
Attachment #653153 - Flags: review?(LpSolit)
Status: NEW → ASSIGNED
Comment on attachment 653153 [details] [diff] [review] patch r=LpSolit
Attachment #653153 - Flags: review?(LpSolit) → review+
Flags: approval4.4+
Flags: approval+
Committing to: bzr+ssh://lpsolit%40gmail.com@bzr.mozilla.org/bugzilla/trunk/ modified Bugzilla/Version.pm Committed revision 8383. Committing to: bzr+ssh://lpsolit%40gmail.com@bzr.mozilla.org/bugzilla/4.4/ modified Bugzilla/Version.pm Committed revision 8381.
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: