Skip to content

Commit 7ead0dc

Browse files
authored
Merge pull request #9359 from magento-gl/comprs_nov
[Bluetooth] Community Pull Requests delivery Nov-2
2 parents 03d2a1b + bae2e88 commit 7ead0dc

File tree

52 files changed

+906
-405
lines changed

Some content is hidden

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

52 files changed

+906
-405
lines changed

app/code/Magento/Backend/Console/Command/MaintenanceAllowIpsCommand.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2015 Adobe
4+
* All Rights Reserved.
55
*/
66
namespace Magento\Backend\Console\Command;
77

@@ -22,9 +22,10 @@ class MaintenanceAllowIpsCommand extends AbstractSetupCommand
2222
/**
2323
* Names of input arguments or options
2424
*/
25-
const INPUT_KEY_IP = 'ip';
26-
const INPUT_KEY_NONE = 'none';
27-
const INPUT_KEY_ADD = 'add';
25+
public const INPUT_KEY_IP = 'ip';
26+
public const INPUT_KEY_NONE = 'none';
27+
public const INPUT_KEY_ADD = 'add';
28+
public const NAME = 'maintenance:allow-ips';
2829

2930
/**
3031
* @var MaintenanceMode
@@ -76,7 +77,7 @@ protected function configure(): void
7677
'Add the IP address to existing list'
7778
),
7879
];
79-
$this->setName('maintenance:allow-ips')
80+
$this->setName(self::NAME)
8081
->setDescription('Sets maintenance mode exempt IPs')
8182
->setDefinition(array_merge($arguments, $options));
8283

app/code/Magento/Backend/Console/Command/MaintenanceDisableCommand.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2015 Adobe
4+
* All Rights Reserved.
55
*/
66
namespace Magento\Backend\Console\Command;
77

