Closed Bug 556407 Opened 15 years ago Closed 15 years ago

Move the code for setting product and checking strict_isolation into Bugzilla::Bug::set_all

Categories

(Bugzilla :: Creating/Changing Bugs, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 4.0

People

(Reporter: mkanat, Assigned: mkanat)

References

Details

Attachments

(1 file)

No description provided.
Attached patch v1Splinter Review
Okay, this moves product-setting into set_all and does a bit of refactoring. For a long time I've had that strict_isolation check in process_bug at the end, and was really worried that customizers or extensions were going to do set_product without remembering to do the strict_isolation check, thus breaking strict_isolation. So, now I've made set_product into _set_product, and left a comment informing code-readers that they must use set_all in order to set the product, not set_all. I also did some minor code cleanup in _set_product.
Assignee: create-and-change → mkanat
Status: NEW → ASSIGNED
Attachment #436363 - Flags: review?(LpSolit)
Attachment #436363 - Flags: review?(LpSolit) → review?(dkl)
Keywords: relnote
Whiteboard: [relnote that set_product is now private]
No longer blocks: bz-oldbugmove
Blocks: 556901
Comment on attachment 436363 [details] [diff] [review] v1 Code looks good and works as expected. r=dkl
Attachment #436363 - Flags: review?(dkl) → review+
Flags: approval?
Flags: approval? → approval+
Committing to: bzr+ssh://bzr.mozilla.org/bugzilla/trunk/ modified process_bug.cgi modified Bugzilla/Bug.pm Committed revision 7193.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Whiteboard: [relnote that set_product is now private]
Added to the release notes in bug 604256.
Keywords: relnote
Blocks: 663208
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: