Commit 89bc53db authored by Piotr Borek's avatar Piotr Borek
Browse files

Merge branch '767-2-copy-products-into-family-variants-translations' into 'master'

#767 Copy products rule - translations

See merge request !594
parents cfd54e9b 9bb15be1
Pipeline #254040263 failed with stages
in 7 minutes and 4 seconds
......@@ -66,9 +66,6 @@ class CopyProductsRuleStep extends AbstractStep
return;
}
$stepExecution->addSummaryInfo('sf', $sourceFamily->getCode());
$stepExecution->addSummaryInfo('df', $destinationFamily->getCode());
$pqb = $this->pqbFactory->create([
'default_locale' => null,
'default_scope' => null,
......
......@@ -37,6 +37,12 @@ job_execution.summary:
source_urls_found: Source URLs found
files_downloaded: Files downloaded
entities_updated: Entities updated
associated_product_models_found: Associated product models found
associated_product_models_found_in_correct_family: Associated product models in correct family
axis_attribute_not_exists_in_source_product: Axis attribute not found in source product
sub_entities_found: Sub entities found
sub_product_models_created: Sub product models created
sub_products_created: Sub products created
pim_datagrid:
cells:
......
......@@ -37,6 +37,12 @@ job_execution.summary:
source_urls_found: FR Source URLs found
files_downloaded: FR Files downloaded
entities_updated: FR Entities updated
associated_product_models_found: FR Associated product models found
associated_product_models_found_in_correct_family: FR Associated product models in correct family
axis_attribute_not_exists_in_source_product: FR Axis attribute not found in source product
sub_entities_found: FR Sub entities found
sub_product_models_created: FR Sub product models created
sub_products_created: FR Sub products created
pim_datagrid:
cells:
......
......@@ -107,7 +107,7 @@ class CopyProductToProductModel
$subEntity = $this->subEntityFinder->findByAxisAttributes($destinationProductModel, $axisAttributes, $sourceProduct);
if ($subEntity) {
$this->stepExecution->incrementSummaryInfo('subentities_found', 1);
$this->stepExecution->incrementSummaryInfo('sub_entities_found', 1);
$this->copy($sourceProduct, $subEntity, $attributes);
if ($subEntity instanceof ProductModelInterface) {
......
......@@ -35,8 +35,6 @@ class CopyProductsRuleProcessor
FamilyInterface $destinationFamily,
ProductInterface $sourceProduct
): void {
$stepExecution->incrementSummaryInfo('processed', 1);
$associations = $sourceProduct->getAssociations();
foreach ($associations as $association) {
$models = $association->getProductModels();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment