Skip to content

Commit a10dd11

Browse files
committed
1.1.69 Release
- resolved conflicts between ACSD-57477 and ACSD-59865 - resolved conflicts between ACSD-66404 and ACSD-53583 - Updated patches-info.json
1 parent aa9369e commit a10dd11

File tree

4 files changed

+39
-33
lines changed

4 files changed

+39
-33
lines changed

patches-info.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

patches/os/ACSD-57477_2.4.6-p2.patch

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
diff --git a/vendor/magento/module-quote/Model/Quote/Address.php b/vendor/magento/module-quote/Model/Quote/Address.php
2-
index 2d3c072d5d88..c759266d2e69 100644
2+
index 2d3c072d5d8..c759266d2e6 100644
33
--- a/vendor/magento/module-quote/Model/Quote/Address.php
44
+++ b/vendor/magento/module-quote/Model/Quote/Address.php
5-
@@ -86,7 +86,6 @@
5+
@@ -86,7 +86,6 @@ use Magento\Store\Model\StoreManagerInterface;
66
* @method float getDiscountAmount()
77
* @method Address setDiscountAmount(float $value)
88
* @method float getBaseDiscountAmount()
@@ -19,7 +19,7 @@ index 2d3c072d5d88..c759266d2e69 100644
1919
/**
2020
* Prefix of model events
2121
*
22-
@@ -1796,4 +1797,17 @@ protected function getCustomAttributesCodes()
22+
@@ -1796,4 +1797,17 @@ class Address extends AbstractAddress implements
2323
{
2424
return array_keys($this->attributeList->getAttributes());
2525
}
@@ -38,7 +38,7 @@ index 2d3c072d5d88..c759266d2e69 100644
3838
+ }
3939
}
4040
diff --git a/vendor/magento/module-quote-graph-ql/Plugin/ProductAttributesExtender.php b/vendor/magento/module-quote-graph-ql/Plugin/ProductAttributesExtender.php
41-
index bcacd58fcb7e..eeed8e84d8ef 100644
41+
index bcacd58fcb7..eeed8e84d8e 100644
4242
--- a/vendor/magento/module-quote-graph-ql/Plugin/ProductAttributesExtender.php
4343
+++ b/vendor/magento/module-quote-graph-ql/Plugin/ProductAttributesExtender.php
4444
@@ -26,6 +26,11 @@ class ProductAttributesExtender
@@ -53,7 +53,7 @@ index bcacd58fcb7e..eeed8e84d8ef 100644
5353
/**
5454
* @param Fields $fields
5555
* @param AttributeCollectionFactory $attributeCollectionFactory
56-
@@ -48,12 +53,15 @@ public function __construct(
56+
@@ -48,12 +53,15 @@ class ProductAttributesExtender
5757
*/
5858
public function afterGetProductAttributes(QuoteConfig $subject, array $result): array
5959
{
@@ -76,10 +76,10 @@ index bcacd58fcb7e..eeed8e84d8ef 100644
7676
return array_unique(array_merge($result, $attributes));
7777
}
7878
diff --git a/vendor/magento/module-sales-rule/Helper/CartFixedDiscount.php b/vendor/magento/module-sales-rule/Helper/CartFixedDiscount.php
79-
index eeab18e9c360..a518a00c7352 100644
79+
index eeab18e9c36..a518a00c735 100644
8080
--- a/vendor/magento/module-sales-rule/Helper/CartFixedDiscount.php
8181
+++ b/vendor/magento/module-sales-rule/Helper/CartFixedDiscount.php
82-
@@ -138,6 +138,7 @@ public function getDiscountedAmountProportionally(
82+
@@ -138,6 +138,7 @@ class CartFixedDiscount
8383
$baseItemPriceTotal = $baseItemPrice * $qty - $baseItemDiscountAmount;
8484
$ratio = $baseRuleTotalsDiscount != 0 ? $baseItemPriceTotal / $baseRuleTotalsDiscount : 0;
8585
$discountAmount = $this->deltaPriceRound->round($ruleDiscount * $ratio, $discountType);
@@ -88,10 +88,10 @@ index eeab18e9c360..a518a00c7352 100644
8888
}
8989

9090
diff --git a/vendor/magento/module-sales-rule/Model/Quote/Discount.php b/vendor/magento/module-sales-rule/Model/Quote/Discount.php
91-
index 19e9bdf377bf..f2de09f3024f 100644
91+
index fcefae81780..ae996ae8a96 100644
9292
--- a/vendor/magento/module-sales-rule/Model/Quote/Discount.php
9393
+++ b/vendor/magento/module-sales-rule/Model/Quote/Discount.php
94-
@@ -20,11 +20,10 @@
94+
@@ -20,11 +20,10 @@ use Magento\SalesRule\Api\Data\DiscountDataInterface;
9595
use Magento\SalesRule\Api\Data\DiscountDataInterfaceFactory;
9696
use Magento\SalesRule\Api\Data\RuleDiscountInterfaceFactory;
9797
use Magento\SalesRule\Model\Data\RuleDiscount;
@@ -104,7 +104,7 @@ index 19e9bdf377bf..f2de09f3024f 100644
104104

105105
/**
106106
* Discount totals calculation model.
107-
@@ -177,11 +176,14 @@ public function collect(
107+
@@ -177,11 +176,14 @@ class Discount extends AbstractTotal
108108
$this->calculator->init($store->getWebsiteId(), $quote->getCustomerGroupId(), $quote->getCouponCode());
109109
$this->calculator->initTotals($items, $address);
110110
$items = $this->calculator->sortItemsByPriority($items, $address);
@@ -120,8 +120,8 @@ index 19e9bdf377bf..f2de09f3024f 100644
120120
if ($quote->getIsMultiShipping() && $item->getAddress()->getId() !== $address->getId()) {
121121
continue;
122122
}
123-
@@ -190,14 +192,18 @@ public function collect(
124-
}
123+
@@ -205,14 +207,18 @@ class Discount extends AbstractTotal
124+
125125
$eventArgs['item'] = $item;
126126
$this->eventManager->dispatch('sales_quote_address_discount_item', $eventArgs);
127127
+
@@ -145,10 +145,10 @@ index 19e9bdf377bf..f2de09f3024f 100644
145145
if (!isset($itemsAggregate[$item->getId()])) {
146146
continue;
147147
diff --git a/vendor/magento/module-sales-rule/Model/ResourceModel/Rule/Collection.php b/vendor/magento/module-sales-rule/Model/ResourceModel/Rule/Collection.php
148-
index c7a344230698..a2d4af289004 100644
148+
index c7a34423069..a2d4af28900 100644
149149
--- a/vendor/magento/module-sales-rule/Model/ResourceModel/Rule/Collection.php
150150
+++ b/vendor/magento/module-sales-rule/Model/ResourceModel/Rule/Collection.php
151-
@@ -113,26 +113,29 @@ protected function mapAssociatedEntities($entityType, $objectField)
151+
@@ -113,26 +113,29 @@ class Collection extends \Magento\Rule\Model\ResourceModel\Rule\Collection\Abstr
152152

153153
$entityInfo = $this->_getAssociatedEntityInfo($entityType);
154154
$ruleIdField = $entityInfo['rule_id_field'];
@@ -190,18 +190,18 @@ index c7a344230698..a2d4af289004 100644
190190

191191
/**
192192
diff --git a/vendor/magento/module-sales-rule/Model/Rule.php b/vendor/magento/module-sales-rule/Model/Rule.php
193-
index 386642c22ab1..d35ed63e908f 100644
193+
index 386642c22ab..d35ed63e908 100644
194194
--- a/vendor/magento/module-sales-rule/Model/Rule.php
195195
+++ b/vendor/magento/module-sales-rule/Model/Rule.php
196-
@@ -38,7 +38,6 @@
196+
@@ -38,7 +38,6 @@ use Magento\Quote\Model\Quote\Address;
197197
* @method \Magento\SalesRule\Model\Rule setProductIds(string $value)
198198
* @method int getSortOrder()
199199
* @method \Magento\SalesRule\Model\Rule setSortOrder(int $value)
200200
- * @method string getSimpleAction()
201201
* @method \Magento\SalesRule\Model\Rule setSimpleAction(string $value)
202202
* @method float getDiscountAmount()
203203
* @method \Magento\SalesRule\Model\Rule setDiscountAmount(float $value)
204-
@@ -547,6 +546,17 @@ public function getFromDate()
204+
@@ -547,6 +546,17 @@ class Rule extends \Magento\Rule\Model\AbstractModel
205205
return $this->getData('from_date');
206206
}
207207

@@ -220,18 +220,18 @@ index 386642c22ab1..d35ed63e908f 100644
220220
* Get to date.
221221
*
222222
diff --git a/vendor/magento/module-sales-rule/Model/Rule/Action/Discount/CartFixed.php b/vendor/magento/module-sales-rule/Model/Rule/Action/Discount/CartFixed.php
223-
index 2f9dbb9faea2..485b98c22565 100644
223+
index 2f9dbb9faea..485b98c2256 100644
224224
--- a/vendor/magento/module-sales-rule/Model/Rule/Action/Discount/CartFixed.php
225225
+++ b/vendor/magento/module-sales-rule/Model/Rule/Action/Discount/CartFixed.php
226-
@@ -80,7 +80,6 @@ public function calculate($rule, $item, $qty)
226+
@@ -80,7 +80,6 @@ class CartFixed extends AbstractDiscount
227227

228228
$ruleTotals = $this->validator->getRuleItemTotalsInfo($rule->getId());
229229
$baseRuleTotals = $ruleTotals['base_items_price'] ?? 0.0;
230230
- $baseRuleTotalsDiscount = $ruleTotals['base_items_discount_amount'] ?? 0.0;
231231
$ruleItemsCount = $ruleTotals['items_count'] ?? 0;
232232

233233
$address = $item->getAddress();
234-
@@ -134,7 +133,7 @@ public function calculate($rule, $item, $qty)
234+
@@ -134,7 +133,7 @@ class CartFixed extends AbstractDiscount
235235
$qty,
236236
$baseItemPrice,
237237
$baseItemDiscountAmount,
@@ -241,10 +241,10 @@ index 2f9dbb9faea2..485b98c22565 100644
241241
);
242242
}
243243
diff --git a/vendor/magento/module-sales-rule/Model/Validator.php b/vendor/magento/module-sales-rule/Model/Validator.php
244-
index 998d1c3a2a8e..c6a0ecf60ffd 100644
244+
index 998d1c3a2a8..c6a0ecf60ff 100644
245245
--- a/vendor/magento/module-sales-rule/Model/Validator.php
246246
+++ b/vendor/magento/module-sales-rule/Model/Validator.php
247-
@@ -460,6 +460,7 @@ public function initTotals($items, Address $address)
247+
@@ -460,6 +460,7 @@ class Validator extends \Magento\Framework\Model\AbstractModel
248248
$ruleTotalBaseItemsDiscountAmount = 0;
249249
$validItemsCount = 0;
250250

@@ -253,10 +253,10 @@ index 998d1c3a2a8e..c6a0ecf60ffd 100644
253253
if (!$this->isValidItemForRule($item, $rule)
254254
|| ($item->getChildren() && $item->isChildrenCalculated())
255255
diff --git a/vendor/magento/framework/GraphQl/Query/Fields.php b/vendor/magento/framework/GraphQl/Query/Fields.php
256-
index 78062effe3d4..009048cdb1af 100644
256+
index 78062effe3d..009048cdb1a 100644
257257
--- a/vendor/magento/framework/GraphQl/Query/Fields.php
258258
+++ b/vendor/magento/framework/GraphQl/Query/Fields.php
259-
@@ -44,7 +44,7 @@ public function setQuery($query, array $variables = null)
259+
@@ -44,7 +44,7 @@ class Fields
260260
]
261261
);
262262
if (isset($variables)) {
@@ -265,7 +265,7 @@ index 78062effe3d4..009048cdb1af 100644
265265
}
266266
// phpcs:ignore Magento2.CodeAnalysis.EmptyBlock
267267
} catch (\Exception $e) {
268-
@@ -73,21 +73,21 @@ public function getFieldsUsedInQuery()
268+
@@ -73,21 +73,21 @@ class Fields
269269
/**
270270
* Extract and return list of all used fields in GraphQL query's variables
271271
*

patches/os/ACSD-66755_2.4.6-p6.patch

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
diff --git a/vendor/magento/module-indexer/etc/crontab.xml b/vendor/magento/module-indexer/etc/crontab.xml
2-
index 2984f47912f45..a0248a0b3b173 100644
2+
index 2984f47912f..a0248a0b3b1 100644
33
--- a/vendor/magento/module-indexer/etc/crontab.xml
44
+++ b/vendor/magento/module-indexer/etc/crontab.xml
55
@@ -1,8 +1,8 @@
@@ -23,12 +23,12 @@ index 2984f47912f45..a0248a0b3b173 100644
2323
</group>
2424
</config>
2525
diff --git a/vendor/magento/framework/Mview/View/Changelog.php b/vendor/magento/framework/Mview/View/Changelog.php
26-
index 4cb55ced7d9df..174bb8b0c3dcd 100644
26+
index c7529a69d2f..4b73ecb1269 100644
2727
--- a/vendor/magento/framework/Mview/View/Changelog.php
2828
+++ b/vendor/magento/framework/Mview/View/Changelog.php
2929
@@ -34,6 +34,11 @@ class Changelog implements ChangelogInterface
3030
*/
31-
const VERSION_ID_COLUMN_NAME = 'version_id';
31+
public const VERSION_ID_COLUMN_NAME = 'version_id';
3232

