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-1458: Fix GitHub warnings #841

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

ndg63276
Copy link
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
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