Skip to content

Commit 3a236b3

Browse files
author
Joan He
authored
Merge pull request #3138 from magento-borg/BugFixPR
[2.3.0-Regression] Bug Fixes
2 parents 89d8f80 + 9bf3d15 commit 3a236b3

File tree

136 files changed

+823
-185
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

136 files changed

+823
-185
lines changed

app/code/Magento/Braintree/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
},
77
"require": {
88
"php": "~7.1.3||~7.2.0",
9-
"braintree/braintree_php": "3.34.0",
9+
"braintree/braintree_php": "3.35.0",
1010
"magento/framework": "*",
1111
"magento/magento-composer-installer": "*",
1212
"magento/module-catalog": "*",

app/code/Magento/Catalog/Test/Mftf/Section/AdminProductFormSection.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
<element name="setProductAsNewFrom" type="input" selector="input[name='product[news_from_date]']"/>
4848
<element name="setProductAsNewTo" type="input" selector="input[name='product[news_to_date]']"/>
4949
<element name="attributeLabelByText" type="text" selector="//*[@class='admin__field']//span[text()='{{attributeLabel}}']" parameterized="true"/>
50+
<element name="customSelectField" type="select" selector="//select[@name='product[{{var}}]']" parameterized="true"/>
5051
</section>
5152
<section name="ProductInWebsitesSection">
5253
<element name="sectionHeader" type="button" selector="div[data-index='websites']" timeout="30"/>

app/code/Magento/Catalog/Test/Mftf/Section/StorefrontCategorySidebarSection.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,7 @@
1313
<element name="filterOption" type="text" selector=".filter-options-content .item"/>
1414
<element name="optionQty" type="text" selector=".filter-options-content .item .count"/>
1515
</section>
16+
<section name="StorefrontCategorySidebarMobileSection">
17+
<element name="shopByButton" type="button" selector="//div[contains(@class, 'filter-title')]/strong[contains(text(), 'Shop By')]"/>
18+
</section>
1619
</sections>

app/code/Magento/CatalogGraphQl/Model/Resolver/Categories.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function resolve(Field $field, $context, ResolveInfo $info, array $value
9797
}
9898

9999
if (!$this->collection->isLoaded()) {
100-
$that->attributesJoiner->join($info->fieldASTs[0], $this->collection);
100+
$that->attributesJoiner->join($info->fieldNodes[0], $this->collection);
101101
$this->collection->addIdFilter($this->categoryIds);
102102
}
103103
/** @var CategoryInterface | \Magento\Catalog\Model\Category $item */

app/code/Magento/CatalogGraphQl/Model/Resolver/Products/DataProvider/CategoryTree.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function __construct(
8989
*/
9090
public function getTree(ResolveInfo $resolveInfo, int $rootCategoryId) : array
9191
{
92-
$categoryQuery = $resolveInfo->fieldASTs[0];
92+
$categoryQuery = $resolveInfo->fieldNodes[0];
9393
$collection = $this->collectionFactory->create();
9494
$this->joinAttributesRecursively($collection, $categoryQuery);
9595
$depth = $this->depthCalculator->calculate($categoryQuery);

app/code/Magento/CatalogSearch/Block/Advanced/Form.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
/**
2424
* @api
2525
* @since 100.0.2
26+
* @deprecated CatalogSearch will be removed in 2.4, and {@see \Magento\ElasticSearch}
27+
* will replace it as the default search engine.
2628
*/
2729
class Form extends Template
2830
{

app/code/Magento/CatalogSearch/Block/Advanced/Result.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
*
1919
* @api
2020
* @since 100.0.2
21+
* @deprecated CatalogSearch will be removed in 2.4, and {@see \Magento\ElasticSearch}
22+
* will replace it as the default search engine.
2123
*/
2224
class Result extends Template
2325
{

app/code/Magento/CatalogSearch/Block/Plugin/FrontTabPlugin.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
/**
1414
* Plugin for Magento\Catalog\Block\Adminhtml\Product\Attribute\Edit\Tab\Front
15+
* @deprecated CatalogSearch will be removed in 2.4, and {@see \Magento\ElasticSearch}
16+
* will replace it as the default search engine.
1517
*/
1618
class FrontTabPlugin
1719
{

app/code/Magento/CatalogSearch/Block/Result.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
*
1919
* @api
2020
* @since 100.0.2
21+
* @deprecated CatalogSearch will be removed in 2.4, and {@see \Magento\ElasticSearch}
22+
* will replace it as the default search engine.
2123
*/
2224
class Result extends Template
2325
{

app/code/Magento/CatalogSearch/Block/SearchTermsLog.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
/**
1212
* Class for logging search terms on cached pages
13+
* @deprecated CatalogSearch will be removed in 2.4, and {@see \Magento\ElasticSearch}
14+
* will replace it as the default search engine.
1315
*/
1416
class SearchTermsLog implements ArgumentInterface
1517
{

app/code/Magento/CatalogSearch/Controller/Advanced/Index.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88

99
use Magento\Framework\Controller\ResultFactory;
1010

11+
/**
12+
* @deprecated CatalogSearch will be removed in 2.4, and {@see \Magento\ElasticSearch}
13+
* will replace it as the default search engine.
14+
*/
1115
class Index extends \Magento\Framework\App\Action\Action
1216
{
1317
/**

app/code/Magento/CatalogSearch/Controller/Advanced/Result.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
use Magento\Framework\App\Action\Context;
1111
use Magento\Framework\UrlFactory;
1212

13+
/**
14+
* @deprecated CatalogSearch will be removed in 2.4, and {@see \Magento\ElasticSearch}
15+
* will replace it as the default search engine.
16+
*/
1317
class Result extends \Magento\Framework\App\Action\Action
1418
{
1519
/**

app/code/Magento/CatalogSearch/Controller/Result/Index.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
use Magento\Search\Model\QueryFactory;
1414
use Magento\Search\Model\PopularSearchTerms;
1515

16+
/**
17+
* @deprecated CatalogSearch will be removed in 2.4, and {@see \Magento\ElasticSearch}
18+
* will replace it as the default search engine.
19+
*/
1620
class Index extends \Magento\Framework\App\Action\Action
1721
{
1822
/**

app/code/Magento/CatalogSearch/Controller/SearchTermsLog/Save.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
/**
1717
* Controller for save search terms
18+
* @deprecated CatalogSearch will be removed in 2.4, and {@see \Magento\ElasticSearch}
19+
* will replace it as the default search engine.
1820
*/
1921
class Save extends \Magento\Framework\App\Action\Action
2022
{

app/code/Magento/CatalogSearch/Helper/Data.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
*
1111
* @api
1212
* @since 100.0.2
13+
* @deprecated CatalogSearch will be removed in 2.4, and {@see \Magento\ElasticSearch}
14+
* will replace it as the default search engine.
1315
*/
1416
class Data extends \Magento\Search\Helper\Data
1517
{

app/code/Magento/CatalogSearch/Model/Adapter/Aggregation/AggregationResolver.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
use Magento\Framework\Search\RequestInterface;
1515
use Magento\Catalog\Model\ResourceModel\Product\Attribute\Collection as AttributeCollection;
1616

17+
/**
18+
* @deprecated CatalogSearch will be removed in 2.4, and {@see \Magento\ElasticSearch}
19+
* will replace it as the default search engine.
20+
*/
1721
class AggregationResolver implements AggregationResolverInterface
1822
{
1923
/**

app/code/Magento/CatalogSearch/Model/Adapter/Aggregation/Checker/Query/AdvancedSearch.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
* Request checker for advanced search.
1313
*
1414
* Checks advanced search query whether required to collect all attributes for entity.
15+
* @deprecated CatalogSearch will be removed in 2.4, and {@see \Magento\ElasticSearch}
16+
* will replace it as the default search engine.
1517
*/
1618
class AdvancedSearch implements RequestCheckerInterface
1719
{

app/code/Magento/CatalogSearch/Model/Adapter/Aggregation/Checker/Query/CatalogView.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
* Request checker for catalog view.
1818
*
1919
* Checks catalog view query whether required to collect all attributes for entity.
20+
* @deprecated CatalogSearch will be removed in 2.4, and {@see \Magento\ElasticSearch}
21+
* will replace it as the default search engine.
2022
*/
2123
class CatalogView implements RequestCheckerInterface
2224
{

app/code/Magento/CatalogSearch/Model/Adapter/Aggregation/RequestCheckerComposite.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
use Magento\Catalog\Api\CategoryRepositoryInterface;
1010
use Magento\Store\Model\StoreManagerInterface;
1111

12+
/**
13+
* @deprecated CatalogSearch will be removed in 2.4, and {@see \Magento\ElasticSearch}
14+
* will replace it as the default search engine.
15+
*/
1216
class RequestCheckerComposite implements RequestCheckerInterface
1317
{
1418
/**

app/code/Magento/CatalogSearch/Model/Adapter/Aggregation/RequestCheckerInterface.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99

1010
/**
1111
* RequestCheckerInterface provides the interface to work with query checkers.
12+
*
13+
* @deprecated CatalogSearch will be removed in 2.4, and {@see \Magento\ElasticSearch}
14+
* will replace it as the default search engine.
1215
*/
1316
interface RequestCheckerInterface
1417
{

app/code/Magento/CatalogSearch/Model/Adapter/Mysql/Aggregation/DataProvider.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
use Magento\Framework\Search\Adapter\Mysql\Aggregation\DataProviderInterface;
1818
use Magento\Framework\Search\Request\BucketInterface;
1919

20+
/**
21+
* @deprecated CatalogSearch will be removed in 2.4, and {@see \Magento\ElasticSearch}
22+
* will replace it as the default search engine.
23+
*/
2024
class DataProvider implements DataProviderInterface
2125
{
2226
/**

app/code/Magento/CatalogSearch/Model/Adapter/Mysql/Aggregation/DataProvider/QueryBuilder.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
/**
2323
* Attribute query builder
2424
*
25+
* @deprecated CatalogSearch will be removed in 2.4, and {@see \Magento\ElasticSearch}
26+
* will replace it as the default search engine.
27+
*
2528
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
2629
*/
2730
class QueryBuilder

app/code/Magento/CatalogSearch/Model/Adapter/Mysql/Aggregation/DataProvider/SelectBuilderForAttribute.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121

2222
/**
2323
* Build select for attribute.
24+
*
25+
* @deprecated CatalogSearch will be removed in 2.4, and {@see \Magento\ElasticSearch}
26+
* will replace it as the default search engine.
2427
*/
2528
class SelectBuilderForAttribute
2629
{

app/code/Magento/CatalogSearch/Model/Adapter/Mysql/Aggregation/DataProvider/SelectBuilderForAttribute/ApplyStockConditionToSelect.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313

1414
/**
1515
* Join stock table with stock condition to select.
16+
*
17+
* @deprecated CatalogSearch will be removed in 2.4, and {@see \Magento\ElasticSearch}
18+
* will replace it as the default search engine.
1619
*/
1720
class ApplyStockConditionToSelect
1821
{

app/code/Magento/CatalogSearch/Model/Adapter/Mysql/BaseSelectStrategy/BaseSelectAttributesSearchStrategy.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
*
1919
* The main idea of this strategy is using eav index table as main table for query
2020
* in case when search request requires search by attributes
21+
*
22+
* @deprecated CatalogSearch will be removed in 2.4, and {@see \Magento\ElasticSearch}
23+
* will replace it as the default search engine.
2124
*/
2225
class BaseSelectAttributesSearchStrategy implements BaseSelectStrategyInterface
2326
{

app/code/Magento/CatalogSearch/Model/Adapter/Mysql/BaseSelectStrategy/BaseSelectFullTextSearchStrategy.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
*
1818
* The main idea of this strategy is using fulltext search index table as main table for query
1919
* in case when search request does not requires any search by attributes
20+
*
21+
* @deprecated CatalogSearch will be removed in 2.4, and {@see \Magento\ElasticSearch}
22+
* will replace it as the default search engine.
2023
*/
2124
class BaseSelectFullTextSearchStrategy implements BaseSelectStrategyInterface
2225
{

app/code/Magento/CatalogSearch/Model/Adapter/Mysql/Dynamic/DataProvider.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424

2525
/**
2626
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
27+
* @deprecated CatalogSearch will be removed in 2.4, and {@see \Magento\ElasticSearch}
28+
* will replace it as the default search engine.
2729
*/
2830
class DataProvider implements DataProviderInterface
2931
{

app/code/Magento/CatalogSearch/Model/Adapter/Mysql/Field/Resolver.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
use Magento\Framework\Search\Adapter\Mysql\Field\FieldInterface;
1111
use Magento\Framework\Search\Adapter\Mysql\Field\ResolverInterface;
1212

13+
/**
14+
* @deprecated CatalogSearch will be removed in 2.4, and {@see \Magento\ElasticSearch}
15+
* will replace it as the default search engine.
16+
*/
1317
class Resolver implements ResolverInterface
1418
{
1519
/**

app/code/Magento/CatalogSearch/Model/Adapter/Mysql/Filter/AliasResolver.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
* Purpose of class is to resolve table alias for Search Request filter
1313
* @api
1414
* @since 100.1.6
15+
* @deprecated CatalogSearch will be removed in 2.4, and {@see \Magento\ElasticSearch}
16+
* will replace it as the default search engine.
1517
*/
1618
class AliasResolver
1719
{

app/code/Magento/CatalogSearch/Model/Adapter/Mysql/Filter/Preprocessor.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525

2626
/**
2727
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
28+
* @deprecated CatalogSearch will be removed in 2.4, and {@see \Magento\ElasticSearch}
29+
* will replace it as the default search engine.
2830
*/
2931
class Preprocessor implements PreprocessorInterface
3032
{

app/code/Magento/CatalogSearch/Model/Adapter/Mysql/Plugin/Aggregation/Category/DataProvider.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818

1919
/**
2020
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
21+
* @deprecated CatalogSearch will be removed in 2.4, and {@see \Magento\ElasticSearch}
22+
* will replace it as the default search engine.
2123
*/
2224
class DataProvider
2325
{

app/code/Magento/CatalogSearch/Model/Adapter/Options.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
/**
1313
* @api
1414
* @since 100.0.2
15+
* @deprecated CatalogSearch will be removed in 2.4, and {@see \Magento\ElasticSearch}
16+
* will replace it as the default search engine.
1517
*/
1618
class Options implements OptionsInterface
1719
{

app/code/Magento/CatalogSearch/Model/Adminhtml/System/Config/Backend/Engine.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66
namespace Magento\CatalogSearch\Model\Adminhtml\System\Config\Backend;
77

88
/**
9-
* @author Magento Core Team <[email protected]>
109
* @api
1110
* @since 100.0.2
11+
* @deprecated CatalogSearch will be removed in 2.4, and {@see \Magento\ElasticSearch}
12+
* will replace it as the default search engine.
1213
*/
1314
class Engine extends \Magento\Framework\App\Config\Value
1415
{

app/code/Magento/CatalogSearch/Model/Advanced.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@
4343
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
4444
* @api
4545
* @since 100.0.2
46+
* @deprecated CatalogSearch will be removed in 2.4, and {@see \Magento\ElasticSearch}
47+
* will replace it as the default search engine.
4648
*/
4749
class Advanced extends \Magento\Framework\Model\AbstractModel
4850
{

app/code/Magento/CatalogSearch/Model/Advanced/Request/Builder.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
/**
1111
* @api
1212
* @since 100.0.2
13+
* @deprecated CatalogSearch will be removed in 2.4, and {@see \Magento\ElasticSearch}
14+
* will replace it as the default search engine.
1315
*/
1416
class Builder extends RequestBuilder
1517
{

app/code/Magento/CatalogSearch/Model/Attribute/SearchWeight.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
* which is used to boost matches by specific attributes.
1212
*
1313
* This is part of search accuracy customization functionality.
14+
*
15+
* @deprecated CatalogSearch will be removed in 2.4, and {@see \Magento\ElasticSearch}
16+
* will replace it as the default search engine.
1417
*/
1518
class SearchWeight
1619
{

app/code/Magento/CatalogSearch/Model/Autocomplete/DataProvider.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
use Magento\Framework\App\Config\ScopeConfigInterface as ScopeConfig;
1414
use Magento\Store\Model\ScopeInterface;
1515

16+
/**
17+
* @deprecated CatalogSearch will be removed in 2.4, and {@see \Magento\ElasticSearch}
18+
* will replace it as the default search engine.
19+
*/
1620
class DataProvider implements DataProviderInterface
1721
{
1822
/**

app/code/Magento/CatalogSearch/Model/Fulltext.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
* @method \Magento\CatalogSearch\Model\Fulltext setStoreId(int $value)
2222
* @method string getDataIndex()
2323
* @method \Magento\CatalogSearch\Model\Fulltext setDataIndex(string $value)
24+
*
25+
* @deprecated CatalogSearch will be removed in 2.4, and {@see \Magento\ElasticSearch}
26+
* will replace it as the default search engine.
2427
*/
2528
class Fulltext extends \Magento\Framework\Model\AbstractModel
2629
{

app/code/Magento/CatalogSearch/Model/Indexer/Fulltext.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
*
2020
* @api
2121
* @since 100.0.2
22+
* @deprecated CatalogSearch will be removed in 2.4, and {@see \Magento\ElasticSearch}
23+
* will replace it as the default search engine.
2224
*/
2325
class Fulltext implements
2426
\Magento\Framework\Indexer\ActionInterface,

app/code/Magento/CatalogSearch/Model/Indexer/Fulltext/Action/DataProvider.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
* @SuppressWarnings(PHPMD.TooManyFields)
1717
* @api
1818
* @since 100.0.3
19+
* @deprecated CatalogSearch will be removed in 2.4, and {@see \Magento\ElasticSearch}
20+
* will replace it as the default search engine.
1921
*/
2022
class DataProvider
2123
{

app/code/Magento/CatalogSearch/Model/Indexer/Fulltext/Action/Full.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
2323
* @api
2424
* @since 100.0.2
25+
*
26+
* @deprecated CatalogSearch will be removed in 2.4, and {@see \Magento\ElasticSearch}
27+
* will replace it as the default search engine.
2528
*/
2629
class Full
2730
{

0 commit comments

Comments
 (0)