3333
+ /**
3434
+ * Batch size for changelog cleaning operation
@@ -38,7 +38,7 @@ index 4cb55ced7d9df..174bb8b0c3dcd 100644
3838
/**
3939
* Database connection
4040
*
41-
@@ -191,7 +196,14 @@ public function clear($versionId)
41+
@@ -191,7 +196,14 @@ class Changelog implements ChangelogInterface
4242
throw new ChangelogTableNotExistsException(new Phrase("Table %1 does not exist", [$changelogTableName]));
4343
}
4444

@@ -54,4 +54,3 @@ index 4cb55ced7d9df..174bb8b0c3dcd 100644
5454

5555
return true;
5656
}
57-

support-patches.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15874,7 +15874,10 @@
1587415874
"packages": {
1587515875
"magento/magento2-base": {
1587615876
">=2.4.6 <2.4.7": {
15877-
"file": "os/ACSD-57477_2.4.6-p2.patch"
15877+
"file": "os/ACSD-57477_2.4.6-p2.patch",
15878+
"require": [
15879+
"ACSD-59865"
15880+
]
1587815881
}
1587915882
}
1588015883
}
@@ -15995,10 +15998,14 @@
1599515998
"Admin"
1599615999
],
1599716000
"title": "Fixes the issue where the cron job fails to clear changelog tables, causing Galera Cluster crashes when handling large amounts of data.",
16001+
"requirements": "For 2.4.4-2.4.7 versions do not install if you have Live Search. Check KB article (ACSD-53583) for more details.",
1599816002
"packages": {
1599916003
"magento/magento2-base": {
1600016004
">=2.4.4 <2.4.7": {
16001-
"file": "os/ACSD-66755_2.4.6-p6.patch"
16005+
"file": "os/ACSD-66755_2.4.6-p6.patch",
16006+
"require": [
16007+
"ACSD-53583"
16008+
]
1600216009
},
1600316010
">=2.4.7 <2.4.9": {
1600416011
"file": "os/ACSD-66404_2.4.7-p6.patch"

0 commit comments

Comments
 (0)