[VUE] Calendars

Our state of the art Gantt chart


Post Reply
User avatar
MRC
Posts: 8
Joined: Mon Mar 02, 2020 1:17 pm

[VUE] Calendars

Post 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
Task Duration.png (125.83 KiB) Viewed 54 times

User avatar
arcady
Core Developer
Core Developer
Posts: 2487
Joined: Wed Mar 20, 2013 6:57 am

Re: [VUE] Calendars

Post 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


User avatar
MRC
Posts: 8
Joined: Mon Mar 02, 2020 1:17 pm

Re: [VUE] Calendars

Post 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.


User avatar
MRC
Posts: 8
Joined: Mon Mar 02, 2020 1:17 pm

Re: [VUE] Calendars

Post 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


User avatar
arcady
Core Developer
Core Developer
Posts: 2487
Joined: Wed Mar 20, 2013 6:57 am

Re: [VUE] Calendars

Post 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
11.png (30.69 KiB) Viewed 37 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.


User avatar
MRC
Posts: 8
Joined: Mon Mar 02, 2020 1:17 pm

Re: [VUE] Calendars

Post 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


User avatar
arcady
Core Developer
Core Developer
Posts: 2487
Joined: Wed Mar 20, 2013 6:57 am

Re: [VUE] Calendars

Post by arcady »

Ok reproduced now! Here is a ticket for the bug: https://github.com/bryntum/support/issues/1532
Thank you for the feedback!


User avatar
arcady
Core Developer
Core Developer
Posts: 2487
Joined: Wed Mar 20, 2013 6:57 am

Re: [VUE] Calendars

Post 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.


User avatar
arcady
Core Developer
Core Developer
Posts: 2487
Joined: Wed Mar 20, 2013 6:57 am

Re: [VUE] Calendars

Post 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.


Post Reply