Skip to content

Upstream Merge Conflict (2.4-develop) #140

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 127 commits into
base: 2.4-develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
127 commits
Select commit Hold shift + click to select a range
ae7bfb6
Disable captcha storefont config still load captcha js files
rogerdz Sep 10, 2024
510cf9b
update code
rogerdz Sep 11, 2024
d6ab658
Merge branch '2.4-develop' into fix-32987
rogerdz Sep 11, 2024
9511324
Merge branch '2.4-develop' into fix-32987
engcom-Hotel Feb 18, 2025
5f2c7c5
Merge branch '2.4-develop' into fix-32987
engcom-Hotel Feb 25, 2025
899e339
Merge branch '2.4-develop' into fix-32987
engcom-Hotel Feb 26, 2025
d2860ce
Fix the static test failures and improve code readability
engcom-Hotel Feb 26, 2025
fd0b159
Fix static test failures
engcom-Hotel Feb 26, 2025
ed76de5
Merge branch '2.4-develop' into fix-32987
engcom-Hotel Feb 27, 2025
c2c85ce
Fix integration test failures
glo24157 Feb 27, 2025
212214f
Merge branch '2.4-develop' into fix-32987
engcom-Hotel Feb 27, 2025
315dc25
Fixes integration test failures
glo24157 Feb 28, 2025
047da16
Fixes static test failures
engcom-Hotel Feb 28, 2025
0ff6732
magento/magento2#35371: Product page gives error because of url rewrites
Feb 28, 2025
b60b5f8
magento/magento2#38933: Putting csp_whitelist.xml in theme does not w…
NitrogenUA Feb 28, 2025
0d4e053
magento/magento2#35371: Product page gives error because of url rewrites
Feb 28, 2025
19967c8
magento/magento2#35371: Product page gives error because of url rewrites
Feb 28, 2025
f65f4ab
magento/magento2#38933: Putting csp_whitelist.xml in theme does not w…
NitrogenUA Feb 28, 2025
9e2f43d
Merge branch '2.4-develop' into fix-for-issue-35371
Himsoft Feb 28, 2025
16e3557
Update code according to the review comment
engcom-Hotel Mar 5, 2025
bc97c90
Merge branch '2.4-develop' into fix-32987
engcom-Hotel Mar 5, 2025
6c1f4f3
Fixed static test failures
engcom-Hotel Mar 5, 2025
4960a84
Merge branch '2.4-develop' into fix-32987
engcom-Hotel Mar 6, 2025
df37b87
Fix review comment
engcom-Hotel Mar 6, 2025
46cffe1
Merge branch '2.4-develop' into fix-for-issue-35371
Himsoft Mar 6, 2025
4e27739
Issue-39692 used block id for widget_parameters instead of block iden…
Mohamed-Asar Mar 8, 2025
7acdc6d
Escape disabled modules in code compilation - setup:di:compile
lucafuser Mar 8, 2025
27968d7
Merge branch '2.4-develop' into bug/39692-block-selection-in-widget
Mohamed-Asar Mar 10, 2025
83451aa
Static test case fix
Mohamed-Asar Mar 10, 2025
99e8cc5
Merge branch 'bug/39692-block-selection-in-widget' of https://github.…
Mohamed-Asar Mar 10, 2025
5edd1a4
Fix review comments
engcom-Hotel Mar 10, 2025
03651fd
Merge branch '2.4-develop' into fix-32987
engcom-Hotel Mar 10, 2025
e7e56a9
Add Layout Processor
engcom-Hotel Mar 10, 2025
9619454
Removed some file and unused code
engcom-Hotel Mar 10, 2025
7953e54
Copyright format adjust, clean code and fix cyclomatic complexity in …
lucafuser Mar 11, 2025
fe11f9a
Fixes review comments
engcom-Hotel Mar 13, 2025
ba8bc52
Merge branch '2.4-develop' into fix-32987
engcom-Hotel Mar 13, 2025
f2e283c
Merge branch '2.4-develop' into issue38241
lucafuser Mar 14, 2025
d520b7c
Code review - removed unnecessary deploy config check
lucafuser Mar 14, 2025
cfdc12c
Fix static test failures
engcom-Hotel Mar 18, 2025
c91126d
Merge branch 'magento:2.4-develop' into fix-for-issue-38933
NitrogenUA Mar 18, 2025
560b3be
Merge branch '2.4-develop' into fix-32987
engcom-Dash Mar 21, 2025
19c9d30
Merge branch '2.4-develop' into fix-for-issue-38933
engcom-Hotel Mar 25, 2025
e46b06f
Update app/code/Magento/Csp/Model/Collector/CspWhitelistXml/FileResol…
Den4ik Mar 25, 2025
20b76fa
Merge branch '2.4-develop' into fix-for-issue-35371
engcom-Hotel Mar 27, 2025
10eae94
Merge branch '2.4-develop' into fix-for-issue-35371
Mar 27, 2025
be61357
magento/magento2#35371: Product page gives error because of url rewrites
Mar 27, 2025
58e57fb
Merge remote-tracking branch 'origin/fix-for-issue-35371' into fix-fo…
Mar 27, 2025
ab3baeb
Added changes for AC-14280
del77428 Apr 1, 2025
f9dc92b
Added changes for AC-14280 copright message
del77428 Apr 1, 2025
c92a3df
ACP2E-3774: Concurrent Calls to Reorder GraphQL API - Same Products A…
o-dubovyk Apr 1, 2025
6866973
ACP2E-3774: Concurrent Calls to Reorder GraphQL API - Same Products A…
o-dubovyk Apr 2, 2025
f5a0d75
ACP2E-3774: Concurrent Calls to Reorder GraphQL API - Same Products A…
o-dubovyk Apr 2, 2025
9a479ae
ACP2E-3774: Concurrent Calls to Reorder GraphQL API - Same Products A…
o-dubovyk Apr 2, 2025
2e9969f
ACP2E-3774: Concurrent Calls to Reorder GraphQL API - Same Products A…
o-dubovyk Apr 3, 2025
cc5f6b3
removed changes for B2b branding logo from ce
del77428 Apr 4, 2025
70e984f
ACP2E-3785: updateCustomerEmail GraphQL mutation(Change email Address…
arnobsh Mar 27, 2025
30b9ec6
ACP2E-3774: Concurrent Calls to Reorder GraphQL API - Same Products A…
o-dubovyk Apr 4, 2025
3065aff
Merge branch '2.4-develop' into fix-for-issue-35371
engcom-Dash Apr 7, 2025
a0a157f
Merge branch '2.4-develop' into fix-for-issue-35371
engcom-Dash Apr 8, 2025
260e872
Merge branch '2.4-develop' into fix-for-issue-35371
Apr 8, 2025
62411cf
magento/magento2#35371: Product page gives error because of url rewrites
Apr 8, 2025
ec49e95
Merge remote-tracking branch 'origin/fix-for-issue-35371' into fix-fo…
Apr 8, 2025
35ed4a0
Merge branch '2.4-develop' into fix-for-issue-38933
engcom-Dash Apr 10, 2025
d7c3b5b
Added Unit Test Cases for CSP FileResolver
engcom-Dash Apr 10, 2025
e6167c8
Merge branch '2.4-develop' into fix-for-issue-35371
engcom-Dash Apr 11, 2025
60daff8
Merge branch '2.4-develop' into fix-for-issue-35371
engcom-Dash Apr 11, 2025
7c2b4c3
Merge branch 'refs/heads/2.4-develop' into issue38241
lucafuser Apr 11, 2025
6e48007
Fixed Static Test Case Failures
engcom-Dash Apr 11, 2025
805c544
Copyright Message & Static Test Case Failure Fixed
engcom-Dash Apr 11, 2025
ca76908
Merge branch '2.4-develop' into fix-for-issue-35371
engcom-Hotel Apr 14, 2025
a095bb6
ACP2E-3563: Issue while moving the product qty to back to shopping ca…
abukatar Apr 15, 2025
02fd91d
Merge branch '2.4-develop' into AC-14280
del77428 Apr 15, 2025
9fc9263
Merge branch '2.4-develop' into bug/39692-block-selection-in-widget
engcom-Hotel Apr 16, 2025
e7b3597
39672: Fixed Review Comments
engcom-Dash Apr 16, 2025
87e2fbf
Merge branch '2.4-develop' into fix-for-issue-38933
engcom-Dash Apr 16, 2025
1c3346e
Merge branch '2.4-develop' into issue38241
engcom-Dash Apr 16, 2025
c33e058
Functional test fix
Mohamed-Asar Apr 16, 2025
3cd8bf5
Merge branch '2.4-develop' into issue38241
engcom-Dash Apr 17, 2025
9dfa3f5
Functional test param value changes
Mohamed-Asar Apr 17, 2025
c4bc979
Merge branch '2.4-develop' into fix-for-issue-38933
engcom-Hotel Apr 17, 2025
3dd14f9
Merge branch '2.4-develop' into bug/39692-block-selection-in-widget
engcom-Bravo Apr 21, 2025
00e13dc
Merge remote-tracking branch 'origin/AC-14361' into spartans_pr_21042025
glo60612 Apr 21, 2025
6c73219
Merge remote-tracking branch 'origin/AC-14280' into spartans_pr_21042025
glo60612 Apr 21, 2025
c15edc0
Added changes for AC-13691 partial search
del77428 Apr 21, 2025
7613713
Added modification for AC-13691
del77428 Apr 21, 2025
e4275fc
Merge remote-tracking branch 'origin/2.4-develop' into ACP2E-3785
arnobsh Apr 21, 2025
45a88d3
ACP2E-3774: Concurrent Calls to Reorder GraphQL API - Same Products A…
o-dubovyk Apr 21, 2025
30e817b
Merge remote-tracking branch 'origin/2.4-develop' into ACP2E-3774
o-dubovyk Apr 21, 2025
3ee3987
ACP2E-3774: Concurrent Calls to Reorder GraphQL API - Same Products A…
o-dubovyk Apr 21, 2025
2f2a70f
fixes for AC-13691
del77428 Apr 22, 2025
667c0ad
Merge remote-tracking branch '39681/fix-for-issue-35371' into blprs
engcom-Charlie Apr 22, 2025
e3c38ac
Changed the Copyright to reduced copyright.
del02433 Apr 23, 2025
6847456
Merge branch '2.4-develop' into fix-for-issue-38933
engcom-Dash Apr 23, 2025
688e5d2
Applied refined changes to the Copyright.
del02433 Apr 23, 2025
a97432d
removed the conflict files.
del02433 Apr 24, 2025
8a9b259
AC-14487: WEB API Tests failing
wip44850 Apr 24, 2025
26961ff
AC-14487: WEB API Tests failing
wip44850 Apr 24, 2025
db48078
Merge remote-tracking branch 'origin/2.4-develop' into spartans_pr_21…
glo60612 Apr 24, 2025
9d5a37b
AC-14487: Fix Intigration test
wip44850 Apr 24, 2025
35fc357
merged branch 2.4-develop
del77428 Apr 24, 2025
ade8ea8
Merge remote-tracking branch '39723/issue38241' into blprs
engcom-Charlie Apr 25, 2025
0c70667
Merge remote-tracking branch '39672/fix-for-issue-38933' into blprs
engcom-Charlie Apr 25, 2025
a0600d1
Merge branch '2.4-develop' into blprs
Indraniks Apr 25, 2025
4991339
Merge branch '2.4-develop' into spartans_pr_21042025
magento-devops-queue-mgr-svc Apr 27, 2025
36bd9ee
Merge branch '2.4-develop' into spartans_pr_21042025
magento-devops-queue-mgr-svc Apr 27, 2025
ae3ddf5
Merge branch '2.4-develop' into blprs
Indraniks Apr 28, 2025
488f68d
Merge remote-tracking branch '39722/bug/39692-block-selection-in-widg…
engcom-Charlie Apr 28, 2025
3b1ac1d
Merge remote-tracking branch '39154/fix-32987' into blprs
engcom-Charlie Apr 28, 2025
be15d80
Merge remote-tracking branch 'origin/AC-14425' into spartans_pr_28042025
glo60612 Apr 28, 2025
1cca741
Merge remote-tracking branch 'origin/AC-14487-V2' into spartans_pr_28…
glo60612 Apr 28, 2025
b1e3430
Merge remote-tracking branch 'origin/AC-13691' into spartans_pr_28042025
glo60612 Apr 28, 2025
de6ca84
Merge remote-tracking branch 'origin/spartans_pr_28042025' into spart…
glo60612 Apr 28, 2025
d45dc4e
Merge branch '2.4-develop' into spartans_pr_21042025
magento-devops-queue-mgr-svc Apr 28, 2025
5316beb
Merge branch '2.4-develop' into blprs
magento-devops-queue-mgr-svc Apr 29, 2025
e5b3588
Merge branch '2.4-develop' into spartans_pr_21042025
magento-devops-queue-mgr-svc Apr 29, 2025
e7141b0
reverting changes for AC-13691
del77428 Apr 29, 2025
7a941b0
copyright msg reverted AC-13691
del77428 Apr 29, 2025
4a080c8
Merge remote-tracking branch 'origin/AC-13691' into spartans_pr_28042025
glo60612 Apr 29, 2025
030be66
Merge remote-tracking branch 'origin/spartans_pr_28042025' into spart…
glo60612 Apr 29, 2025
fadcfa8
Merge pull request #9738 from magento-gl/spartans_pr_21042025
pawan-adobe-security Apr 29, 2025
280bb0b
Merge branch '2.4-develop' into blprs
magento-devops-queue-mgr-svc Apr 29, 2025
3113ce1
Merge pull request #9743 from magento-gl/blprs
internal-magento-queue-manager[bot] Apr 29, 2025
fe35614
Merge remote-tracking branch 'act4/ACP2E-3563' into PR_Apr23_doleksandr
o-dubovyk Apr 29, 2025
3927fbb
Merge remote-tracking branch 'act4/ACP2E-3774' into PR_Apr23_doleksandr
o-dubovyk Apr 29, 2025
0b282d1
Merge remote-tracking branch 'act4/ACP2E-3785' into PR_Apr23_doleksandr
o-dubovyk Apr 29, 2025
c8ba4ab
Merge pull request #9749 from adobe-commerce-tier-4/PR_Apr23_doleksandr
internal-magento-queue-manager[bot] Apr 30, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions app/code/Magento/Captcha/Block/CheckoutLayoutProcessor.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?php
/**
* Copyright 2025 Adobe.
* All Rights Reserved.
*/

declare(strict_types=1);
namespace Magento\Captcha\Block;

use Magento\Checkout\Block\Checkout\LayoutProcessorInterface;
use Magento\Captcha\Helper\Data as HelperCaptcha;

class CheckoutLayoutProcessor implements LayoutProcessorInterface
{
/**
* @param HelperCaptcha $helper
*/
public function __construct(
private readonly HelperCaptcha $helper
) {
}

/**
* Remove captcha from checkout page if it is disabled
*
* @param array $jsLayout
* @return array
*/
public function process($jsLayout): array
{
if ($this->helper->getConfig('enable')) {
$captcha = [
'component' => 'Magento_Captcha/js/view/checkout/loginCaptcha',
'displayArea' => 'additional-login-form-fields',
'formId' => 'user_login',
'configSource' => 'checkoutConfig'
];
$jsLayout['components']['checkout']['children']['authentication']['children']['captcha'] = $captcha;
$jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']
['shippingAddress']['children']['customer-email']['children']['additional-login-form-fields']
['children']['captcha'] = $captcha;
}
return $jsLayout;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?php
/**
* Copyright 2025 Adobe.
* All Rights Reserved.
*/

declare(strict_types=1);
namespace Magento\Captcha\Block\Customer\AuthenticationPopup;

use Magento\Captcha\Helper\Data as HelperCaptcha;
use Magento\Checkout\Block\Checkout\LayoutProcessorInterface;

class LayoutProcessor implements LayoutProcessorInterface
{
/**
* @param HelperCaptcha $helper
*/
public function __construct(
private readonly HelperCaptcha $helper
) {
}

/**
* Process jsLayout of checkout page
*
* @param array $jsLayout
* @return array
*/
public function process($jsLayout): array
{
if ($this->helper->getConfig('enable')) {
$jsLayout['components']['authenticationPopup']['children']['captcha'] = [
'component' => 'Magento_Captcha/js/view/checkout/loginCaptcha',
'displayArea' => 'additional-login-form-fields',
'formId' => 'user_login',
'configSource' => 'checkout'
];
}
return $jsLayout;
}
}
18 changes: 16 additions & 2 deletions app/code/Magento/Captcha/etc/frontend/di.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2015 Adobe
* All Rights Reserved.
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
Expand Down Expand Up @@ -37,4 +37,18 @@
<type name="Magento\Sales\Api\OrderManagementInterface">
<plugin name="reset_payment_attempts_after_order_is_placed_plugin" type="Magento\Captcha\Plugin\ResetPaymentAttemptsAfterOrderIsPlacedPlugin"/>
</type>
<type name="Magento\Checkout\Block\Onepage">
<arguments>
<argument name="layoutProcessors" xsi:type="array">
<item name="captcha_processor" xsi:type="object">Magento\Captcha\Block\CheckoutLayoutProcessor</item>
</argument>
</arguments>
</type>
<type name="Magento\Customer\Block\Account\AuthenticationPopup">
<arguments>
<argument name="layoutProcessors" xsi:type="array">
<item name="authentication_popup_processor" xsi:type="object">Magento\Captcha\Block\Customer\AuthenticationPopup\LayoutProcessor</item>
</argument>
</arguments>
</type>
</config>

This file was deleted.

29 changes: 0 additions & 29 deletions app/code/Magento/Captcha/view/frontend/layout/default.xml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<?php

/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2019 Adobe
* All Rights Reserved.
*/

declare(strict_types=1);

namespace Magento\CatalogUrlRewrite\Model\Storage;
Expand Down Expand Up @@ -170,7 +172,7 @@ private function findProductRewriteByRequestPath(array $data): ?array
}
$categorySuffix = $this->getCategoryUrlSuffix($data[UrlRewrite::STORE_ID]);
$productResource = $this->productFactory->create();
$categoryPath = str_replace('/' . $productUrl, '', $requestPath);
$categoryPath = substr($requestPath, 0, -1 * strlen('/' . $productUrl));
if ($productFromDb[UrlRewrite::REDIRECT_TYPE]) {
$productUrl = $productFromDb[UrlRewrite::TARGET_PATH];
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2021 Adobe
* All Rights Reserved.
*/
declare(strict_types=1);

Expand Down Expand Up @@ -80,6 +80,11 @@ class DynamicStorageTest extends TestCase
*/
private $logger;

/**
* @var string
*/
private $requestPath;

/**
* @inheritdoc
*/
Expand Down Expand Up @@ -169,9 +174,7 @@ public function testFindProductRewriteByRequestPath(
bool $canBeShownInCategory,
?array $expectedProductRewrite
): void {
$this->connectionMock->expects($this->any())
->method('fetchRow')
->will($this->onConsecutiveCalls($productFromDb, $categoryFromDb));
$this->fetchDataMock($productFromDb, $categoryFromDb);

$scopeConfigMap = [
[
Expand Down Expand Up @@ -347,6 +350,68 @@ public static function findProductRewriteByRequestPathDataProvider(): array
'redirect_type' => OptionProvider::PERMANENT,
]
],
[
// Category has product url key at the beginning of its url key
[
'request_path' => 'test-category/test-sub-category/test',
'store_id' => 1
],
[
'entity_type' => 'product',
'entity_id' => '1',
'request_path' => 'test',
'target_path' => 'catalog/product/view/id/1',
'redirect_type' => '0',
],
'',
[
'entity_type' => 'category',
'entity_id' => '38',
'request_path' => 'test-category/test-sub-category',
'target_path' => 'catalog/category/view/id/38',
'redirect_type' => '0',
],
true,
[
'entity_type' => 'product',
'entity_id' => '1',
'request_path' => 'test-category/test-sub-category/test',
'target_path' => 'catalog/product/view/id/1/category/38',
'redirect_type' => '0',
]
],
];
}

/**
* @param array|false $productFromDb
* @param array|false $categoryFromDb
*
* @return void
*/
private function fetchDataMock($productFromDb, $categoryFromDb): void
{
$selectMock = $this->selectMock;
$this->selectMock->expects($this->any())
->method('where')
->willReturnCallback(function ($string, $value) use ($selectMock) {
if ($string == 'url_rewrite.request_path IN (?)') {
$this->requestPath = array_shift($value);
}
return $selectMock;
});
$this->connectionMock->expects($this->any())
->method('fetchRow')
->willReturnCallback(function () use ($productFromDb, $categoryFromDb) {
switch (true) {
case $productFromDb && $productFromDb['request_path'] == $this->requestPath:
return $productFromDb;
case $categoryFromDb && $categoryFromDb['request_path'] == $this->requestPath:
return $categoryFromDb;
default:
return false;
}
})
;
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2011 Adobe
* All Rights Reserved.
*/
namespace Magento\Cms\Block\Adminhtml\Block\Widget;

Expand Down Expand Up @@ -100,7 +100,7 @@ public function getRowClickCallback()
$js = '
function (grid, event) {
var trElement = Event.findElement(event, "tr");
var blockId = trElement.down("td").next().next().innerHTML.replace(/^\s+|\s+$/g,"");
var blockId = trElement.down("td").innerHTML.replace(/^\s+|\s+$/g,"");
var blockTitle = trElement.down("td").next().innerHTML;
' .
$chooserJsObject .
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2020 Adobe
* All Rights Reserved.
*/
-->
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Expand Down Expand Up @@ -51,7 +51,7 @@
<!-- Assert block_id value in page content -->
<actionGroup ref="AdminAssertCMSPageContentParamValueActionGroup" stepKey="assertBlockId">
<argument name="param" value="block_id"/>
<argument name="value" value="$$createPreReqBlock.identifier$$"/>
<argument name="value" value="$$createPreReqBlock.id$$"/>
</actionGroup>
</test>
</tests>
Loading