Closed Bug 279748 Opened 20 years ago Closed 20 years ago

Move GetFieldDefs out of globals.pl (to Bugzilla::DB)

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)

I'm going to move the GetFieldDefs function to Bugzilla::Bug. I'm also going to
make it stop using SendSQL calls, while I do that.
OK. It uses DBI, and it's now in Bugzilla::Bug. I tested the two places where
it's used (it's very simple to test) and they still work.

I also added some pod documentation for it.
Attachment #172344 - Flags: review?
Comment on attachment 172344 [details] [diff] [review]
Move GetFieldDefs and change to use DBI

+  my @fields = GetFieldDefs();

Shouldn't that be Bugzilla::DB::GetFieldDefs()? First because it's not exported
by default in the package, and secondly because the "# Connection" section
which is right above it uses it.

Otherwise looks good. If you agree it's a good thing, it can be fixed upon
check in or if you have the time you can make a new patch and carry my review.
Attachment #172344 - Flags: review? → review+
Status: NEW → ASSIGNED
Flags: approval?
Target Milestone: --- → Bugzilla 2.20
Oh yeah, I agree that's a good thing and can just be fixed on checkin.
Flags: approval? → approval+
Committed... but I lost the checkin messages. :(

... except for this one:

Checking in Bugzilla/DB.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/DB.pm,v  <--  DB.pm
new revision: 1.16; previous revision: 1.15
done

... because I had to check that file twice; I missed the 'fix on checkin' 
comment initially.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Summary: Move GetFieldDefs out of globals.pl (to Bugzilla::Bug) → Move GetFieldDefs out of globals.pl (to Bugzilla::DB)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: