Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/7.2.0 #817

Merged
merged 9 commits into from
Jan 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 0 additions & 33 deletions Model/Indexer/ProductIndexer.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
use Nosto\Tagging\Model\ResourceModel\Magento\Product\CollectionBuilder;
use Nosto\Tagging\Model\Service\Indexer\IndexerStatusServiceInterface;
use Nosto\Tagging\Model\Service\Update\ProductUpdateService;
use Nosto\Tagging\Util\PagingIterator;
use Symfony\Component\Console\Input\InputInterface;

/**
Expand Down Expand Up @@ -129,38 +128,6 @@ public function doIndex(Store $store, array $ids = [])
$collection,
$store
);
$this->handleDeletedProducts($collection, $store, $ids);
}

/**
* @param ProductCollection $existingCollection
* @param Store $store
* @param array $givenIds
* @throws NostoException
*/
private function handleDeletedProducts(ProductCollection $existingCollection, Store $store, array $givenIds)
{
if (!empty($givenIds)) {
$existingCollection->setPageSize(1000);
$iterator = new PagingIterator($existingCollection);
$present = [];
foreach ($iterator as $page) {
foreach ($page->getItems() as $item) {
/** @noinspection PhpPossiblePolymorphicInvocationInspection */
$id = $item->getId();
$present[$id] = $id;
}
}
$removed = [];
foreach ($givenIds as $productId) {
if (!isset($present[$productId])) {
$removed[] = $productId;
}
}
if (count($removed) > 0) {
$this->productUpdateService->addIdsToDeleteMessageQueue($removed, $store);
}
}
}

/**
Expand Down
93 changes: 0 additions & 93 deletions Model/Service/Sync/Delete/AsyncBulkConsumer.php

This file was deleted.

77 changes: 0 additions & 77 deletions Model/Service/Sync/Delete/AsyncBulkPublisher.php

This file was deleted.

134 changes: 0 additions & 134 deletions Model/Service/Sync/Delete/DeleteService.php

This file was deleted.

Loading