csgoh / roadmapper

Roadmapper - A Roadmap as Code (Rac) python library. Generate professional roadmap diagram using python code.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiple Milestones per task causes incorrect group height

rickc1588 opened this issue · comments

If you have multiple milestones on one task, the group height increases with the total number of milestones, which makes it too tall. You only need to increase the height once per task with a milestone.

I hacked in this in group.py, which seems to fix the issue

milestone_count = 0
for task in self.tasks:
milestone_count += 1 #len(task.milestones) only need to increase height once per milestone
if len(task.milestones) == 0:
for parallel_task in task.tasks:
milestone_count += 1 #len(parallel_task.milestones)
break ### We only need to know whether there milestone exists in the parallel tasks

Hi, can you provide your code sample that I can use to recreate the issue?

This has been resolved in v1.3.1

Tested it and it is fixed.
Thank You.