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
Inconsistent behavior when updating startDate of events #8720
Comments
Hi! I just updated to 5.6.9, and I'm still noticing the first issue:
Please see screen recording: Skarminspelning.2024-04-08.kl.17.00.44.movThe second issue seem to be resolved though, good job! |
@jimmycallin Hi, this issue is caused by the general approach you are using, which is to sync the dataset (instead of using the API calls). In this case you provide a JSON dataset to the store, which is then updated dynamically. When applying this dataset, a diff is performed ( In this case, only a change for |
I don't understand, if the change in startDate is applied, with no change in endDate, why are you assuming the duration is consistent? |
Ok, I see. But do you agree that this is a bug with your implementation? If I provide both a startDate and endDate, and I update the startDate by providing updated data to your React component, I expect the scheduler to correctly display the event with the provided startDate and endDate. I understand the implementation details that cause the current behavior, but if I can't rely on the scheduler correctly displaying the provided data most of the purpose of using your provided react components disappear. |
I don't think its a bug per se, since the You can try to fix this by setting syncDataOnLoad on |
@jimmycallin After discussion we have opened a follow-up ticket here: #8985 |
Great, thank you! |
@jimmycallin #8985 has been merged to the repo, we've applied a workaround, that |
amazing, thank you! |
Forum post
Hi!
We see some inconsistent behavior when updating the startDate of events while providing a specific endDate.
As you can tell by the screen recording, we have two main issues that it showcases:
When providing both startDate and endDate, and I update the startDate, I expect the duration to change according to the new startDate.
When updating startDate and toggle back and forth with segments, I expect the event to not suddenly turn into a milestone and disappear
Please see recording and example app
Please read the desc from client above to understand the issue
Please check the video to reproduce the issue with the attached react app
msedge_tqB0AQCfNt.mp4
scheduler-bugs edited.zip
The text was updated successfully, but these errors were encountered: