Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scheduler Pro ignores event calendars is scheduling #2734

Closed
bmblb opened this issue Apr 23, 2021 · 1 comment
Closed

Scheduler Pro ignores event calendars is scheduling #2734

bmblb opened this issue Apr 23, 2021 · 1 comment
Assignees
Labels
docs Improvements or additions to documentation

Comments

@bmblb
Copy link

bmblb commented Apr 23, 2021

Reported here: https://bryntum.com/forum/viewtopic.php?f=52&t=17295&p=85810#p85810
Steps to reproduce on weekends demo:

  1. define calendar like this:
"calendars"          : {
        "rows" : [
            {
                "id"        : "weekends",
                "name"      : "Weekends",
                "unspecifiedTimeIsWorking": true,
                "intervals" : [
                    {
                        "recurrentStartDate" : "on Sat at 0:00",
                        "recurrentEndDate"   : "on Mon at 0:00",
                        "isWorking"          : false
                    }
                ],
                "expanded": true,
                "children": [
                    {
                        "id": "cal1",
                        "name": "cal1",
                        "unspecifiedTimeIsWorking": true,
                        "intervals": [
                            {
                                "startDate": "2021-12-18",
                                "endDate": "2021-12-20",
                                "isWorking": true
                            }
                        ]
                    }
                ]
            }
        ]
    }
  1. adjust scheduler config:
startDate         : new Date(2021, 11, 1),
endDate           : new Date(2021, 11, 31),
  1. create an event before working weekend and then resize/drop it to end on monday. see it skips working weekend. It appears to be ignoring event calendar and schedule events using project calendar always
    This should last 3 days and end on saturday
    изображение
@bmblb bmblb added the bug Something isn't working label Apr 23, 2021
@canonic-epicure
Copy link

PR with test in engine: https://github.com/bryntum/bryntum-suite/pull/3291

The reason was that resource was still inheriting the project calendar, remaining unavailable during that special weekend for event.

The solution is to assign a 24/7 calendar for resource

@bmblb bmblb added docs Improvements or additions to documentation and removed bug Something isn't working labels Apr 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants