Skip to content

Commit 61b8d6b

Browse files
committed
MC-32278: Position sort does not work in GraphQl.
- fix static
1 parent e975681 commit 61b8d6b

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

app/code/Magento/CatalogGraphQl/Model/Resolver/Products/DataProvider/ProductSearch/ProductCollectionSearchCriteriaBuilder.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,15 @@
1414
use Magento\Framework\Api\Search\SearchCriteriaInterfaceFactory;
1515
use Magento\Framework\Api\SearchCriteriaInterface;
1616

17+
/**
18+
* Builds a search criteria intended for the product collection based on search criteria used on SearchAPI
19+
*/
1720
class ProductCollectionSearchCriteriaBuilder
1821
{
19-
/**
20-
* @var SearchCriteriaInterfaceFactory
21-
*/
22+
/** @var CollectionFactory */
23+
private $collectionFactory;
24+
25+
/** @var SearchCriteriaInterfaceFactory */
2226
private $searchCriteriaFactory;
2327

2428
/** @var FilterBuilder */

dev/tests/api-functional/testsuite/Magento/GraphQl/Catalog/ProductSearchTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,6 +1121,7 @@ public function testFilterWithinSpecificPriceRangeSortedByNameDesc()
11211121

11221122
/**
11231123
* @magentoApiDataFixture Magento/Catalog/_files/category_with_three_products.php
1124+
* @SuppressWarnings(PHPMD.UnusedLocalVariable)
11241125
*/
11251126
public function testSortByPosition()
11261127
{

0 commit comments

Comments
 (0)