BlackbitDigitalCommerce / pimcore-data-director

Import Bundle for Pimcore
16 stars 3 forks source link

Event with changed data on import #83

Open ascheider opened 1 year ago

ascheider commented 1 year ago

Is there any possibility to get data which was changed on import? Like fieldname and data? Currently we need do load previous version and compare the data, to get delta. It would be really helpful to get the data directly from import and process them for third party.

BlackbitDevs commented 1 year ago

From version 3.3 the changes get written to the version note. I could also provide this directly. Currently I am working on some memory problems and storing even more data of the imported objects would worsen this problem. But I put this onto my todo list...

Edit: Ah you mean in an event, not in the input variables for result callback function. This could be done in a memory-efficient way. When do you need this data? Add it to pimcore.dataobject.postUpdate event?

ascheider commented 1 year ago

@BlackbitDevs Yes in postUpdate event is it perfect and would be very nice, it will reduce so much workload to get new delta data.