Closed
Bug 300551
Opened 19 years ago
Closed 18 years ago
Eliminate deprecated Bugzilla::DB routines from User.pm and Token.pm
Categories
(Bugzilla :: Bugzilla-General, enhancement)
Tracking
()
RESOLVED
FIXED
Bugzilla 3.0
People
(Reporter: LpSolit, Assigned: LpSolit)
References
Details
Attachments
(2 files, 1 obsolete file)
8.16 KB,
patch
|
wicked
:
review+
|
Details | Diff | Splinter Review |
10.73 KB,
patch
|
wicked
:
review+
|
Details | Diff | Splinter Review |
.
Assignee | ||
Updated•19 years ago
|
Status: NEW → ASSIGNED
Target Milestone: --- → Bugzilla 2.22
Assignee | ||
Updated•19 years ago
|
Target Milestone: Bugzilla 2.22 → Bugzilla 2.24
Assignee | ||
Comment 1•18 years ago
|
||
I prefer to submit two patches... one for Token.pm, another one for User.pm.
Attachment #213827 -
Flags: review?(wicked)
Assignee | ||
Comment 2•18 years ago
|
||
And here is the one for User.pm. I did a big cleanup in User::match().
Attachment #213839 -
Flags: review?(wicked)
Comment 3•18 years ago
|
||
Comment on attachment 213827 [details] [diff] [review] patch for Token.pm, v1 >+ my ($issuedate, $tokentype, $eventdata, $loginname, $realname) = >+ $dbh->selectrow_array('SELECT ' . $dbh->sql_date_format('issuedate') . ', >+ tokentype , eventdata , login_name , realname Nit: Remove extra spaces before commas so that this line fits inside 80 chars.
Attachment #213827 -
Flags: review?(wicked) → review+
Comment 4•18 years ago
|
||
Comment on attachment 213839 [details] [diff] [review] patch for User.pm, v1 >- "LENGTH(login_name) AS namelength " . >- $query .= " ORDER BY namelength"; Removing these lines from the two queries changes the list that is returned for limited lists. I don't think login name length was a good sort but changing this to an unspecified DB order (?) doesn't sound right either. Maybe instead order the results with login_name and/or realname to get consistent lists?
Attachment #213839 -
Flags: review?(wicked) → review-
Assignee | ||
Comment 5•18 years ago
|
||
Attachment #213839 -
Attachment is obsolete: true
Attachment #214251 -
Flags: review?(wicked)
Comment 6•18 years ago
|
||
Comment on attachment 214251 [details] [diff] [review] patch for User.pm, v2 Seems to still work. Even on Pg.
Attachment #214251 -
Flags: review?(wicked) → review+
Updated•18 years ago
|
Flags: approval?
Updated•18 years ago
|
Flags: approval? → approval+
Assignee | ||
Comment 7•18 years ago
|
||
Checking in Bugzilla/Token.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/Token.pm,v <-- Token.pm new revision: 1.40; previous revision: 1.39 done Checking in Bugzilla/User.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/User.pm,v <-- User.pm new revision: 1.103; previous revision: 1.102 done
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•