Allow collapse/expand in gantt chart
|Assignee:||Go MAEDA||% Done:|
Eric - it would be great if there was a way to collapse nested structures in the Gantt chart plugin you developed.. for example, if we don't want to see all the tasks/bugs for our versions, but just want a high level picture of what's coming up, it would be nice to be able to collapse each version to a single row that shows the due date for the version. Possible? Thanks!
#23 Updated by Yuichi HARADA over 2 years ago
- File 6417-collapse-expand-gantt-v2.patch added
Go MAEDA wrote:
After applying the patch, objects in the same indentation level are not horizontally aligned. Please see the screenshot below. Could you check the patch?
I adjusted the horizontal position. #html_subject method's
params is the Hash object. Because we inherited
params[:indent] (Horizontal position), the calculation result of
params[:indent] of the new parent hierarchy was wrong.
I rebuilt the patch.
#30 Updated by Abc4329803 ZHE about 2 years ago
[root@host plugins]# patch /-p0 < 6417-collapse-expand-gantt-v3.patch
can't find file to patch at input line 5
Perhaps you used the wrong /-p or /-/-strip option?
The text leading up to this was:
-------------------------- |diff --git a/app/views/gantts/show.html.erb b/app/views/gantts/show.html.erb |index 90f6a85fa..a51abdcde 100644 |--- a/app/views/gantts/show.html.erb |+++ b/app/views/gantts/show.html.erb
My redmine version is 3.4.
Why I have this problem?
#31 Updated by Matt M about 2 years ago
I just applied the patch to a 4.0.2 install, I noticed an issue though collapsing, I have a very complex hierarchy and this patch completely disrupts it. I.E. a sub-project of a sub-project of a primary project gets lumped under the version of the sub-project, and is not collapsible, which causes issues with the rendering of the hierarchy and collapsing further down, I.E. collapsing a sub-project encapsulates the last sub-project within the main project.
I would put pics but my layout is complex :) I got a pic to show an example.
In this pic if I collapse Mechanical Design then software will disappear, even though they are inline projects.