Closed Bug 283919 Opened 20 years ago Closed 20 years ago

Move BugAliasToID out of CGI.pl into Bugzilla::Bug

Categories

(Bugzilla :: Creating/Changing Bugs, enhancement)

2.19.2
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 2.20

People

(Reporter: mkanat, Assigned: mkanat)

References

Details

Attachments

(1 file, 3 obsolete files)

Here are the only places BugAliasToID is used: Bugzilla/Bug.pm: $bug_id = &::BugAliasToID($bug_id) if $bug_id !~ /^0*[1-9][0-9]*$/; CGI.pl:sub BugAliasToID { This tends to make me think that: 1) We don't use it where we should. 2) People ought to use Bug objects. I have to investigate a bit to determine whether or not the function should be removed entirely.
I investigated. BugAliasToID will just be eliminated. It has no use at this point. I suppose we can add it back if we need it in the future. It *seems* like it ought to be a useful function, but I think that everything that needs to know about aliases is now using Bug objects (which is pretty much as it should be).
Status: NEW → ASSIGNED
Summary: Move BugAliasToID out of CGI.pl → Move BugAliasToID out of CGI.pl (Remove it entirely)
Target Milestone: --- → Bugzilla 2.20
Attachment #175700 - Flags: review?(wurblzap)
Attached patch v1.1 (obsolete) — Splinter Review
Oh, the previous one had too-long of a line. Fixed. :-)
Attachment #175700 - Attachment is obsolete: true
Attachment #175701 - Flags: review?(wurblzap)
Attachment #175700 - Flags: review?(wurblzap)
Comment on attachment 175701 [details] [diff] [review] v1.1 ValidateBugID still uses BugAliasToID!
Attachment #175701 - Flags: review?(wurblzap) → review-
Darn. OK, I'll have to get a new patch up. :-)
Summary: Move BugAliasToID out of CGI.pl (Remove it entirely) → Move BugAliasToID out of CGI.pl into Bugzilla::Bug
Attached patch v2 (Move to Bugzilla::Bug) (obsolete) — Splinter Review
OK, I feel more comfortable about this patch, anyhow. :-)
Attachment #175701 - Attachment is obsolete: true
Attachment #175850 - Flags: review?(LpSolit)
Attached patch v2.1Splinter Review
Fixed some bitrot that LpSolit pointed out on IRC.
Attachment #175850 - Attachment is obsolete: true
Attachment #176620 - Flags: review?(LpSolit)
Attachment #175850 - Flags: review?(LpSolit)
Comment on attachment 176620 [details] [diff] [review] v2.1 works fine! r=LpSolit
Attachment #176620 - Flags: review?(LpSolit) → review+
Flags: approval?
Flags: approval? → approval+
Checking in CGI.pl; /cvsroot/mozilla/webtools/bugzilla/CGI.pl,v <-- CGI.pl new revision: 1.233; previous revision: 1.232 done Checking in Bugzilla/Bug.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/Bug.pm,v <-- Bug.pm new revision: 1.63; previous revision: 1.62 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: