File tree Expand file tree Collapse file tree 4 files changed +11
-10
lines changed
dev/tests/api-functional/testsuite/Magento/Catalog/Api Expand file tree Collapse file tree 4 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ class CategoryManagementPerformanceOptimizer
2424 * @param int|null $rootCategoryId
2525 * @param int|null $depth
2626 * @return array
27+ * @SuppressWarnings(PHPMD.UnusedFormalParameter)
2728 */
2829 public function beforeGetTree (
2930 CategoryManagementInterface $ subject ,
Original file line number Diff line number Diff line change 286286 <column name =" path" />
287287 </index >
288288 <!-- Performance optimization index for efficient tree traversal -->
289- <index referenceId =" CATALOG_CATEGORY_ENTITY_PARENT_LEVEL_POSITION " indexType =" btree" >
289+ <index referenceId =" CATALOG_CATEGORY_ENTITY_PARENT_ID_LEVEL_POSITION " indexType =" btree" >
290290 <column name =" parent_id" />
291291 <column name =" level" />
292292 <column name =" position" />
408408 <column name =" store_id" />
409409 </index >
410410 <!-- Performance optimization index for is_active attribute filtering -->
411- <index referenceId =" CATALOG_CATEGORY_ENTITY_INT_STORE_ACTIVE " indexType =" btree" >
411+ <index referenceId =" CATALOG_CATEGORY_ENTITY_INT_STORE_ID_VALUE " indexType =" btree" >
412412 <column name =" store_id" />
413413 <column name =" value" />
414414 </index >
518518 <column name =" product_id" />
519519 </index >
520520 <!-- Performance optimization index for product count queries -->
521- <index referenceId =" CATALOG_CATEGORY_PRODUCT_CATEGORY_PRODUCT_COVERING " indexType =" btree" >
521+ <index referenceId =" CATALOG_CATEGORY_PRODUCT_CATEGORY_ID_PRODUCT_ID_POSITION " indexType =" btree" >
522522 <column name =" category_id" />
523523 <column name =" product_id" />
524524 <column name =" position" />
Original file line number Diff line number Diff line change 158158 "index" : {
159159 "CATALOG_CATEGORY_ENTITY_LEVEL" : true ,
160160 "CATALOG_CATEGORY_ENTITY_PATH" : true ,
161- "CATALOG_CATEGORY_ENTITY_PARENT_LEVEL_POSITION " : true
161+ "CATALOG_CATEGORY_ENTITY_PARENT_ID_LEVEL_POSITION " : true
162162 },
163163 "constraint" : {
164164 "PRIMARY" : true
218218 "CATALOG_CATEGORY_ENTITY_INT_ENTITY_ID" : true ,
219219 "CATALOG_CATEGORY_ENTITY_INT_ATTRIBUTE_ID" : true ,
220220 "CATALOG_CATEGORY_ENTITY_INT_STORE_ID" : true ,
221- "CATALOG_CATEGORY_ENTITY_INT_STORE_ACTIVE " : true
221+ "CATALOG_CATEGORY_ENTITY_INT_STORE_ID_VALUE " : true
222222 },
223223 "constraint" : {
224224 "PRIMARY" : true ,
279279 },
280280 "index" : {
281281 "CATALOG_CATEGORY_PRODUCT_PRODUCT_ID" : true ,
282- "CATALOG_CATEGORY_PRODUCT_CATEGORY_PRODUCT_COVERING " : true
282+ "CATALOG_CATEGORY_PRODUCT_CATEGORY_ID_PRODUCT_ID_POSITION " : true
283283 },
284284 "constraint" : {
285285 "PRIMARY" : true ,
Original file line number Diff line number Diff line change 11<?php
22/**
33 *
4- * Copyright © Magento, Inc. All rights reserved.
5- * See COPYING.txt for license details .
4+ * Copyright 2015 Adobe
5+ * All rights reserved .
66 */
77
88namespace Magento \Catalog \Api ;
@@ -96,7 +96,7 @@ public static function treeDataProvider(): array
9696 ],
9797 [
9898 2 ,
99- null ,
99+ 3 ,
100100 [
101101 'id ' => 2 ,
102102 'name ' => 'Default Category ' ,
@@ -125,7 +125,7 @@ public static function treeDataProvider(): array
125125 ],
126126 [
127127 400 ,
128- 1 ,
128+ null , // Default depth is 1
129129 [
130130 'id ' => 400 ,
131131 'name ' => 'Category 1 ' ,
You can’t perform that action at this time.
0 commit comments