Skip to content

Commit a7f9491

Browse files
author
Mohan Ahuja
committed
ACP2E-726: Unable to query bulk operations by search criteria using REST Api
- Fixing static failures
1 parent 1a0ea4d commit a7f9491

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

app/code/Magento/AsynchronousOperations/Model/OperationRepository.php

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,32 +25,32 @@ class OperationRepository implements \Magento\AsynchronousOperations\Api\Operati
2525
/**
2626
* @var EntityManager
2727
*/
28-
private $entityManager;
28+
private EntityManager $entityManager;
2929

3030
/**
3131
* @var CollectionFactory
3232
*/
33-
private $collectionFactory;
33+
private CollectionFactory $collectionFactory;
3434

3535
/**
3636
* @var SearchResultFactory
3737
*/
38-
private $searchResultFactory;
38+
private SearchResultFactory $searchResultFactory;
3939

4040
/**
4141
* @var JoinProcessorInterface
4242
*/
43-
private $joinProcessor;
43+
private JoinProcessorInterface $joinProcessor;
4444

4545
/**
4646
* @var \Magento\AsynchronousOperations\Api\Data\OperationExtensionInterfaceFactory
4747
*/
48-
private $operationExtensionFactory;
48+
private OperationExtensionInterfaceFactory $operationExtensionFactory;
4949

5050
/**
5151
* @var CollectionProcessorInterface
5252
*/
53-
private $collectionProcessor;
53+
private CollectionProcessorInterface $collectionProcessor;
5454

5555
/**
5656
* @var \Psr\Log\LoggerInterface
@@ -99,7 +99,11 @@ public function getList(\Magento\Framework\Api\SearchCriteriaInterface $searchCr
9999
$collection = $this->collectionFactory->create();
100100
$collection->addFieldToSelect('id', 'operation_key');
101101
$collection->addFieldToSelect('operation_key', 'id');
102-
$collection->addFieldToSelect(['bulk_uuid', 'topic_name', 'serialized_data', 'result_serialized_data', 'status', 'error_code', 'result_message', 'started_at']);
102+
$collection->addFieldToSelect([
103+
'bulk_uuid', 'topic_name', 'serialized_data',
104+
'result_serialized_data', 'status', 'error_code',
105+
'result_message', 'started_at'
106+
]);
103107
$this->joinProcessor->process($collection, \Magento\AsynchronousOperations\Api\Data\OperationInterface::class);
104108
$this->collectionProcessor->process($searchCriteria, $collection);
105109
$searchResult->setSearchCriteria($searchCriteria);

0 commit comments

Comments
 (0)