Skip to content

Commit 371f959

Browse files
committed
magento-engcom/bulk-api#4 Support for Async operations in WebAPI
- Removed outdated test - Returned correct preference
1 parent 5669605 commit 371f959

File tree

3 files changed

+5
-49
lines changed

3 files changed

+5
-49
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@ class BulkStatus implements BulkStatusInterface
5757
private $entityManager;
5858

5959
/**
60-
* @var \Magento\AsynchronousOperations\Api\Data\DetailedBulkStatusInterfaceFactory
60+
* @var BulkStatusDetailedFactory
6161
*/
6262
private $bulkDetailedFactory;
6363

6464
/**
65-
* @var \Magento\AsynchronousOperations\Api\Data\BulkStatus\ShortInterfaceFactory
65+
* @var BulkStatusShortFactory
6666
*/
6767
private $bulkShortFactory;
6868

@@ -74,8 +74,8 @@ class BulkStatus implements BulkStatusInterface
7474
* @param \Magento\Framework\App\ResourceConnection $resourceConnection
7575
* @param \Magento\AsynchronousOperations\Model\BulkStatus\CalculatedStatusSql $calculatedStatusSql
7676
* @param \Magento\Framework\EntityManager\MetadataPool $metadataPool
77-
* @param \Magento\AsynchronousOperations\Api\Data\DetailedBulkStatusInterfaceFactory $bulkDetailedFactory
78-
* @param \Magento\AsynchronousOperations\Api\Data\BulkStatusInterfaceFactory $bulkShortFactory
77+
* @param BulkStatusDetailedFactory $bulkDetailedFactory
78+
* @param BulkStatusShortFactory $bulkShortFactory
7979
* @param \Magento\Framework\EntityManager\EntityManager $entityManager
8080
*/
8181
public function __construct(

app/code/Magento/AsynchronousOperations/etc/di.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<preference for="Magento\AsynchronousOperations\Api\Data\OperationListInterface" type="Magento\AsynchronousOperations\Model\OperationList" />
1212
<preference for="Magento\Framework\Bulk\BulkManagementInterface" type="Magento\AsynchronousOperations\Model\BulkManagement" />
1313
<preference for="Magento\AsynchronousOperations\Api\BulkStatusInterface" type="Magento\AsynchronousOperations\Model\BulkStatus" />
14+
<preference for="Magento\Framework\Bulk\BulkStatusInterface" type="Magento\AsynchronousOperations\Model\BulkStatus" />
1415
<preference for="Magento\Framework\Bulk\OperationManagementInterface" type="Magento\AsynchronousOperations\Model\OperationManagement" />
1516
<preference for="Magento\AsynchronousOperations\Api\Data\OperationStatusInterface" type="Magento\AsynchronousOperations\Model\OperationStatus" />
1617
<preference for="Magento\AsynchronousOperations\Api\Data\DetailedBulkStatusInterface" type="Magento\AsynchronousOperations\Model\BulkStatus\Detailed" />

dev/tests/integration/testsuite/Magento/SwaggerWebapiAsync/Block/Swagger/SchemaTypesTest.php

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)