akeneo / magento2-connector-community

Akeneo Connector for Magento 2
Open Software License 3.0
85 stars 89 forks source link

Attributes with source model still get new options from Akeneo #42

Open bartoszkubicki opened 5 years ago

bartoszkubicki commented 5 years ago

It is quite edge case, but it sometimes occurs. While having attribute in magento with source model bound, and corresponding one with options in akeneo, we stilll got these options imported as eav options. It occurs for example if we create tax_class_id. Its options from akeneo are inserted into eav_attribute_option_* tables. There is no validation that attribute has source model. On the other hand it doesn't seem to break anything, but it is confusing.

Environment and configuration

  1. "akeneo/module-magento2-connector-community": "100.2.2"

Steps to reproduce

  1. Add attribute in akeneo which have source model in magento or modify magento attribute, so it works basing on source model
  2. Add some options in akeneo
  3. Import options in magento

Expected result

  1. No new rows in eav options tables = no rubbish in db.
  2. Info about difference in options source, so merchant or developer can fix that .

Actual result

  1. New rows in eav options tables for this attribute, despite the fact it doesnt use options
  2. No info what happened.
franckcharpentier commented 4 years ago

In Magento I have attributes with source model and I can't import this data.

Is it possible to import data for an attribute with a source model ?

It seems to me that the Akénéo code could be used as a value if a source model is defined in Magento ?

simonrl commented 2 years ago

Hi, has anything happened here? We also noticed this error. Thanks Simon