File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
app/code/Magento/Catalog/Plugin
dev/tests/api-functional/testsuite/Magento/Catalog/Api Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 15
15
*/
16
16
class CategoryManagementPerformanceOptimizer
17
17
{
18
- private const DEFAULT_MAX_DEPTH = 1 ; // Limit depth to prevent timeouts
18
+ private const DEFAULT_MAX_DEPTH = 3 ; // Limit depth to prevent timeouts
19
19
20
20
/**
21
21
* Optimize getTree method with depth limits to prevent timeouts
Original file line number Diff line number Diff line change 1
1
<?php
2
2
/**
3
3
*
4
- * Copyright 2015 Adobe
5
- * All rights reserved .
4
+ * Copyright © Magento, Inc. All rights reserved.
5
+ * See COPYING.txt for license details .
6
6
*/
7
7
8
8
namespace Magento \Catalog \Api ;
16
16
*/
17
17
class CategoryManagementTest extends WebapiAbstract
18
18
{
19
- private const RESOURCE_PATH = '/V1/categories ' ;
20
- private const SERVICE_NAME = 'catalogCategoryManagementV1 ' ;
19
+ const RESOURCE_PATH = '/V1/categories ' ;
20
+
21
+ const SERVICE_NAME = 'catalogCategoryManagementV1 ' ;
21
22
22
23
/**
23
24
* @var CompareArraysRecursively
@@ -95,7 +96,7 @@ public static function treeDataProvider(): array
95
96
],
96
97
[
97
98
2 ,
98
- 3 ,
99
+ null ,
99
100
[
100
101
'id ' => 2 ,
101
102
'name ' => 'Default Category ' ,
@@ -124,7 +125,7 @@ public static function treeDataProvider(): array
124
125
],
125
126
[
126
127
400 ,
127
- null , // Default depth is 1
128
+ 1 ,
128
129
[
129
130
'id ' => 400 ,
130
131
'name ' => 'Category 1 ' ,
You can’t perform that action at this time.
0 commit comments