Skip to content

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
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]>
@ndg63276 ndg63276 deleted the improvement/lims-1552/remove-old-jquery branch April 22, 2025 08:57
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.

3 participants