Skip to content

Commit 5c90c10

Browse files
committed
Merge remote-tracking branch 'performance/ims-phase1' into CABPI-324
2 parents f11bb2b + d0f6124 commit 5c90c10

File tree

18 files changed

+440
-117
lines changed

18 files changed

+440
-117
lines changed

app/code/Magento/AdminAdobeIms/Plugin/ResetAttemptForBackendObserverPlugin.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,13 @@ public function __construct(ImsConfig $adminImsConfig)
3333
* @param ResetAttemptForBackendObserver $subject
3434
* @param callable $proceed
3535
* @param Observer $observer
36+
* @return void
3637
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
3738
*/
38-
public function aroundExecute(ResetAttemptForBackendObserver $subject, callable $proceed, Observer $observer)
39+
public function aroundExecute(ResetAttemptForBackendObserver $subject, callable $proceed, Observer $observer): void
3940
{
4041
if (!$this->adminImsConfig->enabled()) {
41-
return $proceed($observer);
42+
$proceed($observer);
4243
}
4344
}
4445
}

app/code/Magento/AdminAdobeIms/Test/Mftf/Test/AdminAdobeImsEnabledInfoCommandTest.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
<description value="Runs bin/magento admin:adobe-ims info command"/>
1717
<severity value="MINOR"/>
1818
<group value="admin_ims"/>
19+
<skip>
20+
<issueId value="DEPRECATED">Temp disable</issueId>
21+
</skip>
1922
<testCaseId value="CABPI-186"/>
2023
</annotations>
2124
<before>

app/code/Magento/AdminAdobeIms/Test/Mftf/Test/AdminSignInWithAdobeIdTest.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
<severity value="CRITICAL"/>
1717
<group value="admin_ims"/>
1818
<testCaseId value="CABPI-102"/>
19+
<skip>
20+
<issueId value="DEPRECATED">Temp disable</issueId>
21+
</skip>
1922
</annotations>
2023
<before>
2124
<actionGroup ref="AdminEnableAdobeImsActionGroup" stepKey="enableAdminAdobeImsModule" />

app/code/Magento/AdminAdobeIms/Test/Mftf/Test/CallbackWithoutCodeRedirectsToAdminLoginTest.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
<description value="ImsCallback Controller redirects to admin login when no code is given"/>
1616
<severity value="CRITICAL"/>
1717
<group value="admin_ims"/>
18+
<skip>
19+
<issueId value="DEPRECATED">Temp disable</issueId>
20+
</skip>
1821
<testCaseId value="CABPI-205"/>
1922
</annotations>
2023
<before>

app/code/Magento/AdminAdobeIms/Test/Mftf/Test/CreateNewUserWithoutPasswordTest.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
<description value="Create a new admin user without password when AdminAdobeImsModule is enabled"/>
1616
<severity value="CRITICAL"/>
1717
<group value="admin_ims"/>
18+
<skip>
19+
<issueId value="DEPRECATED">Temp disable</issueId>
20+
</skip>
1821
<testCaseId value="CABPI-227"/>
1922
</annotations>
2023
<before>

app/code/Magento/AdminAdobeIms/etc/webapi_rest/di.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<argument name="userContexts" xsi:type="array">
1212
<item name="adobeImsTokenUserContext" xsi:type="array">
1313
<item name="type" xsi:type="object">Magento\AdminAdobeIms\Model\Authorization\AdobeImsTokenUserContext</item>
14-
<item name="sortOrder" xsi:type="string">5</item>
14+
<item name="sortOrder" xsi:type="string">90</item>
1515
</item>
1616
</argument>
1717
</arguments>

app/code/Magento/AdminAdobeIms/etc/webapi_soap/di.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<argument name="userContexts" xsi:type="array">
1212
<item name="adobeImsTokenUserContext" xsi:type="array">
1313
<item name="type" xsi:type="object">Magento\AdminAdobeIms\Model\Authorization\AdobeImsTokenUserContext</item>
14-
<item name="sortOrder" xsi:type="string">3</item>
14+
<item name="sortOrder" xsi:type="string">90</item>
1515
</item>
1616
</argument>
1717
</arguments>

app/code/Magento/Captcha/Observer/ResetAttemptForBackendObserver.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
*/
66
namespace Magento\Captcha\Observer;
77

8-
use Magento\Captcha\Model\ResourceModel\Log;
98
use Magento\Captcha\Model\ResourceModel\LogFactory;
109
use Magento\Framework\Event\Observer;
1110
use Magento\Framework\Event\ObserverInterface;
@@ -34,11 +33,11 @@ public function __construct(
3433
* Reset Attempts For Backend
3534
*
3635
* @param Observer $observer
37-
* @return Log
36+
* @return void
3837
* @throws LocalizedException
3938
*/
4039
public function execute(Observer $observer)
4140
{
42-
return $this->resLogFactory->create()->deleteUserAttempts($observer->getUser()->getUsername());
41+
$this->resLogFactory->create()->deleteUserAttempts($observer->getUser()->getUsername());
4342
}
4443
}

app/code/Magento/Captcha/Test/Unit/Observer/ResetAttemptForBackendObserverTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@ public function testExecuteExpectsDeleteUserAttemptsCalled()
5151
ResetAttemptForBackendObserver::class,
5252
['resLogFactory' => $resLogFactoryMock]
5353
);
54-
$this->assertInstanceOf(Log::class, $observer->execute($eventObserverMock));
54+
$observer->execute($eventObserverMock);
5555
}
5656
}

app/code/Magento/Catalog/Block/Product/Compare/ListCompare.php

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ class ListCompare extends \Magento\Catalog\Block\Product\AbstractProduct
4040
protected $_useLinkForAsLowAs = false;
4141

4242
/**
43-
* Customer id
44-
*
4543
* @var null|int
4644
*/
4745
protected $_customerId = null;
@@ -52,22 +50,16 @@ class ListCompare extends \Magento\Catalog\Block\Product\AbstractProduct
5250
protected $httpContext;
5351

5452
/**
55-
* Customer visitor
56-
*
5753
* @var \Magento\Customer\Model\Visitor
5854
*/
5955
protected $_customerVisitor;
6056

6157
/**
62-
* Catalog product visibility
63-
*
6458
* @var \Magento\Catalog\Model\Product\Visibility
6559
*/
6660
protected $_catalogProductVisibility;
6761

6862
/**
69-
* Item collection factory
70-
*
7163
* @var \Magento\Catalog\Model\ResourceModel\Product\Compare\Item\CollectionFactory
7264
*/
7365
protected $_itemCollectionFactory;
@@ -205,6 +197,9 @@ public function getProductAttributeValue($product, $attribute)
205197
} else {
206198
$value = $product->getData($attribute->getAttributeCode());
207199
}
200+
if (is_array($value)) {
201+
return __('N/A');
202+
}
208203
return (string)$value == '' ? __('No') : $value;
209204
}
210205

0 commit comments

Comments
 (0)