BlackbitDigitalCommerce / pimcore-data-director

Import Bundle for Pimcore
16 stars 3 forks source link

Data Quality #88

Open betterapp opened 1 year ago

betterapp commented 1 year ago

Can we do this on PimCore 6.9 ? I tried and looks like it is not working.

https://www.youtube.com/watch?v=M1VVmpTjB_I

BlackbitDevs commented 1 year ago

You mean the field type "Textarea with variables"? Should actually work (we have clients with Pimcore 6.9 using this). What error do you get?

betterapp commented 1 year ago

I tried to do displaying quality progress with information about what fields have error. In the tutorial Calculated Value have HTML type which does not exist in Pim6.9

image

What I see here is that we have image

And under type there is HTML. But after setup it does not show anything.

image image image

My Data Query Selector is empty

BlackbitDevs commented 1 year ago

You are right, type=HTML for calculated value fields only exists from Pimcore 10. Alternatively you can apply https://github.com/pimcore/pimcore/pull/7888/files as a patch (via https://github.com/cweagans/composer-patches/tree/1.x)

But I just took a look at the Calculated Value (Data Query Selector) field type. Actually this was thought to be not used for imports but the calculation logic should be written in the configuration field. But I have now changed it to also support importing into this field type (as long as there is calculation logic entered in the field configuration). Can you please try 3.3.x-dev? After installing, please save your data object class which contains the data quality field (as I had to change the getter code generation a little bit).