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)
Tracking
()
RESOLVED
FIXED
Bugzilla 2.20
People
(Reporter: mkanat, Assigned: mkanat)
References
Details
Attachments
(1 file, 3 obsolete files)
3.00 KB,
patch
|
LpSolit
:
review+
|
Details | Diff | Splinter Review |
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.
Assignee | ||
Comment 1•20 years ago
|
||
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
Assignee | ||
Comment 2•20 years ago
|
||
Attachment #175700 -
Flags: review?(wurblzap)
Assignee | ||
Comment 3•20 years ago
|
||
Oh, the previous one had too-long of a line. Fixed. :-)
Attachment #175700 -
Attachment is obsolete: true
Attachment #175701 -
Flags: review?(wurblzap)
Assignee | ||
Updated•20 years ago
|
Attachment #175700 -
Flags: review?(wurblzap)
![]() |
||
Comment 4•20 years ago
|
||
Comment on attachment 175701 [details] [diff] [review]
v1.1
ValidateBugID still uses BugAliasToID!
Attachment #175701 -
Flags: review?(wurblzap) → review-
Assignee | ||
Comment 5•20 years ago
|
||
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
Assignee | ||
Comment 6•20 years ago
|
||
OK, I feel more comfortable about this patch, anyhow. :-)
Attachment #175701 -
Attachment is obsolete: true
Attachment #175850 -
Flags: review?(LpSolit)
Assignee | ||
Comment 7•20 years ago
|
||
Fixed some bitrot that LpSolit pointed out on IRC.
Attachment #175850 -
Attachment is obsolete: true
Attachment #176620 -
Flags: review?(LpSolit)
Assignee | ||
Updated•20 years ago
|
Attachment #175850 -
Flags: review?(LpSolit)
![]() |
||
Comment 8•20 years ago
|
||
Comment on attachment 176620 [details] [diff] [review]
v2.1
works fine! r=LpSolit
Attachment #176620 -
Flags: review?(LpSolit) → review+
![]() |
||
Updated•20 years ago
|
Flags: approval?
Updated•20 years ago
|
Flags: approval? → approval+
Assignee | ||
Comment 9•20 years ago
|
||
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.
Description
•