vuestorefront / magento2-vsbridge-indexer

This is official Vue Storefront, native, Magento2 indexer
https://vuestorefront.io
MIT License
68 stars 90 forks source link

Fix / attributes_metadata contains too many attributes #384

Open didkan opened 3 years ago

didkan commented 3 years ago

closes #383

When collecting attributes to populate attributes_metadata almost ALL attributes were fetched creating a lot of data to be transferred to ElasticSearch. I changed the the logic so only the attributes that have is_visible AND is_visible_on_front set will be collected. I assume this was intent from the beginning.

Probably we can even get rid of the is_visible check and only fetch attributes based on is_visible_on_front. I think an attribute will never have is_visible == 0 and is_visible_on_front == 1 at the same time?! What do you think @afirlejczyk @doliwa-divante ?