Skip to content

Commit c0c55ef

Browse files
Merge branch 2.3-develop into ENGCOM-4836-magento-magento2-22526
2 parents 6a672d9 + 93a8162 commit c0c55ef

File tree

72 files changed

+1901
-1125
lines changed

Some content is hidden

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

72 files changed

+1901
-1125
lines changed

app/code/Magento/CatalogGraphQl/etc/schema.graphqls

Lines changed: 0 additions & 178 deletions
Original file line numberDiff line numberDiff line change
@@ -16,179 +16,6 @@ type Query {
1616
@resolver(class: "Magento\\CatalogGraphQl\\Model\\Resolver\\CategoryTree") @doc(description: "The category query searches for categories that match the criteria specified in the search and filter attributes") @cache(cacheTag: "cat_c", cacheIdentity: "Magento\\CatalogGraphQl\\Model\\Resolver\\Category\\CategoryTreeIdentity")
1717
}
1818

19-
enum CurrencyEnum @doc(description: "The list of available currency codes") {
20-
AFN
21-
ALL
22-
AZN
23-
DZD
24-
AOA
25-
ARS
26-
AMD
27-
AWG
28-
AUD
29-
BSD
30-
BHD
31-
BDT
32-
BBD
33-
BYR
34-
BZD
35-
BMD
36-
BTN
37-
BOB
38-
BAM
39-
BWP
40-
BRL
41-
GBP
42-
BND
43-
BGN
44-
BUK
45-
BIF
46-
KHR
47-
CAD
48-
CVE
49-
CZK
50-
KYD
51-
GQE
52-
CLP
53-
CNY
54-
COP
55-
KMF
56-
CDF
57-
CRC
58-
HRK
59-
CUP
60-
DKK
61-
DJF
62-
DOP
63-
XCD
64-
EGP
65-
SVC
66-
ERN
67-
EEK
68-
ETB
69-
EUR
70-
FKP
71-
FJD
72-
GMD
73-
GEK
74-
GEL
75-
GHS
76-
GIP
77-
GTQ
78-
GNF
79-
GYD
80-
HTG
81-
HNL
82-
HKD
83-
HUF
84-
ISK
85-
INR
86-
IDR
87-
IRR
88-
IQD
89-
ILS
90-
JMD
91-
JPY
92-
JOD
93-
KZT
94-
KES
95-
KWD
96-
KGS
97-
LAK
98-
LVL
99-
LBP
100-
LSL
101-
LRD
102-
LYD
103-
LTL
104-
MOP
105-
MKD
106-
MGA
107-
MWK
108-
MYR
109-
MVR
110-
LSM
111-
MRO
112-
MUR
113-
MXN
114-
MDL
115-
MNT
116-
MAD
117-
MZN
118-
MMK
119-
NAD
120-
NPR
121-
ANG
122-
YTL
123-
NZD
124-
NIC
125-
NGN
126-
KPW
127-
NOK
128-
OMR
129-
PKR
130-
PAB
131-
PGK
132-
PYG
133-
PEN
134-
PHP
135-
PLN
136-
QAR
137-
RHD
138-
RON
139-
RUB
140-
RWF
141-
SHP
142-
STD
143-
SAR
144-
RSD
145-
SCR
146-
SLL
147-
SGD
148-
SKK
149-
SBD
150-
SOS
151-
ZAR
152-
KRW
153-
LKR
154-
SDG
155-
SRD
156-
SZL
157-
SEK
158-
CHF
159-
SYP
160-
TWD
161-
TJS
162-
TZS
163-
THB
164-
TOP
165-
TTD
166-
TND
167-
TMM
168-
USD
169-
UGX
170-
UAH
171-
AED
172-
UYU
173-
UZS
174-
VUV
175-
VEB
176-
VEF
177-
VND
178-
CHE
179-
CHW
180-
XOF
181-
WST
182-
YER
183-
ZMK
184-
ZWD
185-
TRY
186-
AZM
187-
ROL
188-
TRL
189-
XPF
190-
}
191-
19219
type Price @doc(description: "The Price object defines the price of a product as well as any tax-related adjustments.") {
19320
amount: Money @doc(description: "The price of a product plus a three-letter currency code")
19421
adjustments: [PriceAdjustment] @doc(description: "An array that provides information about tax, weee, or weee_tax adjustments")
@@ -214,11 +41,6 @@ enum PriceTypeEnum @doc(description: "This enumeration the price type.") {
21441
DYNAMIC
21542
}
21643

217-
type Money @doc(description: "A Money object defines a monetary value, including a numeric value and a currency code.") {
218-
value: Float @doc(description: "A number expressing a monetary value")
219-
currency: CurrencyEnum @doc(description: "A three-letter currency code, such as USD or EUR")
220-
}
221-
22244
type ProductPrices @doc(description: "The ProductPrices object contains the regular price of an item, as well as its minimum and maximum prices. Only composite products, which include bundle, configurable, and grouped products, can contain a minimum and maximum price.") {
22345
minimalPrice: Price @doc(description: "The lowest possible final price for all the options defined within a composite product. If you are specifying a price range, this would be the from value.")
22446
maximalPrice: Price @doc(description: "The highest possible final price for all the options defined within a composite product. If you are specifying a price range, this would be the to value.")

app/code/Magento/Checkout/view/frontend/web/js/view/payment.js

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,21 @@ define([
6666
navigate: function () {
6767
var self = this;
6868

69-
getPaymentInformation().done(function () {
70-
self.isVisible(true);
71-
});
69+
if (!self.hasShippingMethod()) {
70+
this.isVisible(false);
71+
stepNavigator.setHash('shipping');
72+
} else {
73+
getPaymentInformation().done(function () {
74+
self.isVisible(true);
75+
});
76+
}
77+
},
78+
79+
/**
80+
* @return {Boolean}
81+
*/
82+
hasShippingMethod: function () {
83+
return window.checkoutConfig.selectedShippingMethod !== null;
7284
},
7385

7486
/**

app/code/Magento/Config/Model/Config/Source/Locale/Currency.php

Lines changed: 55 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,15 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
/**
8-
* Locale currency source
9-
*/
107
namespace Magento\Config\Model\Config\Source\Locale;
118

9+
use Magento\Framework\App\Config\ScopeConfigInterface;
10+
use Magento\Framework\App\ObjectManager;
11+
use Magento\Framework\Locale\ListsInterface;
12+
1213
/**
14+
* Locale currency source.
15+
*
1316
* @api
1417
* @since 100.0.2
1518
*/
@@ -21,27 +24,70 @@ class Currency implements \Magento\Framework\Option\ArrayInterface
2124
protected $_options;
2225

2326
/**
24-
* @var \Magento\Framework\Locale\ListsInterface
27+
* @var ListsInterface
2528
*/
2629
protected $_localeLists;
2730

2831
/**
29-
* @param \Magento\Framework\Locale\ListsInterface $localeLists
32+
* @var ScopeConfigInterface
3033
*/
31-
public function __construct(\Magento\Framework\Locale\ListsInterface $localeLists)
32-
{
34+
private $config;
35+
36+
/**
37+
* @var array
38+
*/
39+
private $installedCurrencies;
40+
41+
/**
42+
* @param ListsInterface $localeLists
43+
* @param ScopeConfigInterface $config
44+
*/
45+
public function __construct(
46+
ListsInterface $localeLists,
47+
ScopeConfigInterface $config = null
48+
) {
3349
$this->_localeLists = $localeLists;
50+
$this->config = $config ?: ObjectManager::getInstance()->get(ScopeConfigInterface::class);
3451
}
3552

3653
/**
37-
* @return array
54+
* @inheritdoc
3855
*/
3956
public function toOptionArray()
4057
{
4158
if (!$this->_options) {
4259
$this->_options = $this->_localeLists->getOptionCurrencies();
4360
}
44-
$options = $this->_options;
61+
62+
$selected = array_flip($this->getInstalledCurrencies());
63+
64+
$options = array_filter(
65+
$this->_options,
66+
function ($option) use ($selected) {
67+
return isset($selected[$option['value']]);
68+
}
69+
);
70+
4571
return $options;
4672
}
73+
74+
/**
75+
* Retrieve Installed Currencies.
76+
*
77+
* @return array
78+
*/
79+
private function getInstalledCurrencies()
80+
{
81+
if (!$this->installedCurrencies) {
82+
$this->installedCurrencies = explode(
83+
',',
84+
$this->config->getValue(
85+
'system/currency/installed',
86+
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
87+
)
88+
);
89+
}
90+
91+
return $this->installedCurrencies;
92+
}
4793
}

app/code/Magento/ConfigurableProduct/Test/Mftf/Test/AdminCreateAndSwitchProductType.xml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,6 @@
5353
<testCaseId value="MC-10930"/>
5454
<group value="catalog"/>
5555
<group value="mtf_migrated"/>
56-
<skip>
57-
<issueId value="MSI-2110"/>
58-
</skip>
5956
</annotations>
6057
<before>
6158
<createData entity="productAttributeWithTwoOptions" stepKey="createConfigProductAttribute"/>
@@ -93,10 +90,6 @@
9390
<useCaseId value="MAGETWO-44165"/>
9491
<testCaseId value="MAGETWO-29398"/>
9592
<group value="catalog"/>
96-
<group value="mtf_migrated"/>
97-
<skip>
98-
<issueId value="MSI-2110"/>
99-
</skip>
10093
</annotations>
10194
<before>
10295
<createData entity="productAttributeWithTwoOptions" stepKey="createConfigProductAttribute"/>
@@ -139,9 +132,6 @@
139132
<testCaseId value="MAGETWO-29398"/>
140133
<group value="catalog"/>
141134
<group value="mtf_migrated"/>
142-
<skip>
143-
<issueId value="MSI-2110"/>
144-
</skip>
145135
</annotations>
146136
<before>
147137
<createData entity="_defaultCategory" stepKey="createPreReqCategory"/>

app/code/Magento/Customer/Model/Customer/DataProviderWithDefaultAddresses.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ class DataProviderWithDefaultAddresses extends \Magento\Ui\DataProvider\Abstract
3939
private static $forbiddenCustomerFields = [
4040
'password_hash',
4141
'rp_token',
42-
'confirmation',
4342
];
4443

4544
/**

app/code/Magento/Customer/Test/Mftf/ActionGroup/AdminEditCustomerAddressesFromActionGroup.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,13 @@
3939
<click selector="{{AdminEditCustomerAddressesSection.defaultBillingAddressButton}}" stepKey="setDefaultBilling" before="setDefaultShipping"/>
4040
<click selector="{{AdminEditCustomerAddressesSection.defaultShippingAddressButton}}" stepKey="setDefaultShipping" before="fillPrefixName"/>
4141
</actionGroup>
42+
<actionGroup name="SelectDropdownCustomerAddressAttributeValueActionGroup">
43+
<arguments>
44+
<argument name="customerAddressAttribute"/>
45+
<argument name="optionValue" type="string"/>
46+
</arguments>
47+
<selectOption selector="{{AdminEditCustomerAddressesSection.dropDownAttribute(customerAddressAttribute.code)}}" userInput="{{optionValue}}" stepKey="selectOptionValue"/>
48+
<click selector="{{AdminEditCustomerAddressesSection.save}}" stepKey="saveAddress"/>
49+
<waitForPageLoad stepKey="waitForAddressSaved"/>
50+
</actionGroup>
4251
</actionGroups>

app/code/Magento/Customer/Test/Mftf/Data/CustomerData.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,4 +216,18 @@
216216
<data key="store_id">0</data>
217217
<data key="website_id">0</data>
218218
</entity>
219+
<entity name="Simple_US_Customer_Two_Addresses" type="customer">
220+
<data key="group_id">0</data>
221+
<data key="default_billing">true</data>
222+
<data key="default_shipping">true</data>
223+
<data key="email" unique="prefix">John.Doe@example.com</data>
224+
<data key="firstname">John</data>
225+
<data key="lastname">Doe</data>
226+
<data key="fullname">John Doe</data>
227+
<data key="password">pwdTest123!</data>
228+
<data key="store_id">0</data>
229+
<data key="website_id">0</data>
230+
<requiredEntity type="address">US_Address_TX</requiredEntity>
231+
<requiredEntity type="address">US_Address_NY_Not_Default_Address</requiredEntity>
232+
</entity>
219233
</entities>

app/code/Magento/Customer/Test/Mftf/Section/AdminEditCustomerAddressesSection.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
<element name="city" type="text" selector="//*[@class='modal-component']//input[@name='city']" />
2626
<element name="country" type="select" selector="//*[@class='modal-component']//select[@name='country_id']" />
2727
<element name="state" type="select" selector="//*[@class='modal-component']//select[@name='region_id']" />
28+
<element name="dropDownAttribute" type="select" selector="//select[@name='{{var1}}']" parameterized="true"/>
2829
<element name="zipCode" type="text" selector="//*[@class='modal-component']//input[@name='postcode']" />
2930
<element name="phone" type="text" selector="//*[@class='modal-component']//input[@name='telephone']" />
3031
<element name="vat" type="text" selector="input[name='vat_id']" />

0 commit comments

Comments
 (0)