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

isUser flag not being set to true to user action on ChangeLogUpdateAction #10615

Open
marciogurka opened this issue Jan 16, 2025 · 0 comments
Open
Labels
bug Something isn't working forum Issues from forum large-account Reported by large customer premium

Comments

@marciogurka
Copy link

marciogurka commented Jan 16, 2025

Forum post

Using the following demo (adapted from https://bryntum.com/products/gantt/examples/basic/)


new Gantt({
    appendTo          : 'container',
    dependencyIdField : 'sequenceNumber',
    rowHeight         : 45,
    tickSize          : 45,
    barMargin         : 8,
    project           : {
        autoSetConstraints : true, // automatically introduce `startnoearlier` constraint if tasks do not use constraints, dependencies, or manuallyScheduled
        autoLoad           : true,
        transport          : {
            load : {
                url : '../_datasets/launch-saas.json'
            }
        },
        stm: {
            autoRecord: true
        },
        listeners: {
            load() {
                this.stm.enable();
            }
        }
    },
    
    features: {
        versions: true
    },
    columns : [
        { type : 'name', width : 250 }
    ],

    // Custom task content, display task name on child tasks
    taskRenderer({ taskRecord }) {
        if (taskRecord.isLeaf && !taskRecord.isMilestone) {
            return StringHelper.encodeHtml(taskRecord.name);
        }
    },
    listeners: {
        transactionChange(ev){
            console.log(ev)
        }
    }
});

It is expected that one of the actions from ev.hasUnattachedTransactions.data.actions has one record with isUser set to true, which is the action that the user performed, but currently, all are being set to false.

Ex.: Move "Hire QA Staff" task, it'll trigger some recalculations, but if you check the action performed from the user, it'll have the isUser flag to false.

Image
@marciogurka marciogurka added bug Something isn't working forum Issues from forum large-account Reported by large customer premium labels Jan 16, 2025
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 large-account Reported by large customer premium
Projects
None yet
Development

No branches or pull requests

1 participant