Closed Bug 279738 Opened 21 years ago Closed 20 years ago

Move GetLongDescriptionAsText out of globals.pl

Categories

(Bugzilla :: Email Notifications, enhancement)

2.19.2
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 2.22

People

(Reporter: mkanat, Assigned: LpSolit)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Really, this should be something like get_comments_for_bug_during_period, and it's only used by BugMail.pm. It does seem like something that should be in Bug.pm, though. I'm not sure... any comments?
Blocks: bz-globals
Priority: -- → P2
Target Milestone: --- → Bugzilla 2.22
FYI, I've moved this into BugMail.pm as part of bug #116863
OK. One day we need to make that function not suck, but that will probably happen when we templatize email.
Assignee: mkanat → altlst
Depends on: 116863
Whiteboard: [blocker will fix]
Move this function separately. Marking this bug as blocking the other one as the patch in 116863 has been denied review.
Blocks: 116863
No longer depends on: 116863
Whiteboard: [blocker will fix]
The move to BugMail.pm is trivial. Why isn't it done yet?
Because nobody's patched it, I'd guess. :-)
Assignee: altlst → email-notifications
(In reply to comment #4) > The move to BugMail.pm is trivial. Why isn't it done yet? Yea, I've been tied up getting 2.20 installed at my company (among other things) and only had time to use the original patch in bug #116863. When things die down, I can look into breaking it up. Or somebody else could do it. My only request is that there should still be a "get_all_comments" routine, which I believe would be needed for bug #116863
Let's move it in BugMail.pm for now. As mkanat said, it's only used in BugMail.pm and moving this routine in Bug.pm would create a module dependency loop between BugMail.pm and Bug.pm.
Assignee: email-notifications → LpSolit
Attached patch patch, v1Splinter Review
I'm sure mkanat wants to review this one. After all, you are the one who opened this bug. :-p Note that GetLongDescriptionAsText() has been renamed as BugMail::get_comments_by_bug().
Attachment #194173 - Flags: review?(mkanat)
Comment on attachment 194173 [details] [diff] [review] patch, v1 r=mkanat by inspection. Some day this whole sub needs to die (probably as part of the BugMail re-work in bug 301447).
Attachment #194173 - Flags: review?(mkanat) → review+
Status: NEW → ASSIGNED
Flags: approval?
Priority: P2 → --
Flags: approval? → approval+
Checking in globals.pl; /cvsroot/mozilla/webtools/bugzilla/globals.pl,v <-- globals.pl new revision: 1.336; previous revision: 1.335 done Checking in Bugzilla/BugMail.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/BugMail.pm,v <-- BugMail.pm new revision: 1.51; previous revision: 1.50 done
Status: ASSIGNED → RESOLVED
Closed: 20 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: