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

Wrong dependency rendering #1122

Open
SergeyMaltsev opened this issue Jul 3, 2020 · 0 comments
Open

Wrong dependency rendering #1122

SergeyMaltsev opened this issue Jul 3, 2020 · 0 comments
Labels
bug Something isn't working forum Issues from forum

Comments

@SergeyMaltsev
Copy link
Contributor

Reported here

Bug

No dependency between Interview -> Press meeting
Dependency for Press meeting -> Script deadline is partially below Audition

##Sample code

const scheduler = new Scheduler({
    adopt : 'container',

    startDate : new Date(2018, 4, 6),
    endDate   : new Date(2018, 4, 13),

    features : {
        dependencies : true
    },

    columns : [
        { field : 'name', text : 'Name', width : 100 }
    ],

    resources : [
        { id : 1, name : 'Bernard' },
        { id : 2, name : 'Bianca' }
    ],

    events : [
        { id : 1, resourceId : 1, name : 'Interview', startDate : '2018-05-06', endDate : '2018-05-08' },
        { id : 2, resourceId : 1, name : 'Press meeting', startDate : '2018-05-08', endDate : '2018-05-09' },
        { id : 3, resourceId : 2, name : 'Audition', startDate : '2018-05-07', endDate : '2018-05-10' },
        { id : 4, resourceId : 2, name : 'Script deadline', startDate : '2018-05-10', endDate : '2018-05-10' }
    ],

    dependencies : [
        { id : 1, from : 1, to : 2 },
        { id : 2, from : 2, to : 4 }
    ]
});

Result

DependencyNoGap

BTW

Same code with time gaps between events

        { id : 1, resourceId : 1, name : 'Interview', startDate : '2018-05-06', endDate : '2018-05-08' },
        { id : 2, resourceId : 1, name : 'Press meeting', startDate : '2018-05-09', endDate : '2018-05-10' },
        { id : 3, resourceId : 2, name : 'Audition', startDate : '2018-05-07', endDate : '2018-05-10' },
        { id : 4, resourceId : 2, name : 'Script deadline', startDate : '2018-05-11', endDate : '2018-05-11' }

image

@SergeyMaltsev SergeyMaltsev added bug Something isn't working forum Issues from forum labels Jul 3, 2020
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
Projects
None yet
Development

No branches or pull requests

1 participant