“If debugging is the process of removing bugs, then programming must be the process of putting them in.” – Edsger Dijkstra
This is the Bug Tracking System for the Flyspray project. This is not a demo! Before opening a new task, please read the guidelines!
Do not issue bugs reports against versions earlier than 0.9.9.5
Security problem? Check the security section.
FS#1330 - Categories tasklist column
Opened by Phil (phil) - Tuesday, 14 August 2007, 20:03 GMT+1
Last edited by Florian Schmitz (Floele) - Tuesday, 21 August 2007, 19:55 GMT+1
|
DetailsI’ve kludged (in 0.9.9.1) a change that allows categories to be seen in the tasklist. Right now we can see category, but we do not see its possible parent categories. This can be highly useful, depending on the situation. The approach is to pre-calculate the categories string into a new column in the list_category table during the update of a category in pm.cat (this means that a “dumb” update must be forced after adding a new category) Another approach might be somehow generating such a categories string on the fly in class.backend.php in the get_task_list() function, but my brain exploded when I attempted to concoct the SQL :p
The files I kludged are: $phil_kludge = $db→FetchAllArray( $db->Query('SELECT * FROM {list_category} WHERE project_id = ? order by lft', $proj->id)
);
$phil_temp_r = $phil_temp_pr = 9999; should be max(rgt) {
if ($phil_temp_r > $phil_row['rgt'])
{
if ($phil_temp_c) $phil_parent[] = $phil_temp_c;
$phil_temp_pr = $phil_temp_r;
}
else if ($phil_temp_pr < $phil_row['rgt'])
array_pop($phil_parent);
// this if clause should be simplified
if (count($phil_parent) > 0) $listfullname[$phil_row['category_id']] =
implode(' - ',$phil_parent).' - '.$phil_row['category_name'];
else $listfullname[$phil_row['category_id']] =
$phil_row['category_name'];
$phil_temp_r = $phil_row['rgt'];
$phil_temp_c = $phil_row['category_name'];
}
END THIS KLUDGE, more below |
Tuesday, 21 August 2007, 19:55 GMT+1
Reason for closing: Will Not Implement
Pooh, the formatting got screwed up a little bit
That uses too much width in the task list column I'd say. For 1.0 there will be a somewhat more useful sorting though, so that tasks are sorted keeping the hierarchy.