-
Notifications
You must be signed in to change notification settings - Fork 68
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
Remove jQuery dependency #1756
Remove jQuery dependency #1756
Conversation
* Updating XDMoD to 11.0 Version Number Updates This commit contains the changes required to bring XDMoD up to 11.0 and includes: - Updated `xdmod-upgrade` $supportedUpgrades to 10.5.0 -> 11.0.0 - Removed all the previous ConfigFileMigration classes for the 10.X.X releases of XDMoD. - Updated `portal_settings.ini` version = 11.0.0 - Updated `docs/_config.yml` [sw|prev_sw]_version to 10.5.0 and 11.0.0 - Updated build.json version number to 11.0.0 - Added a Version1050To1100 ConfigFilesMigration.php - Added an ETL xdmod-migration-10_5_0-11_0_0 migration file. - Also updated the docker image used for building to xdmod10.5 * Removing el7 composer files Since we no longer support el7 w/ this release I've removed the el7 composer files and renamed the el8 files to just composer.json. I've also updated the circleci config file to take this change into account.
html/gui/js/modules/Usage.js
Outdated
chartOptions.exporting.enabled = false; | ||
chartOptions.credits.enabled = true; | ||
|
||
this.chart = XDMoD.utils.createChart(chartOptions); | ||
this.chartId = id; | ||
this.chartOptions = chartOptions; | ||
var chartDiv = document.getElementById(baseChartOptions.renderTo); | ||
var chartDiv = document.getElementById(chartOptions.renderTo); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please can you double check that this should be changed here.
html/gui/js/modules/Usage.js
Outdated
@@ -1510,7 +1510,7 @@ Ext.extend(XDMoD.Module.Usage, XDMoD.PortalModule, { | |||
if (chartRecords.length > 0) { | |||
chartOptions = chartRecords[0].get('hc_jsonstore'); | |||
} | |||
jQuery.extend(true, chartOptions, baseChartOptions); | |||
chartOptions = XDMoD.utils.deepExtend({}, baseChartOptions, chartOptions); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The function arguments are in a different order here. Please can you check this is intended (elsewhere you have kept the same order).
found = false; | ||
for (var i = 0; i < filters.length; i++) { | ||
var filters = XDMoD.utils.deepExtend({}, record.get('filters')); | ||
var found = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
var found = false; | |
let found = false; |
Description
Removing jQuery dependency by replacing
jQuery.extend()
with solutions provided with modern browsers. This PR is a continuation of PR #1542.Dependent on PR #1785 so qa-tests will not receive a parsing error on arrow syntax.
Motivation and Context
jQuery is a large dependency that we use very sparingly.
Tests performed
Checklist: