Closed Bug 279544 Opened 20 years ago Closed 20 years ago

Bug.pm: Eliminate deprecated Bugzilla::DB routines

Categories

(Bugzilla :: Bugzilla-General, enhancement)

2.19.2
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 2.20

People

(Reporter: mkanat, Assigned: mkanat)

References

Details

Attachments

(1 file, 1 obsolete file)

OK, I've done buglist.cgi with this, now it's time to go for show_bug.cgi, which
is apparently the most-used CGI.

We're removing all the SendSQL calls and so forth from the script.
Oh, actually, it turns out that show_bug itself doesn't have any SQL. :-) It's
all in Bug.pm.
Summary: show_bug.cgi: Eliminate deprecated Bugzilla::DB routines → Bug.pm: Eliminate deprecated Bugzilla::DB routines
Attached patch Remove SendSQL calls from Bug.pm (obsolete) — Splinter Review
This was pretty easy, actually.

I tested the things that I could. Interestingly enough, Bugzilla::Bug::groups
is NEVER USED in Bugzilla, so it's impossible to test that code path. :-)
Attachment #172243 - Flags: review?
Comment on attachment 172243 [details] [diff] [review]
Remove SendSQL calls from Bug.pm

Tested; works. Strange about that groups-not-being-called thing.

>@@ -484,17 +488,15 @@
> 
> sub EmitDependList {

Nit: it's not your fault, of course, but you've modified this little sub a lot,
so I think we could correct indentation to four spaces while we're here...
If you do, feel free to move r+ forward.
Attachment #172243 - Flags: review? → review+
Yeah, I agree that we should do the four-spaces-indent thing and also fix the
SQL case.
Status: NEW → ASSIGNED
Attachment #172243 - Attachment is obsolete: true
Attachment #173101 - Flags: review?(wurblzap)
Attachment #173101 - Flags: review?(wurblzap) → review+
Flags: approval?
Flags: approval? → approval+
Target Milestone: --- → Bugzilla 2.20
Checking in Bugzilla/Bug.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/Bug.pm,v  <--  Bug.pm
new revision: 1.52; previous revision: 1.51
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: