question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Migration to latest Sequelize

See original GitHub issue
  • Migrate to Sequelize 3.x
  • Remove dependency on sequelize-restful
    • use different dynamic REST API generator or
    • implement REST API manually

<bountysource-plugin>

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource. </bountysource-plugin>

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:25 (24 by maintainers)

github_iconTop GitHub Comments

1reaction
bkimminichcommented, Oct 19, 2017

Build is green, so I’ll bring this into dev branch! Awesome work, @J12934! Once the project budget is above zero again, you’ll get a Juice Shop Hoodie! 🎁

1reaction
J12934commented, Oct 19, 2017

Just tried it out. The basket api is behaving quite a strange way. The “normal” way to solve the challenge is actually still working under on condition: There has to be another item in the basket.

If the Christmas item is the only item in the basket the api will return a basket with a empty products array. If there is another item in the basket all items (including the Christmas one) are returned in the array.

This is some really weird behaviour, might actually be a bug in sequelize. We can work around it by explicitly including soft deleted entries in the order and basket api. Doing this the basket ui and the order pdf are also looking correctly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Migrations | Sequelize
A Migration in Sequelize is a javascript file which exports two functions, up and down , that dictates how to perform the migration...
Read more >
How to Add New Fields to Existing Sequelize Migration
Step 1 - Create a new migration · Step 2 - Edit the migrations to suit the need · Step 3 - Update...
Read more >
How to auto generate migrations with Sequelize CLI from ...
You can run npx sequelize-cli migration:generate --name [name_of_your_migration] from root of your project. But before you do so, you need to tell sequelize-cli ......
Read more >
How to use Sequelize migration feature - Nathan Sebhastian
Sequelize provides you with a migration feature to keep track of the changes to your database in a JavaScript file.
Read more >
Modifying an existing Sequelize migration | by Anayo Oleru
Then create a new sequelize migration, that you can make modification on. 1. Updating a column. Now let's update a column in the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found