Closed Bug 59352 Opened 25 years ago Closed 19 years ago

Remove "used only once fix" silliness from globals.pl

Categories

(Bugzilla :: Bugzilla-General, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 3.0

People

(Reporter: jvromans, Assigned: LpSolit)

References

Details

(Whiteboard: [blocker will fix])

Attachments

(1 obsolete file)

When "use strict" was added to the bugzilla scripts, there were some misconceptions about the use of "use vars". Therefore, to avoid warnings, lots of sillyness was introduced. The attached patch fixes the sillynesses for "globals.pl", being one of the two central files. Patches for the other files will follow in due time. Note that the fixes for each of the files are independent of each other.
Attached patch Remove sillyness from globals.pl (obsolete) — Splinter Review
Keywords: patch, review
Summary: Remove sillyness → Remove sillyness from globals.pl
Whiteboard: 2.14
Whiteboard: 2.14 → 2.16
moving to real milestones...
Target Milestone: --- → Bugzilla 2.16
-> Bugzilla product, General component, reassigning.
Assignee: tara → justdave
Component: Bugzilla → Bugzilla-General
Product: Webtools → Bugzilla
Whiteboard: 2.16
Version: other → unspecified
jvromans: Cool :-) Can you explain exactly what the problem was? We have sillyness everywhere, and it would be great to get rid of it. Gerv
jvromans: your patches have probably rotted, but they can be recreated if you explain what we did wrong! :-) Gerv
We are currently trying to wrap up Bugzilla 2.16. We are now close enough to release time that anything that wasn't already ranked at P1 isn't going to make the cut. Thus this is being retargetted at 2.18. If you strongly disagree with this retargetting, please comment, however, be aware that we only have about 2 weeks left to review and test anything at this point, and we intend to devote this time to the remaining bugs that were designated as release blockers.
Target Milestone: Bugzilla 2.16 → Bugzilla 2.18
This would be really cool, those sillynesses suck. jvromans@squirrel.nl, ping? Can somebody explain what the comment 'For some reason, "use vars" chokes on me when I try it here.' actually meant? How did it choke? The cvs commit log entry for the revision containing those lines doesn't have a bug number nor a decent description...
OS: Linux → All
Hardware: PC → All
I think the problem was the original code author didn't know the correct syntax for using "use vars". Someone pointed out the correct usage in some bug, so recent code uses the correct syntax, hence the issue at hand is to update the remaining files which still use sillyness to the syntax used everywhere else.
globals.pl will go away eventually, so it's probably not worth doing this. It doesn't hurt anyone. Patches for CGIs which are sticking around, on the other hand, are most welcome :-) Gerv
Attachment #18861 - Attachment is obsolete: true
All 2.18 bugs that haven't been touched in over 60 days and aren't flagged as blockers are getting pushed out to 2.20
Target Milestone: Bugzilla 2.18 → Bugzilla 2.20
Severity: normal → enhancement
Summary: Remove sillyness from globals.pl → Remove "used only once fix" silliness from globals.pl
Depends on: bz-globals
Priority: P3 → --
Whiteboard: [blocker will fix]
Target Milestone: Bugzilla 2.20 → ---
Assignee: justdave → general
QA Contact: mattyt-bugzilla → default-qa
Fixed by bug 328637
Assignee: general → LpSolit
Depends on: 328637
No longer depends on: bz-globals
Target Milestone: --- → Bugzilla 2.24
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: