Skip to content

Upgrade Developer portal's default template to jQuery 3.7.1#4348

Open
josemigallas wants to merge 5 commits into
masterfrom
THREESCALE-15551_dev_portal_jquery
Open

Upgrade Developer portal's default template to jQuery 3.7.1#4348
josemigallas wants to merge 5 commits into
masterfrom
THREESCALE-15551_dev_portal_jquery

Conversation

@josemigallas

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

I really doesn't do much. It changes the jQuery version for any new Developer portals but also makes 3.7.1 available for manual upgrade of existing ones.

Which issue(s) this PR fixes

THREESCALE-15551: Upgrade Developer Portal to jQuery 3.7.x

Verification steps

  1. Create a new tenant
  2. Visit Developer portal
  3. Open the browser's console and issue jQuery().jquery.

Special notes for your reviewer:
This has zero impact on production or existing accounts.

@josemigallas
josemigallas requested a review from a team July 16, 2026 10:26
@josemigallas josemigallas self-assigned this Jul 16, 2026
@qltysh

qltysh Bot commented Jul 16, 2026

Copy link
Copy Markdown

❌ 61 blocking issues (63 total)

Tool Category Rule Count
eslint Lint Unsafe call of an any typed value. 30
eslint Lint Unsafe member access .serialize on an any value. 21
eslint Lint Unsafe assignment of an any value. 7
eslint Lint Unsafe argument of type any assigned to a parameter of type string. 2
eslint Lint Unsafe return of an any typed value. 1
qlty Structure Function with many returns (count = 4): jQueryMock 1
qlty Structure Function with high complexity (count = 11): jQueryMock 1

// url address might already include some parameters
const connector = url.includes('?') ? '&' : '?'
let href = url.concat(connector, jquery1('table tbody .select :checked').serialize())
let href = url.concat(connector, $('table tbody .select :checked').serialize())

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Found 4 issues:

1. Unsafe argument of type any assigned to a parameter of type string. [eslint:@typescript-eslint/no-unsafe-argument]


2. Unsafe call of an any typed value. [eslint:@typescript-eslint/no-unsafe-call]


3. Unsafe call of an any typed value. [eslint:@typescript-eslint/no-unsafe-call]


4. Unsafe member access .serialize on an any value. [eslint:@typescript-eslint/no-unsafe-member-access]


function updateBulkOperationsCard () {
const bulk = jquery1('#bulk-operations')
const bulk = $('#bulk-operations')

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Found 2 issues:

1. Unsafe assignment of an any value. [eslint:@typescript-eslint/no-unsafe-assignment]


2. Unsafe call of an any typed value. [eslint:@typescript-eslint/no-unsafe-call]

* Called every time a CMS section is selected in the sidebar, including first render.
*/
jQuery1(document).on('cms-template:init', () => {
$(document).on('cms-template:init', () => {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Found 3 issues:

1. Unsafe call of an any typed value. [eslint:@typescript-eslint/no-unsafe-call]


2. Unsafe member access .on on an any value. [eslint:@typescript-eslint/no-unsafe-member-access]


3. Unsafe call of an any typed value. [eslint:@typescript-eslint/no-unsafe-call]

setUpPjax()

jQuery1('#cms_template_content_type, #cms_template_liquid_enabled').trigger('change')
$('#cms_template_content_type, #cms_template_liquid_enabled').trigger('change')

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Found 3 issues:

1. Unsafe call of an any typed value. [eslint:@typescript-eslint/no-unsafe-call]


2. Unsafe call of an any typed value. [eslint:@typescript-eslint/no-unsafe-call]


3. Unsafe member access .trigger on an any value. [eslint:@typescript-eslint/no-unsafe-member-access]

})

jQuery1(document).on('cms-sidebar:update', () => {
$(document).on('cms-sidebar:update', () => {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Unsafe member access .on on an any value. [eslint:@typescript-eslint/no-unsafe-member-access]

$(document).pjax!('#cms-sidebar .cms-sidebar-listing a', '#tab-content', { timeout: 3000 })

jQuery1(document)
$(document)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Found 2 issues:

1. Unsafe call of an any typed value. [eslint:@typescript-eslint/no-unsafe-call]


2. Unsafe member access .on on an any value. [eslint:@typescript-eslint/no-unsafe-member-access]

})
.on('pjax:end', (event) => {
jQuery1(event.target).trigger('cms-template:init')
$(event.target).trigger('cms-template:init')

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Found 4 issues:

1. Unsafe member access .trigger on an any value. [eslint:@typescript-eslint/no-unsafe-member-access]


2. Unsafe call of an any typed value. [eslint:@typescript-eslint/no-unsafe-call]


3. Unsafe call of an any typed value. [eslint:@typescript-eslint/no-unsafe-call]


4. Unsafe member access .target on an any value. [eslint:@typescript-eslint/no-unsafe-member-access]

// This link will load its content into a colorbox modal
$(document).on('click', 'a.fancybox, a.colorbox', (e) => {
jQuery1(e.currentTarget as HTMLAnchorElement).colorbox({ open: true })
const { title, href } = e.currentTarget as HTMLAnchorElement

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Unsafe member access .currentTarget on an any value. [eslint:@typescript-eslint/no-unsafe-member-access]

} else {
// TODO: can we generate this data without reading the DOM? Using selectedItems as a prop
return url.concat(connector, jquery1('table tbody .pf-c-table__check input:checked').serialize())
return url.concat(connector, $('table tbody .pf-c-table__check input:checked').serialize())

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Found 4 issues:

1. Unsafe argument of type any assigned to a parameter of type string. [eslint:@typescript-eslint/no-unsafe-argument]


2. Unsafe call of an any typed value. [eslint:@typescript-eslint/no-unsafe-call]


3. Unsafe call of an any typed value. [eslint:@typescript-eslint/no-unsafe-call]


4. Unsafe member access .serialize on an any value. [eslint:@typescript-eslint/no-unsafe-member-access]

}

if (el) cache.set(el, instance)
return instance

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Found 2 issues:

1. Function with many returns (count = 4): jQueryMock [qlty:return-statements]


2. Function with high complexity (count = 11): jQueryMock [qlty:function-complexity]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant