Skip to content

Commit

Permalink
Merge pull request #187 from techdivision/PAC-894
Browse files Browse the repository at this point in the history
PAC-894 optimize observer for clean-up grouped products
  • Loading branch information
kenza-ya authored Jul 29, 2024
2 parents 64fa284 + 11a1db9 commit 674e30b
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Version 26.0.1

## Bugfixes

* refactoring clean-up-links and clean-up-variants to remove old data from relation table

# Version 26.0.0

## Features
Expand Down
2 changes: 1 addition & 1 deletion etc/configuration/operations.json
Original file line number Diff line number Diff line change
Expand Up @@ -782,4 +782,4 @@
}
}
}
}
}
5 changes: 4 additions & 1 deletion symfony/Resources/config/2.3.2/services.xml
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,9 @@
<call method="addObserver">
<argument id="import_product_grouped.observer.product.grouped" type="service"/>
</call>
<call method="addObserver">
<argument id="import_product_grouped.observer.clean.up.product.grouped" type="service"/>
</call>
<call method="addObserver">
<argument id="import_product_msi.observer.product.source.item" type="service"/>
</call>
Expand All @@ -200,4 +203,4 @@

</services>

</container>
</container>
8 changes: 7 additions & 1 deletion symfony/Resources/config/services.xml
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,10 @@
<argument type="service" id="import_product.action.processor.stock.item.status.update"/>
<argument type="service" id="import_product.action.processor.stock.item.status.delete"/>
</service>
<service id="import_product.action.product.relation" class="TechDivision\Import\Dbal\Collection\Actions\GenericAction">
<service id="import_product.action.product.relation.variant" class="TechDivision\Import\Dbal\Collection\Actions\GenericAction">
<argument type="service" id="import_product.action.processor.product.relation.create"/>
</service>
<service id="import_product.action.product.relation.grouped" class="TechDivision\Import\Dbal\Collection\Actions\GenericAction">
<argument type="service" id="import_product.action.processor.product.relation.create"/>
</service>

Expand Down Expand Up @@ -829,6 +832,9 @@
<call method="addObserver">
<argument id="import_product_grouped.observer.product.grouped" type="service"/>
</call>
<call method="addObserver">
<argument id="import_product_grouped.observer.clean.up.product.grouped" type="service"/>
</call>
<call method="addObserver">
<argument id="import_product_tier_price.observer.product.tier_price" type="service"/>
</call>
Expand Down

0 comments on commit 674e30b

Please sign in to comment.