Gave silenceInitialCommit=false a try, but it now returns a lot of false positive changes.
I included an excerpt of the changes object after initial load.
In summary:
events.updated contains all events -> It should not return all events, I will need to investigate, I suspect it is because my load request didn't inlcude an endDate but a only a duration ?
resources.updated contains all resources -> I don't see why all resources got updated
assignments.added contains all assignments -> make no sense, the scheduler didn't add any assignements
dependencies.added contains all dependencies -> make no sense, the scheduler didn't add any dependencies
What I'm looking for is simply to get the list of events for which the scheduling engine changed the start date during initial load.
I guess it will be simpler to keep a copy of the orignal data from server do this comparison myself.
Re: [SchedulerPro]
Posted: Wed Mar 22, 2023 8:52 pm
by mats
events.updated contains all events -> It should not return all events, I will need to investigate, I suspect it is because my load request didn't inlcude an endDate but a only a duration ?
Yes that's likely it.
Can you please post the raw dataset you load and the raw "changes" object so we can have a look?
Re: [SchedulerPro]
Posted: Wed Mar 22, 2023 9:02 pm
by guillaume.morin
Sure thing, see attached.
Re: [SchedulerPro]
Posted: Wed Mar 22, 2023 9:11 pm
by guillaume.morin
FYI, I was able to get the initial changes, without silenceInitialCommit=false, using the following code.
There is really no other change the scheduler can do to my original data, so that will do the job for now.
Re: [SchedulerPro] - Get changes from initial scheduling
Posted: Thu Mar 23, 2023 9:48 am
by alex.l
Hi, thank you for the question.
You can use isInitialCommit flag, I already updated docs to make it public, the change will be available in the nearest patch release.
Regarding to originalData, it's private and may not work as you expected. originalData object may not contains not committed changes in a record. I see you found that and used in your logic.
But it's for internal use, better to check project.changes to get updated records.