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

[LIMS-1552] Remove old jQuery version #861

Merged
merged 2 commits into from
Nov 18, 2024

Conversation

gfrn
Copy link
Collaborator

@gfrn gfrn commented Nov 15, 2024

JIRA ticket: LIMS-1552

Summary:

A minified version of jQuery which was only used in one function was found, and since that function has little to no effect on the surrounding environment (logfiles), it may be possible to remove it completely.

I've tested Fast DP reports and autoPROC log files, and both of them don't see any penalty in terms of usability. AutoPROC files link resources as b64 blobs, so there are no authorised requests being made.

Changes:

  • Remove JS code from log iframe

To test:

  • Go to /dc/visit/cm37235-5, view logs for any autoprocessing program (autoPROC, fast_dp...), ensure that links are not broken with the removal of the JS script in the iframe

Note that the list of autoprocessing programs is not exhaustive, and other logfile types may be affected by this. I need help mapping out which logfiles could be affected.

@gfrn gfrn added javascript Pull requests that update Javascript code improvement labels Nov 15, 2024
@ndg63276 ndg63276 self-requested a review November 18, 2024 14:33
Copy link
Collaborator

@ndg63276 ndg63276 left a comment

Choose a reason for hiding this comment

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

For reference, here's the commit where the sign handler stuff was added.

Seems like removing it might break loading files internal links from within log files, but they don't work anyway, and there are much easier ways to get to the files.

@gfrn gfrn merged commit 0904d6d into master Nov 18, 2024
2 checks passed
gfrn added a commit that referenced this pull request Nov 18, 2024
ndg63276 added a commit that referenced this pull request Dec 3, 2024
* [LIMS-1552] Remove old jQuery version (#861)

* Remove old jQuery version

* Remove desktop jQuery

* LIMS-1530: Add To Queue Fails when Not Completed filter applied

---------

Co-authored-by: Guilherme Francisco <[email protected]>
Co-authored-by: Mark Williams <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants