Closed Bug 289062 Opened 20 years ago Closed 20 years ago

editusers is querying for groups twice on update

Categories

(Bugzilla :: Administration, task)

task
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 2.20

People

(Reporter: Tomas.Kopal, Assigned: Tomas.Kopal)

Details

Attachments

(1 file, 1 obsolete file)

2.08 KB, patch
Tomas.Kopal
: review+
bugreport
: review+
Details | Diff | Splinter Review
Editusers.cgi is selecting ids and names of groups on update, but that information is already available. We can clean this up. Whis is a followup from bug 286686.
Status: NEW → ASSIGNED
Attached patch V1 (obsolete) — Splinter Review
Sorry, Marc, you have been nominated for review by Max ;-).
Attachment #179661 - Flags: review?(wurblzap)
Comment on attachment 179661 [details] [diff] [review] V1 >diff -ru ../bugzilla-clean/editusers.cgi ./editusers.cgi >--- ../bugzilla-clean/editusers.cgi 2005-03-16 20:17:03.000000000 +1030 >+++ ./editusers.cgi 2005-04-05 12:02:32.638750000 +0930 >@@ -295,7 +295,6 @@ > }); > > # We need the group names, too -- for display and for profiles_activity. >- my $groups = $dbh->selectall_hashref('SELECT id, name FROM groups', 'id'); Please remove the comment as well. Can be done on checkin imo. Nice clean-up, r=wurblzap.
Attachment #179661 - Flags: review?(wurblzap) → review+
Flags: blocking2.20?
Flags: approval?
Attached patch V1.1Splinter Review
Removed also the comment, as suggested. Carrying the r+ on.
Attachment #179661 - Attachment is obsolete: true
Attachment #179778 - Flags: review+
Component: Bugzilla-General → Administration
Flags: blocking2.20?
Flags: blocking2.20+
Flags: approval?
Target Milestone: --- → Bugzilla 2.20
Comment on attachment 179778 [details] [diff] [review] V1.1 I'd like to get a second review on this because of the security level of the code it's touching, since we're in freeze mode now and I'd hate to regress anything.
Attachment #179778 - Flags: review?(bugreport)
Comment on attachment 179778 [details] [diff] [review] V1.1 r=joel this looks pretty safe
Attachment #179778 - Flags: review?(bugreport) → review+
Flags: approval?
Flags: approval? → approval+
Checking in editusers.cgi; /cvsroot/mozilla/webtools/bugzilla/editusers.cgi,v <-- editusers.cgi new revision: 1.84; previous revision: 1.83 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

Creator:
Created:
Updated:
Size: