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 1515 */
1616class CategoryManagementPerformanceOptimizer
1717{
18- private const DEFAULT_MAX_DEPTH = 1 ; // Limit depth to prevent timeouts
18+ private const DEFAULT_MAX_DEPTH = 3 ; // Limit depth to prevent timeouts
1919
2020 /**
2121 * Optimize getTree method with depth limits to prevent timeouts
Original file line number Diff line number Diff line change 11<?php
22/**
33 *
4- * Copyright 2015 Adobe
5- * All rights reserved .
4+ * Copyright © Magento, Inc. All rights reserved.
5+ * See COPYING.txt for license details .
66 */
77
88namespace Magento \Catalog \Api ;
1616 */
1717class CategoryManagementTest extends WebapiAbstract
1818{
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 ' ;
2122
2223 /**
2324 * @var CompareArraysRecursively
@@ -95,7 +96,7 @@ public static function treeDataProvider(): array
9596 ],
9697 [
9798 2 ,
98- 3 ,
99+ null ,
99100 [
100101 'id ' => 2 ,
101102 'name ' => 'Default Category ' ,
@@ -124,7 +125,7 @@ public static function treeDataProvider(): array
124125 ],
125126 [
126127 400 ,
127- null , // Default depth is 1
128+ 1 ,
128129 [
129130 'id ' => 400 ,
130131 'name ' => 'Category 1 ' ,
You can’t perform that action at this time.
0 commit comments