Skip to content

Commit 0d8cd6e

Browse files
committed
ACP2E-2910: Order Rest API call is taking a long time to execute
1 parent 7ecfbb8 commit 0d8cd6e

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

app/code/Magento/GiftMessage/Model/Plugin/OrderGet.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ protected function getOrderItemGiftMessage(\Magento\Sales\Api\Data\OrderInterfac
113113
}
114114

115115
/**
116+
* Add gift message details to orders
117+
*
116118
* @param \Magento\Sales\Api\OrderRepositoryInterface $subject
117119
* @param \Magento\Sales\Model\ResourceModel\Order\Collection $resultOrder
118120
* @return \Magento\Sales\Model\ResourceModel\Order\Collection

app/code/Magento/GiftMessage/Test/Unit/Model/Plugin/OrderGetTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,6 @@ public function testAfterGetGiftMessageOnItemLevel(): void
191191
*/
192192
public function testGetAfterWhenMessagesAreNotSet(): void
193193
{
194-
$orderId = 1;
195-
$orderItemId = 2;
196194
//set Gift Message for Order
197195
$this->orderMock->expects($this->never())->method('getEntityId');
198196
$this->orderItemMock->expects($this->never())->method('getItemId');

app/code/Magento/Sales/Model/ResourceModel/Order/Address/Collection.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,11 @@
1616
class Collection extends AbstractCollection implements OrderAddressSearchResultInterface
1717
{
1818
/**
19-
* Event prefix
20-
*
2119
* @var string
2220
*/
2321
protected $_eventPrefix = 'sales_order_address_collection';
2422

2523
/**
26-
* Event object
27-
*
2824
* @var string
2925
*/
3026
protected $_eventObject = 'order_address_collection';

app/code/Magento/Tax/Model/Sales/Order/TaxManagement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ protected function aggregateAppliedTaxes(TaxDetailsDataObjectFactory $appliedTax
120120
}
121121

122122
/**
123-
* {@inheritdoc}
123+
* @inheritdoc
124124
*/
125125
public function getOrderTaxDetails($orderId)
126126
{

0 commit comments

Comments
 (0)