Skip to content

LIMS-1458: Fix GitHub warnings#841

Merged
ndg63276 merged 10 commits into
pre-release/2024-R5.3from
improvement/LIMS-1458/fix-github-warnings
Dec 3, 2024
Merged

LIMS-1458: Fix GitHub warnings#841
ndg63276 merged 10 commits into
pre-release/2024-R5.3from
improvement/LIMS-1458/fix-github-warnings

Conversation

@ndg63276
Copy link
Copy Markdown
Collaborator

JIRA ticket: LIMS-1458

Summary:

We should try to decrease the number of JavaScript errors in the "JavaScript build, test and lint" job that runs on creation of a PR.

Changes:

  • Change this.attributes.FOO to this.get('FOO')
  • Change this.attributes.FOO = 'BAR' to this.set('FOO', 'BAR')
  • Move declaration of or rename js variables so that they are not redefined
  • Remove unnecessary escape characters eg \:
  • Add a log message to avoid having an empty catch statement

Not done

  • Use this.$ instead of $ in views - changing seems to break functionality
  • Do not silence events - not sure what this does
  • Do not access Object.prototype method 'hasOwnProperty' from target object - not sure how to fix this

To test:

  • Manually check the code :(
  • Check basic Synchweb functions as expected
  • Click "Show all checks" in the "All checks have passed" message below, then click Details on the JavaScript job
  • Click on the "JavaScript build, test and lint" task, scroll down and see if there are less than about 50 errors.

@ndg63276 ndg63276 changed the title Improvement/lims 1458/fix GitHub warnings LIMS-1458: Fix GitHub warnings Sep 30, 2024
Comment thread client/src/js/modules/cell/views/beamlines.js Outdated
Comment thread client/src/js/modules/dc/views/reprocess2.js Outdated
Mark Williams and others added 2 commits October 7, 2024 15:54
Co-authored-by: Guilherme Francisco <guilherme.de-freitas@diamond.ac.uk>
@ndg63276 ndg63276 changed the base branch from master to pre-release/2024-R5.3 December 3, 2024 09:26
@ndg63276 ndg63276 merged commit 72c4ca6 into pre-release/2024-R5.3 Dec 3, 2024
ndg63276 added a commit that referenced this pull request Dec 16, 2024
…882)

* LIMS-1498: Change name of processed data archive (#855)

* LIMS-1469: Fix download button on old summary page (#840)

* LIMS-1463: Always display Mesh3D data collections as grid scans (#845)

* LIMS-1515: Add energy value to data collections (#853)

* LIMS-261: Allow download of PDB files (#857)

* LIMS-1529: Fix fast ep model viewer (#858)

* LIMS-753: Allow LN2 topups as part of dewar history (#856)

* LIMS-1530: Add To Queue Fails when Not Completed filter applied (#864)

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

* LIMS-1552: Remove old jquery (#871)

* LIMS-1500: Set the dispatch request email recipients based on the dewar barcode (#848)

* LIMS-1458: Fix GitHub warnings (#841)

---------

Co-authored-by: Mark Williams <mark.williams@diamond.ac.uk>
Co-authored-by: Guilherme Francisco <guilherme.de-freitas@diamond.ac.uk>
@ndg63276 ndg63276 deleted the improvement/LIMS-1458/fix-github-warnings branch December 16, 2024 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants