Premium support for our pure JavaScript UI components


Post by rakshith.snps »

Hi, I Noticed that undo and redo operation didnt work properly whenever i change the resources in the scheduler pro.

I copied my data into your salesforce example and made the source config similar to ours.
I was able to reproduce the problem.

Here is a demo.
Undo operation does not take it back to original position.
Further operations are broken.

Resource Bug.gif
Resource Bug.gif (572.14 KiB) Viewed 438 times

Please check here for a runnable testcase.

gantt_component.zip
(16.88 KiB) Downloaded 10 times

It does not happen with data used by bryntum. So I am assuming it as something to do with our data. But not entirely sure.
I would appreciate your help in this.


Post by alex.l »

Hi,

We need more context since it worked for me using your code snippet. Please see video attached.
Try to upgrade to latest version.

Attachments
Screen Recording 2024-08-01 at 21.08.13.mov
(8.44 MiB) Downloaded 16 times

All the best,
Alex


Post by rakshith.snps »

Hi Here are the steps to reproduce.

Move the event diagonally into another resource so that both resource and date times are changed.
then try doing multiple undo's and redo's for that operation.

Could you please check if you can reproduce it with the above steps.
We are using Bryntum v6.0.1.

Here is a demo please follow similar actions to reproduce the issue.

Resource Bug.gif
Resource Bug.gif (572.14 KiB) Viewed 398 times

Post by Maxim Gorkovsky »

Hello.
Reproduced, ticket opened here: https://github.com/bryntum/support/issues/9728 Thank you for report.

I noticed that reason seems to be id collision between assignment and event record. For a workaround you can fix the id collision.


Post by rakshith.snps »

Thank you. The workaround fixes the problem.


Post by alex.l »

Hi,

We glad to hear. Please feel free to ask for help.

All the best,
Alex


Post Reply