Page 1 of 1
[VUE] Calendars
Posted: Wed Sep 16, 2020 1:01 pm
by MRC
Calendars are giving me some strange results. I have checked on your website and am getting the same issues. Switching between calendars and back again affects the original duration. I have created a video for you to see below;
https://www.loom.com/share/6cf9cea59c6a4e47a9ce60721abac2a5
Other issues i am getting on my calendars are;
I want to have a 1 day duration that starts and finishes on the same day, e.g Start at 8:00 & Finish at 17:00, this seems not possible. The only way to show a task starting & finishing on the same day is to create a milestone - but I need to have a 1 day task. Is there a way to set this up?
Also see image below, can i stop this situation occurring - I clearly have a task running over 3 weeks but the duration is 5 days. There is no effort applied or constraints - this should be 15 days??
I have spent so much time trying to resolve these issues, can someone give me a demo please on how all this should be managed. I would really appreciate it as it is very frustrating.
- Task Duration.png (125.37 KiB) Viewed 1302 times
Re: [VUE] Calendars
Posted: Wed Sep 16, 2020 2:17 pm
by arcady
Calendars are giving me some strange results. I have checked on your website and am getting the same issues. Switching between calendars and back again affects the original duration. I have created a video for you to see below;
I cannot reproduce that. I see that the dataset in the video is different so there were some steps that resulted that behaviour. I need to know them because otherwise it's not reproducible.
Also see image below, can i stop this situation occurring - I clearly have a task running over 3 weeks but the duration is 5 days. There is no effort applied or constraints - this should be 15 days??
There is a guide describing calendars that could be useful: https://bryntum.com/docs/gantt/#guides/calendars.md
Important thing about duration values (duration, effort, dependency lag etc) is units the value is defined in and that unit value.
There is a special config that exactly defines how many hours a day
contains. In the current Gantt version it's defined on the project calendar: https://bryntum.com/docs/gantt/#Gantt/model/CalendarModel#field-hoursPerDay. In the upcoming 4.0 release this config was moved to the project itself.
So the task in the screenshot uses "Business" calendar which defines working time as: 08:00 - 12:00, 13:00 - 17:00. It gives us 8 hours per a day yet the project level hoursPerDay config === 24. So it says that "1 day" means "24 hours".
As result 5 days
duration means: 5 * 24 = 120hrs
Re: [VUE] Calendars
Posted: Wed Sep 16, 2020 5:37 pm
by MRC
On your website Gantt example, extend the end date of one of your tasks thereby increasing the duration. Then do exactly as I did in the video and you will get the same bug.
Is a 1 day task possible without the dates spanning 2 days? A 1 day task should start & finish on the same day.
Re: [VUE] Calendars
Posted: Wed Sep 16, 2020 5:40 pm
by MRC
Check the latest video, this is how you can recreate the calendar bug in the latest Gantt.
https://www.loom.com/share/2b9017001f0a4633abf5e63663d226f5
Re: [VUE] Calendars
Posted: Thu Sep 17, 2020 10:14 am
by arcady
MRC wrote: ↑Wed Sep 16, 2020 5:37 pm
On your website Gantt example, extend the end date of one of your tasks thereby increasing the duration. Then do exactly as I did in the video and you will get the same bug.
On our website there are 41 tasks in that demo. In your video I see only seven of them.
And the undo queue ..what the badge shows .."19" changes?
- 11.png (30.58 KiB) Viewed 1285 times
I need exact steps to reproduce the issue ..what changes did you do to the tasks to get that behaviour?
Because it is not reproducible if I simply open the demo and toggling the tasks calendars
MRC wrote: ↑Wed Sep 16, 2020 5:37 pm
Is a 1 day task possible without the dates spanning 2 days? A 1 day task should start & finish on the same day.
What do you call a 1 day task? Start at 8am and finish at 5pm? Setup a corresponding calendar on the task (or on the project if most of the task should use the same setup) and unit rules on the project level.
Re: [VUE] Calendars
Posted: Thu Sep 17, 2020 12:47 pm
by MRC
I removed some of the tasks for clarity!
See below video from logging in to your website, the bug persists.
https://www.loom.com/share/4b306590ba5c4bd18c94dfd1e8e5fc55
You have not answered the query on a 1 day task, start and finish should be on the same day
Re: [VUE] Calendars
Posted: Thu Sep 17, 2020 1:18 pm
by arcady
Ok reproduced now! Here is a ticket for the bug: https://github.com/bryntum/support/issues/1532
Thank you for the feedback!
Re: [VUE] Calendars
Posted: Thu Sep 17, 2020 1:29 pm
by arcady
You have not answered the query on a 1 day task, start and finish should be on the same day
By default the Gantt uses 24 hrs calendar and the project is configured that 1 day
means 24 hrs
.
So if a 1-day task starts on 2020-09-17 00:00:00
it naturally finishes 2020-09-18 00:00:00
(end date is not inclusive).
But if you setup 8hrs calendar and configure the project that 1 day
means 8 hrs
then a 1-day task will for example start on 2020-09-17 08:00:00
it finish 2020-09-17 17:00:00
.
Re: [VUE] Calendars
Posted: Fri Sep 18, 2020 2:28 pm
by arcady
Ok, regarding the duration issue ..it's already resolved in the upcoming Gantt 4.0.0 release so I've closed the ticket.