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
24
24
* @param int|null $rootCategoryId
25
25
* @param int|null $depth
26
26
* @return array
27
+ * @SuppressWarnings(PHPMD.UnusedFormalParameter)
27
28
*/
28
29
public function beforeGetTree (
29
30
CategoryManagementInterface $ subject ,
Original file line number Diff line number Diff line change 286
286
<column name =" path" />
287
287
</index >
288
288
<!-- 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" >
290
290
<column name =" parent_id" />
291
291
<column name =" level" />
292
292
<column name =" position" />
408
408
<column name =" store_id" />
409
409
</index >
410
410
<!-- 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" >
412
412
<column name =" store_id" />
413
413
<column name =" value" />
414
414
</index >
518
518
<column name =" product_id" />
519
519
</index >
520
520
<!-- 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" >
522
522
<column name =" category_id" />
523
523
<column name =" product_id" />
524
524
<column name =" position" />
Original file line number Diff line number Diff line change 158
158
"index" : {
159
159
"CATALOG_CATEGORY_ENTITY_LEVEL" : true ,
160
160
"CATALOG_CATEGORY_ENTITY_PATH" : true ,
161
- "CATALOG_CATEGORY_ENTITY_PARENT_LEVEL_POSITION " : true
161
+ "CATALOG_CATEGORY_ENTITY_PARENT_ID_LEVEL_POSITION " : true
162
162
},
163
163
"constraint" : {
164
164
"PRIMARY" : true
218
218
"CATALOG_CATEGORY_ENTITY_INT_ENTITY_ID" : true ,
219
219
"CATALOG_CATEGORY_ENTITY_INT_ATTRIBUTE_ID" : true ,
220
220
"CATALOG_CATEGORY_ENTITY_INT_STORE_ID" : true ,
221
- "CATALOG_CATEGORY_ENTITY_INT_STORE_ACTIVE " : true
221
+ "CATALOG_CATEGORY_ENTITY_INT_STORE_ID_VALUE " : true
222
222
},
223
223
"constraint" : {
224
224
"PRIMARY" : true ,
279
279
},
280
280
"index" : {
281
281
"CATALOG_CATEGORY_PRODUCT_PRODUCT_ID" : true ,
282
- "CATALOG_CATEGORY_PRODUCT_CATEGORY_PRODUCT_COVERING " : true
282
+ "CATALOG_CATEGORY_PRODUCT_CATEGORY_ID_PRODUCT_ID_POSITION " : true
283
283
},
284
284
"constraint" : {
285
285
"PRIMARY" : true ,
Original file line number Diff line number Diff line change 1
1
<?php
2
2
/**
3
3
*
4
- * Copyright © Magento, Inc. All rights reserved.
5
- * See COPYING.txt for license details .
4
+ * Copyright 2015 Adobe
5
+ * All rights reserved .
6
6
*/
7
7
8
8
namespace Magento \Catalog \Api ;
@@ -96,7 +96,7 @@ public static function treeDataProvider(): array
96
96
],
97
97
[
98
98
2 ,
99
- null ,
99
+ 3 ,
100
100
[
101
101
'id ' => 2 ,
102
102
'name ' => 'Default Category ' ,
@@ -125,7 +125,7 @@ public static function treeDataProvider(): array
125
125
],
126
126
[
127
127
400 ,
128
- 1 ,
128
+ null , // Default depth is 1
129
129
[
130
130
'id ' => 400 ,
131
131
'name ' => 'Category 1 ' ,
You can’t perform that action at this time.
0 commit comments