Skip to content

Commit 7648220

Browse files
authored
Merge pull request #1681 from magento-helix/MAGETWO-80568
[Helix] Prepare codebase for 2.2.2
2 parents 29a1a27 + 18b0e57 commit 7648220

File tree

84 files changed

+1880
-511
lines changed

Some content is hidden

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

84 files changed

+1880
-511
lines changed

CHANGELOG.md

Lines changed: 690 additions & 0 deletions
Large diffs are not rendered by default.

app/code/Magento/AdvancedPricingImportExport/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"magento/framework": "101.0.*"
1414
},
1515
"type": "magento2-module",
16-
"version": "100.2.0",
16+
"version": "100.2.1",
1717
"license": [
1818
"OSL-3.0",
1919
"AFL-3.0"

app/code/Magento/Analytics/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"magento/framework": "100.2.*"
1111
},
1212
"type": "magento2-module",
13-
"version": "100.2.0-dev",
13+
"version": "100.2.0",
1414
"license": [
1515
"OSL-3.0",
1616
"AFL-3.0"

app/code/Magento/Backend/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"magento/module-theme": "100.2.*"
2525
},
2626
"type": "magento2-module",
27-
"version": "100.2.0",
27+
"version": "100.2.1",
2828
"license": [
2929
"OSL-3.0",
3030
"AFL-3.0"

app/code/Magento/Braintree/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"magento/module-theme": "100.2.*"
2626
},
2727
"type": "magento2-module",
28-
"version": "100.2.0",
28+
"version": "100.2.1",
2929
"license": [
3030
"proprietary"
3131
],

app/code/Magento/Bundle/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"magento/module-bundle-sample-data": "Sample Data version:100.2.*"
2626
},
2727
"type": "magento2-module",
28-
"version": "100.2.0",
28+
"version": "100.2.1",
2929
"license": [
3030
"OSL-3.0",
3131
"AFL-3.0"

app/code/Magento/Catalog/Model/Indexer/Category/Product/Action/Full.php

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ class Full extends \Magento\Catalog\Model\Indexer\Category\Product\AbstractActio
5252
* @param \Magento\Framework\Indexer\BatchSizeManagementInterface|null $batchSizeManagement
5353
* @param \Magento\Framework\Indexer\BatchProviderInterface|null $batchProvider
5454
* @param \Magento\Framework\EntityManager\MetadataPool|null $metadataPool
55-
* @param \Magento\Indexer\Model\Indexer\StateFactory|null $stateFactory
5655
* @param int|null $batchRowsCount
5756
* @param ActiveTableSwitcher|null $activeTableSwitcher
5857
*/
@@ -87,13 +86,28 @@ public function __construct(
8786
$this->activeTableSwitcher = $activeTableSwitcher ?: $objectManager->get(ActiveTableSwitcher::class);
8887
}
8988

89+
/**
90+
* Clear the table we'll be writing de-normalized data into
91+
* to prevent archived data getting in the way of actual data.
92+
*
93+
* @return void
94+
*/
95+
private function clearCurrentTable()
96+
{
97+
$this->connection->delete(
98+
$this->activeTableSwitcher
99+
->getAdditionalTableName($this->getMainTable())
100+
);
101+
}
102+
90103
/**
91104
* Refresh entities index
92105
*
93106
* @return $this
94107
*/
95108
public function execute()
96109
{
110+
$this->clearCurrentTable();
97111
$this->reindex();
98112
$this->activeTableSwitcher->switchTable($this->connection, [$this->getMainTable()]);
99113
return $this;
@@ -103,6 +117,7 @@ public function execute()
103117
* Return select for remove unnecessary data
104118
*
105119
* @return \Magento\Framework\DB\Select
120+
* @deprecated 102.0.1 Not needed anymore.
106121
*/
107122
protected function getSelectUnnecessaryData()
108123
{
@@ -127,12 +142,15 @@ protected function getSelectUnnecessaryData()
127142
* Remove unnecessary data
128143
*
129144
* @return void
145+
*
146+
* @deprecated 102.0.1 Not needed anymore.
130147
*/
131148
protected function removeUnnecessaryData()
132149
{
133-
$this->connection->query(
134-
$this->connection->deleteFromSelect($this->getSelectUnnecessaryData(), $this->getMainTable())
135-
);
150+
//Called for backwards compatibility.
151+
$this->getSelectUnnecessaryData();
152+
//This method is useless,
153+
//left it here just in case somebody's using it in child classes.
136154
}
137155

138156
/**

app/code/Magento/Catalog/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"magento/module-catalog-sample-data": "Sample Data version:100.2.*"
3535
},
3636
"type": "magento2-module",
37-
"version": "102.0.0",
37+
"version": "102.0.1",
3838
"license": [
3939
"OSL-3.0",
4040
"AFL-3.0"

app/code/Magento/CatalogAnalytics/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"magento/module-catalog": "101.1.*"
88
},
99
"type": "magento2-module",
10-
"version": "100.2.0-dev",
10+
"version": "100.2.0",
1111
"license": [
1212
"OSL-3.0",
1313
"AFL-3.0"

app/code/Magento/CatalogImportExport/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"ext-ctype": "*"
1717
},
1818
"type": "magento2-module",
19-
"version": "100.2.0",
19+
"version": "100.2.1",
2020
"license": [
2121
"OSL-3.0",
2222
"AFL-3.0"

0 commit comments

Comments
 (0)