From 8537de3479b2663b7e6c15121c6b56b67a03dcbf Mon Sep 17 00:00:00 2001 From: Cid Lopes Date: Mon, 30 Sep 2024 14:27:03 +0300 Subject: [PATCH 1/4] Update Model/Category/Repository.php --- Model/Category/Repository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Model/Category/Repository.php b/Model/Category/Repository.php index 607fee226..e44768a25 100644 --- a/Model/Category/Repository.php +++ b/Model/Category/Repository.php @@ -99,7 +99,7 @@ public function getCategoryCollectionQuery(Store $store, array $categoryIds = [] ->addNameToResult() ->setStoreId($store->getId()) ->addUrlRewriteToResult() - ->addAttributeToFilter('level', ['gt' => 1]) // @TODO: Check if zero level categories are needed + ->addAttributeToFilter('level', ['gt' => 1]) ->addAttributeToSelect(array_merge(['name', 'is_active', 'include_in_menu'])) ->addOrderField('entity_id'); From 22444cf87034122dcd9bd9115ccb61fbbe3954d7 Mon Sep 17 00:00:00 2001 From: Cid Lopes Date: Mon, 30 Sep 2024 14:27:08 +0300 Subject: [PATCH 2/4] Update Model/Category/Repository.php --- Model/Category/Repository.php | 1 - 1 file changed, 1 deletion(-) diff --git a/Model/Category/Repository.php b/Model/Category/Repository.php index e44768a25..156a292c0 100644 --- a/Model/Category/Repository.php +++ b/Model/Category/Repository.php @@ -37,7 +37,6 @@ namespace Nosto\Tagging\Model\Category; use Magento\Catalog\Api\Data\CategoryInterface; -use Magento\Catalog\Model\Category; use Magento\Catalog\Model\CategoryRepository; use Magento\Catalog\Model\ResourceModel\Category\Collection as CategoryCollection; use Magento\Framework\Api\SearchCriteriaBuilder; From dac61dc9b794ae3e87e483e9035f8ccf3a650ffc Mon Sep 17 00:00:00 2001 From: Cid Lopes Date: Mon, 30 Sep 2024 14:27:13 +0300 Subject: [PATCH 3/4] Update Model/Indexer/Dimensions/ModeSwitcher/ModeSwitcherConfiguration.php --- .../Dimensions/ModeSwitcher/ModeSwitcherConfiguration.php | 1 - 1 file changed, 1 deletion(-) diff --git a/Model/Indexer/Dimensions/ModeSwitcher/ModeSwitcherConfiguration.php b/Model/Indexer/Dimensions/ModeSwitcher/ModeSwitcherConfiguration.php index 2a00e3410..0f1cecee1 100644 --- a/Model/Indexer/Dimensions/ModeSwitcher/ModeSwitcherConfiguration.php +++ b/Model/Indexer/Dimensions/ModeSwitcher/ModeSwitcherConfiguration.php @@ -40,7 +40,6 @@ use Magento\Framework\App\Cache\TypeListInterface; use Magento\Framework\App\Config\ConfigResource\ConfigInterface; -//@TODO: needs to be abstracted to include categories as well class ModeSwitcherConfiguration { public const XML_PATH_PRODUCT_INDEX_DIMENSIONS_MODE = 'indexer/nosto_index_product/dimensions_mode'; From 7d9b919725eaed053720a6c1da53f7ce1f037658 Mon Sep 17 00:00:00 2001 From: Cid Lopes Date: Mon, 30 Sep 2024 14:27:21 +0300 Subject: [PATCH 4/4] Update Model/Service/Update/CategoryUpdateService.php --- Model/Service/Update/CategoryUpdateService.php | 1 - 1 file changed, 1 deletion(-) diff --git a/Model/Service/Update/CategoryUpdateService.php b/Model/Service/Update/CategoryUpdateService.php index d805efa2d..8691dd594 100644 --- a/Model/Service/Update/CategoryUpdateService.php +++ b/Model/Service/Update/CategoryUpdateService.php @@ -38,7 +38,6 @@ use Exception; use Magento\Catalog\Api\Data\CategoryInterface; -use Magento\Catalog\Model\Category; use Magento\Store\Model\Store; use Nosto\NostoException; use Nosto\Tagging\Exception\ParentCategoryDisabledException;