@@ -10,14 +10,16 @@
1010
*/
1111
class MaintenanceDisableCommand extends AbstractMaintenanceCommand
1212
{
13+
public const NAME = 'maintenance:disable';
14+
1315
/**
1416
* Initialization of the command
1517
*
1618
* @return void
1719
*/
1820
protected function configure()
1921
{
20-
$this->setName('maintenance:disable')->setDescription('Disables maintenance mode');
22+
$this->setName(self::NAME)->setDescription('Disables maintenance mode');
2123

2224
parent::configure();
2325
}

app/code/Magento/Backend/Console/Command/MaintenanceEnableCommand.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2015 Adobe
4+
* All Rights Reserved.
55
*/
66
namespace Magento\Backend\Console\Command;
77

@@ -10,14 +10,16 @@
1010
*/
1111
class MaintenanceEnableCommand extends AbstractMaintenanceCommand
1212
{
13+
public const NAME = 'maintenance:enable';
14+
1315
/**
1416
* Initialization of the command
1517
*
1618
* @return void
1719
*/
1820
protected function configure(): void
1921
{
20-
$this->setName('maintenance:enable')->setDescription('Enables maintenance mode');
22+
$this->setName(self::NAME)->setDescription('Enables maintenance mode');
2123

2224
parent::configure();
2325
}

app/code/Magento/Backend/Console/Command/MaintenanceStatusCommand.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2015 Adobe
4+
* All Rights Reserved.
55
*/
66
namespace Magento\Backend\Console\Command;
77

@@ -16,6 +16,8 @@
1616
*/
1717
class MaintenanceStatusCommand extends AbstractSetupCommand
1818
{
19+
public const NAME = 'maintenance:status';
20+
1921
/**
2022
* @var MaintenanceMode $maintenanceMode
2123
*/
@@ -40,7 +42,7 @@ public function __construct(MaintenanceMode $maintenanceMode)
4042
*/
4143
protected function configure(): void
4244
{
43-
$this->setName('maintenance:status')
45+
$this->setName(self::NAME)
4446
->setDescription('Displays maintenance mode status');
4547

4648
parent::configure();

app/code/Magento/Catalog/etc/di.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,11 @@
554554
<type name="Magento\Catalog\Model\ResourceModel\Config">
555555
<plugin name="productListingAttributesCaching" type="Magento\Catalog\Plugin\Model\ResourceModel\Config" />
556556
</type>
557+
<type name="Magento\Catalog\Plugin\Model\ResourceModel\Config">
558+
<arguments>
559+
<argument name="cache" xsi:type="object">configured_eav_cache</argument>
560+
</arguments>
561+
</type>
557562
<preference for="Magento\Catalog\Api\ProductLinkTypeListInterface" type="Magento\Catalog\Model\Product\LinkTypeProvider" />
558563
<preference for="Magento\Catalog\Api\Data\ProductLinkAttributeInterface" type="Magento\Catalog\Model\ProductLink\Attribute" />
559564
<preference for="Magento\Catalog\Api\Data\ProductLinkTypeInterface" type="Magento\Catalog\Model\ProductLink\Type" />

app/code/Magento/SalesRule/Model/Validator.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2013 Adobe
4+
* All Rights Reserved.
55
*/
66

77
namespace Magento\SalesRule\Model;
@@ -745,8 +745,9 @@ public function sortItemsByPriority($items, Address $address = null)
745745
$itemsSorted = [];
746746
/** @var $rule Rule */
747747
foreach ($this->getRules($address) as $rule) {
748+
$actions = $rule->getActions();
748749
foreach ($items as $itemKey => $itemValue) {
749-
if ($rule->getActions()->validate($itemValue)) {
750+
if ($actions->validate($itemValue)) {
750751
unset($items[$itemKey]);
751752
$itemsSorted[] = $itemValue;
752753
}

app/code/Magento/Ui/view/base/web/js/core/renderer/layout.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,10 @@ define([
118118
component: node.component
119119
});
120120
loaded.resolve(node, constr);
121-
}, function () {
121+
}, function (err) {
122122
consoleLogger.error('componentLoadingFail', {
123-
component: node.component
123+
component: node.component,
124+
errorMsg: err
124125
});
125126
});
126127

app/code/Magento/Ui/view/base/web/js/lib/logger/formatter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ define([
1818
* @protected
1919
* @type {String}
2020
*/
21-
this.dateFormat_ = 'YYYY-MM-DD hh:mm:ss';
21+
this.dateFormat_ = 'YYYY-MM-DD HH:mm:ssZ';
2222

2323
/**
2424
* @protected

app/code/Magento/Ui/view/base/web/js/lib/logger/message-pool.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ define(function () {
1818
'Component "${$.component}" start initialization with instance name "${$.componentName}".',
1919
componentStartLoading: ' Started loading the "${$.component}" component.',
2020
componentFinishLoading: 'The "${$.component}" component was loaded.',
21-
componentLoadingFail: 'Failed to load the "${$.component}" component.',
21+
componentLoadingFail: 'Failed to load the "${$.component}" component. Due to "${$.errorMsg}"',
2222
depsLoadingFail: 'Could not get the declared "${$.deps}" dependency for the "${$.component}" instance.',
2323
depsStartRequesting: 'Requesting the "${$.deps}" dependency for the "${$.component}" instance.',
2424
depsFinishRequesting: 'The "${$.deps}" dependency for the "${$.component}" instance was received.',

app/design/frontend/Magento/luma/Magento_Checkout/web/css/source/module/checkout/_progress-bar.less

Lines changed: 38 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,16 @@
1010
@checkout-progress-bar__font-size: 18px;
1111
@checkout-progress-bar__font-weight: @font-weight__light;
1212
@checkout-progress-bar__margin: @indent__base;
13+
@checkout-progress-bar__margin__mobile: 30px;
1314

1415
@checkout-progress-bar-item__background-color: @color-gray-middle1;
1516
@checkout-progress-bar-item__border-radius: 6px;
1617
@checkout-progress-bar-item__color: @color-gray40;
1718
@checkout-progress-bar-item__margin: @indent__s;
1819
@checkout-progress-bar-item__transition: background .3s;
1920
@checkout-progress-bar-item__width: 185px;
21+
@checkout-progress-bar-item__width__mobile: 165px;
22+
@checkout-progress-bar-item__width__mobile_small: 125px;
2023

2124
@checkout-progress-bar-item__active__background-color: @active__color;
2225
@checkout-progress-bar-item__active__color: @primary__color;
@@ -51,13 +54,6 @@
5154
&:extend(.abs-reset-list all);
5255
display: none;
5356
}
54-
}
55-
56-
//
57-
// Desktop
58-
// _____________________________________________
59-
60-
.media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
6157

6258
.opc-progress-bar {
6359
.lib-css(margin, 0 0 @checkout-progress-bar__margin);
@@ -105,12 +101,12 @@
105101
word-wrap: break-word;
106102

107103
.lib-typography(
108-
@_color: @checkout-progress-bar-item__color,
109-
@_font-family: false,
110-
@_font-size: @checkout-progress-bar__font-size,
111-
@_font-style: false,
112-
@_font-weight: @checkout-progress-bar__font-weight,
113-
@_line-height: false
104+
@_color: @checkout-progress-bar-item__color,
105+
@_font-family: false,
106+
@_font-size: @checkout-progress-bar__font-size,
107+
@_font-style: false,
108+
@_font-weight: @checkout-progress-bar__font-weight,
109+
@_line-height: false
114110
);
115111

116112
&:before, // Item element
@@ -137,12 +133,12 @@
137133
content: counter(i);
138134
counter-increment: i;
139135
.lib-typography(
140-
@_color: @checkout-progress-bar-item-element-inner__color,
141-
@_font-family: false,
142-
@_font-size: @checkout-progress-bar__font-size,
143-
@_font-style: false,
144-
@_font-weight: @font-weight__semibold,
145-
@_line-height: false
136+
@_color: @checkout-progress-bar-item-element-inner__color,
137+
@_font-family: false,
138+
@_font-size: @checkout-progress-bar__font-size,
139+
@_font-style: false,
140+
@_font-weight: @font-weight__semibold,
141+
@_line-height: false
146142
);
147143
}
148144
}
@@ -196,3 +192,26 @@
196192
}
197193
}
198194
}
195+
196+
//
197+
// Mobile normal screen
198+
//
199+
.media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__s) {
200+
.opc-progress-bar {
201+
.lib-css(margin, 0 0 @checkout-progress-bar__margin__mobile);
202+
counter-reset: i; display: block; font-size: 0;
203+
}
204+
205+
.opc-progress-bar-item {
206+
.lib-css(width, @checkout-progress-bar-item__width__mobile);
207+
}
208+
}
209+
210+
//
211+
// Mobile with extra small screen size
212+
//
213+
.media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__xs) {
214+
.opc-progress-bar-item {
215+
.lib-css(width, @checkout-progress-bar-item__width__mobile_small);
216+
}
217+
}

0 commit comments

Comments
 (0)