Closed Bug 276033 Opened 20 years ago Closed 20 years ago

Get rid of globals.pl

Categories

(Bugzilla :: Bugzilla-General, enhancement)

2.19.1
enhancement
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 87411

People

(Reporter: mkanat, Assigned: mkanat)

Details

(Keywords: meta)

globals.pl needs to go, in favor of functions being inside of the Bugzilla::
modules.

I think this should happen in this fashion:

1) Make all functions in globals.pl use perl module code for their
implementation. For example, UserInGroup() would just call Bugzilla->user->groups().

  We need a separate bug for each function that needs to be eliminated this way.

  The same thing can be done for any variables that are in globals.pl -- they
can continue to exist, but be initialized from the modules, and have most of
their actual data probably moved to Bugzilla::Constants.

2) Change everything which used to use the globals.pl code to use the Bugzilla
module code directly.

  Step 2 is less critical, and can happen over time.

  So, feel free to file a bug for every function that needs to be moved out of
globals.pl, and make it block this bug. :-)
Is bug 87411 the same as bug, or does this bug block that one?

Gerv
(In reply to comment #1)
> Is bug 87411 the same as bug

Yep.


*** This bug has been marked as a duplicate of 87411 ***
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.