Closed Bug 175625 Opened 22 years ago Closed 22 years ago

Timetracking columns are computed even if not displayed

Categories

(Bugzilla :: Query/Bug List, defect)

2.17
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 2.18

People

(Reporter: bugreport, Assigned: jeff.hedlund)

Details

Attachments

(1 file)

When a user is capable of timetracking, the E/A/R columns are built into the
buglist queries even for queries that are not trying to display that data.  This
is a major perfomance hit for some queries.

These columns should only be computed if needed for the display or search criteria
The columns are removed only if not a member of the timetracking group. I agree
that they should only be added if the time stuff is selected in colchange.cgi.
Also there is a bug in the time code in buglist.cgi.

# remaining and actual_time are required for precentage_complete calculation:
if (lsearch(\@displaycolumns, "percentage_complete")) {
    push (@selectcolumns, "remaining_time");
    push (@selectcolumns, "actual_time");
}

should be

# remaining and actual_time are required for precentage_complete calculation:
if (lsearch(\@displaycolumns, "percentage_complete") >= 0) {
    push (@selectcolumns, "remaining_time");
    push (@selectcolumns, "actual_time");
}
Attached patch Patch v.1Splinter Review
That should do it, it all stemmed from that bug.  

Thanks for the catch.
Attachment #103595 - Flags: review+
Comment on attachment 103595 [details] [diff] [review]
Patch v.1

2xr=joel
Attachment #103595 - Flags: review+
Checked in for Jeff.

Checking in buglist.cgi;                                     
/cvsroot/mozilla/webtools/bugzilla/buglist.cgi,v  <--  buglist.cgi
new revision: 1.203; previous revision: 1.202
done                          
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Target Milestone: --- → Bugzilla 2.18
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: