Closed Bug 276417 Opened 20 years ago Closed 18 years ago

Request for code change to note deprecated DB.pm routines

Categories

(Bugzilla :: Bugzilla-General, enhancement)

2.19
enhancement
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: kbenton, Assigned: kbenton)

Details

Attachments

(1 file, 5 obsolete files)

Attachment to follow.
Identifies routines more clearly that are deprecated.  This will help prevent
future developers from accidentally including them in new code.  Old method was
somewhat confusing as none of the remaining routines were exported.
Attachment #169860 - Flags: review?(kevin.benton)
Comment on attachment 169860 [details] [diff] [review]
Patch to document deprecated routines in DB.pm

Removed requestee.
Attachment #169860 - Flags: review?(kevin.benton) → review?
Assignee: justdave → kevin.benton
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows XP → All
Hardware: PC → All
Comment on attachment 169860 [details] [diff] [review]
Patch to document deprecated routines in DB.pm

In addition to the comments, this patch also moves the deprecated DB.pm
routines at the bottom of the file.

The style of commenting might be too strong for our current commenting style,
but I guess it's ok.

I'd love an empty line before the "sub SendSQL" line here:

+##############################################################################
#
+# Deprecated routines begin here.
+##############################################################################
#
+sub SendSQL { # Deprecated

but that can be fixed upon checkin, if this passes approval.
Attachment #169860 - Flags: review? → review+
Status: NEW → ASSIGNED
Flags: approval?
Attached patch Version 2! (obsolete) — Splinter Review
Changed comment length to 69 chars max, added blank lines as requested.
Attachment #169860 - Attachment is obsolete: true
Attachment #169937 - Flags: review?
Attachment #169937 - Flags: review? → review+
Comment on attachment 169937 [details] [diff] [review]
Version 2!

>@@ -54,70 +63,6 @@
> # Bugzilla.pm. See bug 192531 for details.
> our $_current_sth;
> our @SQLStateStack = ();

These variable declarations and the two paragraphs of comments above them
should be moved with the deprecated routines (starting with "# All this code is
backwards compat fu."
Attachment #169937 - Flags: review-
Flags: approval?
Target Milestone: --- → Bugzilla 2.20
See also: bug 276417.
Correction: See also: bug 276634 - update to Developer's Guide.
Dave - does this mean you want me to move the comment section at the top to the
deprecated routines near the bottom?
Attached patch V3 - Changes requested by Dave (obsolete) — Splinter Review
While I would rather have put those comments at the top to help document the
.pm, it make sense to put all the deprecated routines at the end of the public
section along with the comments for those routines.
Attachment #169937 - Attachment is obsolete: true
Attachment #171579 - Flags: review?
Attachment #171579 - Flags: review? → review?(justdave)
any chance of getting this as a cvs diff -u (or at least a diff -u) ?
Drat -- yes, I can.  Thought I gave you diff -urN
Comment on attachment 171579 [details] [diff] [review]
V3 - Changes requested by Dave

Replacing with diff -urN
Attachment #171579 - Attachment is obsolete: true
Attachment #171579 - Flags: review?(justdave)
Attached patch Deprecated DB.pm update. (obsolete) — Splinter Review
Attachment #173678 - Flags: review?(justdave)
Comment on attachment 173678 [details] [diff] [review]
Deprecated DB.pm update.

Changed while ($result=$sth->fetchrow_array()) { to read while (my ($foo,
$bar)=$sth->fetchrow_array()) {
Attachment #173678 - Attachment is obsolete: true
Attachment #173678 - Flags: review?(justdave)
Attachment #173681 - Flags: review?(justdave)
Dave - a friendly reminder that this is waiting on your review.
Attachment #173681 - Attachment is obsolete: true
Attachment #176145 - Flags: review?(justdave)
Attachment #173681 - Flags: review?(justdave)
This is really an enhancement, so it's 2.22 material. Also, we do already note
that they're deprecated in the POD docs, but I agree it would be good to move
them to the bottom of the file.
Severity: normal → enhancement
Target Milestone: Bugzilla 2.20 → Bugzilla 2.22
Version: unspecified → 2.19
Attachment #176145 - Flags: review?(justdave) → review?(mkanat)
Comment on attachment 176145 [details] [diff] [review]
Deprecated DB.pm routines update

The information in the comments should be in POD docs instead.

The deprecated routines should not have a synopsis in the POD docs.
Attachment #176145 - Flags: review?(mkanat) → review-
The trunk is now frozen to prepare Bugzilla 2.22. Enhancement bugs are retargetted to 2.24.
Target Milestone: Bugzilla 2.22 → Bugzilla 2.24
QA Contact: mattyt-bugzilla → default-qa
Deprecated DB routines do not exist anymore. This makes this bug obsolete.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → WORKSFORME
Target Milestone: Bugzilla 3.0 → ---
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: