Closed Bug 428440 Opened 16 years ago Closed 14 years ago

move code to set new product and related groups from process_bug.cgi to new function $bug->set_all

Categories

(Bugzilla :: Bugzilla-General, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 556407

People

(Reporter: nelhawar, Assigned: nelhawar)

References

Details

Attachments

(2 obsolete files)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.9) Gecko/20070209 Fedora/1.5.0.9-3.fc6 Firefox/1.5.0.9 pango-text
Build Identifier: 

moving setting new product for bugs and its related groups from process_bug.cgi to Bugzilla::Bug::set_all()

Reproducible: Always
HI,, attached is the first part for moving code from process_bug.cgi to function set_all,, please note that I have left the variable $product_change used to check strict isolation is both places as it is needed in now in both places, later it will be deleted from process_bug.cgi.

Please review when you can.

Thanks,
Noura
Attachment #315010 - Flags: review?(mkanat)
Attachment #315010 - Flags: review?(LpSolit)
please ignore previous patch,, fixed an error related to $product_change variable
Attachment #315010 - Attachment is obsolete: true
Attachment #315014 - Flags: review?(mkanat)
Attachment #315014 - Flags: review?(LpSolit)
Attachment #315010 - Flags: review?(mkanat)
Attachment #315010 - Flags: review?(LpSolit)
Blocks: 428452
Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee: general → nelhawar
Status: NEW → ASSIGNED
Target Milestone: --- → Bugzilla 4.0
Comment on attachment 315014 [details] [diff] [review]
v2 patch for moving set a new product for bugs and update its related groups to $bug->set_all

>Index: process_bug.cgi

>+    $product_change ||= $changed

Nit: missing semi-colon at the end of the line.


I didn't test the patch, but it looks good. Max, is it how you want set_all() to work?
Attachment #315014 - Flags: review?(LpSolit) → review+
CC'ing Max in case he didn't see my last question.
Comment on attachment 315014 [details] [diff] [review]
v2 patch for moving set a new product for bugs and update its related groups to $bug->set_all

Yeah, for now. However, should_set shouldn't be necessary, and it would be nice to eliminate more code. But we can do that in a cleanup-type bug.
Attachment #315014 - Flags: review?(mkanat) → review+
Flags: approval+
Checking in process_bug.cgi;
/cvsroot/mozilla/webtools/bugzilla/process_bug.cgi,v  <--  process_bug.cgi
new revision: 1.411; previous revision: 1.410
done
Checking in Bugzilla/Bug.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/Bug.pm,v  <--  Bug.pm
new revision: 1.244; previous revision: 1.243
done
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Target Milestone: Bugzilla 4.0 → Bugzilla 3.4
This patch has been backed out as it was responsible for bug 532493.
Severity: normal → enhancement
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Target Milestone: Bugzilla 3.4 → ---
Attachment #315014 - Attachment is obsolete: true
Flags: approval+
No longer blocks: 428452
Status: REOPENED → RESOLVED
Closed: 16 years ago14 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: