Skip to content
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

Merged
merged 50 commits into from
May 14, 2024
Merged

Remove jQuery dependency #1756

merged 50 commits into from
May 14, 2024

Conversation

aestoltm
Copy link
Contributor

@aestoltm aestoltm commented Aug 9, 2023

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:

  • The pull request description is suitable for a Changelog entry
  • The milestone is set correctly on the pull request
  • The appropriate labels have been added to the pull request

@aestoltm aestoltm added the maintenance / code quality Improvements and code cleanup. Not a new feature or enhancement to existing functionality. label Aug 9, 2023
@aestoltm aestoltm self-assigned this Aug 9, 2023
@aestoltm aestoltm added this to the 11.0.0 milestone Aug 10, 2023
aestoltm and others added 13 commits October 11, 2023 15:34
* 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.
@aestoltm aestoltm changed the base branch from xdmod10.5 to xdmod11.0 October 11, 2023 20:02
@aestoltm aestoltm marked this pull request as draft February 13, 2024 15:36
@aestoltm aestoltm marked this pull request as ready for review May 8, 2024 21:28
@aestoltm aestoltm requested a review from jpwhite4 May 10, 2024 15:23
html/gui/js/modules/Summary.js Show resolved Hide resolved
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);
Copy link
Member

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.

@@ -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);
Copy link
Member

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;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
var found = false;
let found = false;

@ryanrath ryanrath mentioned this pull request May 10, 2024
3 tasks
@aestoltm aestoltm requested a review from jpwhite4 May 10, 2024 19:16
@aestoltm aestoltm added the dependencies Pull requests that update a dependency file label May 14, 2024
@aestoltm aestoltm merged commit 14a6d2e into ubccr:xdmod11.0 May 14, 2024
4 checks passed
@aestoltm aestoltm mentioned this pull request May 15, 2024
3 tasks
@aestoltm aestoltm deleted the replace_jquery branch May 16, 2024 17:59
@aestoltm aestoltm mentioned this pull request May 30, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file maintenance / code quality Improvements and code cleanup. Not a new feature or enhancement to existing functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants