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

Adding a new task registered as 2 transactions when computer is slow #1270

Closed
pmiklashevych opened this issue Jul 31, 2020 · 0 comments
Closed
Assignees
Labels
bug Something isn't working resolved Fixed but not yet released (available in the nightly builds)
Milestone

Comments

@pmiklashevych
Copy link

http://lh/master/bryntum-suite/gantt/examples/undoredo/

Slow down your machine (dev-tools -> performance -> CPU -> 6x slower)
Add a task in console:
gantt.taskStore.rootNode.appendChild({ name : 'New task', duration : 1 })
See 2 transactions registered (and 2 badge is displayed on the undo button)
Снимок экрана 2020-07-31 в 12 33 59

Reload the page and repeat with no throttling. See one transaction is registered
Снимок экрана 2020-07-31 в 12 35 40

It affects http://lh/master/bryntum-suite/gantt/tests/#examples/php.t.js?es6
It sometimes fails with

Undo/Redo should be clear clear after load
    fail 5 - Waited too long for:  selector ".b-badge[data-ref="undoBtn"][data-badge="1"]" to appear
    Failed assertion `waitForSelector` 
    Condition was not fullfilled during 30000ms. 
@pmiklashevych pmiklashevych added the bug Something isn't working label Jul 31, 2020
@pmiklashevych pmiklashevych added this to the Gantt 4.0.0 milestone Jul 31, 2020
@pmiklashevych pmiklashevych self-assigned this Jul 31, 2020
@bmblb bmblb assigned bmblb and unassigned pmiklashevych Aug 25, 2020
@bmblb bmblb 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 Aug 25, 2020
@SergeyMaltsev SergeyMaltsev modified the milestones: Gantt 4.0.0, 4.0.0 Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working resolved Fixed but not yet released (available in the nightly builds)
Projects
None yet
Development

No branches or pull requests

3 participants