amida-tech / api-boilerplate

Node ES6 Express REST API boilerplate with Postgres Sequelize and Gulp
Apache License 2.0
153 stars 57 forks source link

Feature/upgrade packages #7

Closed unprofessional closed 4 years ago

unprofessional commented 5 years ago

What's this PR do?

Security vulnerability fixes

Screen Shot 2019-08-14 at 12 28 47 AM

Upgrades

Deprecation fixes

Etc

Related JIRA tickets:

How should this be manually tested?

Any background context you want to provide?

Screenshots (if appropriate):

unprofessional commented 5 years ago

Seeing this on commits:

Warning: Setting pre-commit script in package.json > scripts will be deprecated
Please move it to husky.hooks in package.json, a .huskyrc file, or a husky.config.js file
Or run ./node_modules/.bin/husky-upgrade for automatic update

Will seek to update this to spec soon.

EDIT: Resolved

unprofessional commented 5 years ago

Seeing this on startup and tests:

[SEQUELIZE0004] DeprecationWarning: A boolean value was passed to options.operatorsAliases. This is a no-op with v5 and should be removed.

Investigating.

EDIT: Resolved

unprofessional commented 5 years ago

This looks like it addresses the security vulns reporting on the frontpage of this repo. Should be ready to review.

unprofessional commented 5 years ago

I've tagged several of you, but only need two of you to sign-off/approve.

unprofessional commented 5 years ago

Adding @5t33 and @puckybreg in case no one else can get to this sooner. Just don't want it to sit for weeks.

orndorffgrant commented 5 years ago

When I run yarn install, yarn.lock gets modified, but I would expect nothing should be changed on a fresh clone.

Also, when I run yarn test I'm getting an interesting error - not sure what it is Screen Shot 2019-08-15 at 9 17 40 PM The tests appear to run fine and pass though.

puckybreg commented 5 years ago

@orndorffgrant @unprofessional what is the latest on this?

orndorffgrant commented 5 years ago

Unsure, @puckybreg can you try to replicate what I found?

puckybreg commented 5 years ago

@orndorffgrant I can give it a shot. I'm running into an issue with my yarn version but am trying to upgrade.

puckybreg commented 5 years ago

Same issues with the tests on my end image

unprofessional commented 4 years ago

@orndorffgrant @puckybreg Basically it's because of the nature of jest, supertest, and sequelize -- in order to successfully stop the jest process without doing something un-graceful like --forceExit, I am explicitly closing the sequelize connections when we're done with them. However, the steps seem to be out of sync (despite tracing the code and troubleshooting to confirm that things should be in sync as the code is written). It's strange though since it looks like despite its complaints it still executes queries just fine.

Last I touched this was two weeks ago before I got pulled into some other work. I'll see if I have time this weekend to dig through this again and see if I can rearrange some code so it doesn't complain again.

unprofessional commented 4 years ago

Eh, I don't understand it, so I'm just going to merge this for now and look into the issue separately.