firegento-adminmonitoring icon indicating copy to clipboard operation
firegento-adminmonitoring copied to clipboard

mass actions

Open airbone42 opened this issue 11 years ago • 3 comments

check how to deal with mass actions and importers.

is model save called?

airbone42 avatar Sep 08 '13 12:09 airbone42

It's not. Mass Action uses Mage_Catalog_Model_Resource_Product_Action::updateAttributes, ImportExport uses it's own resource model as well. Perhaps you can jump into indexer processing as those are called in all (useful) cases.

avstudnitz avatar Sep 10 '13 14:09 avstudnitz

Mage_Catalog_Model_Resource_Product_Action::updateAttributes doesn't throw any events, where we could hook into, but indexer processing is only called if it's not set to manual, which is the case on a lot of stores which are deployed to prevent heavy database operation during business hours. :( So to really track the changes we would have to rewrite Mage_Catalog_Model_Resource_Product_Action and maybe even other resource models, like you mentioned for ImportExport.

Anyway we wanted to add a logging for triggering index and cache changes, but that would only show that something might have happened, not really what changed.

airbone42 avatar Sep 10 '13 15:09 airbone42

we can log the indexing, when we hook into the predispatch event, and just log the $_POST content.

If you ask me, we are not interessted in changes in indexes and caches...

Schrank avatar Sep 10 '13 15:09 Schrank