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

'Error: Invalid cache fill interval' when a child event starts before parent #9031

Closed
isglass opened this issue Apr 19, 2024 · 0 comments
Closed
Assignees
Labels
bug Something isn't working forum Issues from forum OEM OEM customer resolved Fixed but not yet released (available in the nightly builds)
Milestone

Comments

@isglass
Copy link
Contributor

isglass commented Apr 19, 2024

https://forum.bryntum.com/viewtopic.php?f=51&t=28775&p=144783#p144783

Nested event scheduled earlier than its parent causes calendar exception.

Reproduction:

import '../../lib/SchedulerPro/feature/NestedEvents.js';
import SchedulerPro from '../../lib/SchedulerPro/view/SchedulerPro.js';

const scheduler = new SchedulerPro({
    appendTo  : 'container',
    startDate : new Date(2022, 2, 29, 7),
    endDate   : new Date(2022, 2, 29, 21),
    features  : {
        nestedEvents : true
    },
    project : {
        resourcesData : [{ id : 1 }],
        eventsData    : [
            {
                id        : 1,
                startDate : '2022-03-29T10:00:00',
                endDate   : '2022-03-29T17:00:00',
                name      : 'Parent',
                children  : [
                    {
                        id        : 11,
                        name      : 'Before',
                        startDate : '2022-03-29T07:40:00',
                        endDate   : '2022-03-29T08:00:00'
                    }
                ]
            }
        ],
        assignmentsData : [
            { id : 1, event : 1, resource : 1 },
            { id : 11, event : 11, resource : 1 }
        ]
    }
});

Throws:
Screenshot 2024-04-19 at 13 42 55

@isglass isglass added bug Something isn't working forum Issues from forum OEM OEM customer labels Apr 19, 2024
@isglass isglass self-assigned this Apr 19, 2024
@isglass isglass added in progress ready for review Issue is fixed, the pull request is being reviewed resolved Fixed but not yet released (available in the nightly builds) and removed in progress ready for review Issue is fixed, the pull request is being reviewed labels Apr 19, 2024
@isglass isglass added this to the 5.6.10 milestone Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working forum Issues from forum OEM OEM customer resolved Fixed but not yet released (available in the nightly builds)
Projects
None yet
Development

No branches or pull requests

1 participant