Skip to content

Commit 5a022f6

Browse files
Merge pull request #7916 from magento-gl/Hammer_PlatForm_Health_246_Scope_29092022
[Hammer]_Platform_Health_246_Scope_29092022
2 parents 6057eb8 + 742fcda commit 5a022f6

File tree

19 files changed

+3488
-8403
lines changed

19 files changed

+3488
-8403
lines changed

app/code/Magento/Backend/view/adminhtml/web/js/dashboard/chart.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ define([
99
'chartJs',
1010
'jquery-ui-modules/widget',
1111
'chartjs/chartjs-adapter-moment',
12+
'chartjs/es6-shim.min',
1213
'moment'
1314
], function ($, Chart) {
1415
'use strict';

app/code/Magento/CheckoutAgreements/Test/Mftf/Test/AdminDeleteActiveTextTermEntityTest.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
<group value="mtf_migrated"/>
2121
</annotations>
2222
<before>
23+
<magentoCLI command="config:set {{EnableFlatRateConfigData.path}} {{EnableFlatRateConfigData.value}}" stepKey="enableFlatRate"/>
2324
<magentoCLI command="config:set checkout/options/enable_agreements 1" stepKey="setEnableTermsOnCheckout"/>
2425
<actionGroup ref="AdminLoginActionGroup" stepKey="LoginAsAdmin" />
2526
<createData entity="SimpleTwo" stepKey="createdProduct"/>
@@ -30,6 +31,8 @@
3031
<actionGroup ref="AdminTermsConditionsSaveTermActionGroup" stepKey="saveNewTerm"/>
3132
</before>
3233
<after>
34+
<!-- Disable shipping method for customer with default address -->
35+
<magentoCLI command="config:set {{DisableFlatRateConfigData.path}} {{DisableFlatRateConfigData.value}}" stepKey="disableFlatRate"/>
3336
<magentoCLI command="config:set checkout/options/enable_agreements 0" stepKey="setDisableTermsOnCheckout"/>
3437
<deleteData createDataKey="createdProduct" stepKey="deletedProduct"/>
3538
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>

app/code/Magento/Swatches/view/adminhtml/web/js/form/element/swatch-visual.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ define([
240240
};
241241

242242
swatchComponents.iframe.off('load');
243-
swatchComponents.iframe.load(iframeHandler);
243+
swatchComponents.iframe.on('load', iframeHandler);
244244
swatchComponents.form.submit();
245245
$(this).val('');
246246
});

app/code/Magento/Swatches/view/adminhtml/web/js/visual.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ define([
374374
};
375375

376376
swatchComponents.iframe.off('load');
377-
swatchComponents.iframe.load(iframeHandler);
377+
swatchComponents.iframe.on('load', iframeHandler);
378378
swatchComponents.form.submit();
379379
$(this).val('');
380380
});

app/code/Magento/Theme/view/base/requirejs-config.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ var config = {
5252
}
5353
},
5454
shim: {
55-
'jquery/jquery-migrate': ['jquery'],
5655
'mage/adminhtml/backup': ['prototype'],
5756
'mage/captcha': ['prototype'],
5857
'mage/new-gallery': ['jquery'],
@@ -76,9 +75,6 @@ var config = {
7675
'tinycolor': 'jquery/spectrum/tinycolor',
7776
'jquery-ui-modules': 'jquery/ui-modules'
7877
},
79-
deps: [
80-
'jquery/jquery-migrate'
81-
],
8278
config: {
8379
text: {
8480
'headers': {

app/code/Magento/Ui/view/base/requirejs-config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ var config = {
77
deps: [],
88
shim: {
99
'chartjs/chartjs-adapter-moment': ['moment'],
10+
'chartjs/es6-shim.min': {},
1011
'tiny_mce_5/tinymce.min': {
1112
exports: 'tinyMCE'
1213
}

app/code/Magento/Ui/view/base/web/js/grid/columns/image-preview.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ define([
169169
* Update image data when image preview is opened
170170
*/
171171
updateImageData: function () {
172-
var img = $(this.previewImageSelector + ' img');
172+
var img = $(this.previewImageSelector + ' img'), self;
173173

174174
if (!img.get(0)) {
175175
setTimeout(function () {
@@ -179,10 +179,12 @@ define([
179179
this.updateHeight();
180180
this.scrollToPreview();
181181
} else {
182-
img.load(function () {
183-
this.updateHeight();
184-
this.scrollToPreview();
185-
}.bind(this));
182+
self = this;
183+
184+
img.on('load', function () {
185+
self.updateHeight();
186+
self.scrollToPreview();
187+
});
186188
}
187189
},
188190

app/design/frontend/Magento/blank/etc/view.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@
261261
<exclude>
262262
<item type="file">Lib::chartjs/Chart.min.js</item>
263263
<item type="file">Lib::chartjs/chartjs-adapter-moment.js</item>
264+
<item type="file">Lib::chartjs/es6-shim.min.js</item>
264265
<item type="file">Lib::jquery/jquery.min.js</item>
265266
<item type="file">Lib::jquery/jquery-ui.js</item>
266267
<item type="file">Lib::jquery/colorpicker/js/colorpicker.js</item>

app/design/frontend/Magento/luma/etc/view.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@
272272
<exclude>
273273
<item type="file">Lib::chartjs/Chart.min.js</item>
274274
<item type="file">Lib::chartjs/chartjs-adapter-moment.js</item>
275+
<item type="file">Lib::chartjs/es6-shim.min.js</item>
275276
<item type="file">Lib::jquery/jquery.min.js</item>
276277
<item type="file">Lib::jquery/jquery-ui.js</item>
277278
<item type="file">Lib::jquery/colorpicker/js/colorpicker.js</item>

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,8 +347,7 @@
347347
"trentrichardson/jquery-timepicker-addon": "lib/web/jquery/jquery-ui-timepicker-addon.js",
348348
"components/jquery": [
349349
"lib/web/jquery.js",
350-
"lib/web/jquery/jquery.min.js",
351-
"lib/web/jquery/jquery-migrate.js"
350+
"lib/web/jquery/jquery.min.js"
352351
],
353352
"blueimp/jquery-file-upload": "lib/web/jquery/fileUploader",
354353
"components/jqueryui": [

dev/tests/integration/testsuite/Magento/Framework/Composer/ComposerInformationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function testGetRequiredPhpVersion($composerDir)
7979
['composerFactory' => $this->composerFactory]
8080
);
8181

82-
$this->assertEquals("~7.1.3||~7.2.0", $composerInfo->getRequiredPhpVersion());
82+
$this->assertEquals("~8.1.0", $composerInfo->getRequiredPhpVersion());
8383
}
8484

8585
/**

dev/tests/integration/testsuite/Magento/Framework/Composer/_files/testFromClone/composer.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"AFL-3.0"
88
],
99
"require": {
10-
"php": "~7.0.0||~8.0.0",
10+
"php": "~8.1.0",
1111
"ext-ctype": "*",
1212
"ext-curl": "*",
1313
"ext-dom": "*",
@@ -171,9 +171,7 @@
171171
"linkorb/jsmin-php": "lib/internal/JSMin",
172172
"components/jquery": [
173173
"lib/web/jquery.js",
174-
"lib/web/jquery/jquery.min.js",
175-
"lib/web/jquery/jquery-migrate.js",
176-
"lib/web/jquery/jquery-migrate.min.js"
174+
"lib/web/jquery/jquery.min.js"
177175
],
178176
"blueimp/jquery-file-upload": "lib/web/jquery/fileUploader",
179177
"components/jqueryui": [
@@ -187,6 +185,9 @@
187185
}
188186
},
189187
"config": {
188+
"allow-plugins": {
189+
"magento/*": true
190+
},
190191
"sort-packages": true,
191192
"use-include-path": true
192193
},

0 commit comments

Comments
 (0)