day-cohort-70 / Bangazon-API-BandyChamps

0 stars 0 forks source link

Bug: Products keep getting added to the last, closed order #41

Closed stevebrownlee closed 1 month ago

stevebrownlee commented 2 months ago

Steps to reproduce.

  1. Authenticate the client and get a token
  2. Create a payment type
  3. Add a product to the cart by sending a POST request to http://localhost:8000/profile/cart
  4. Finish the order by sending a PUT request to the order's URL
  5. Add a product to the cart by sending a POST request to http://localhost:8000/profile/cart

At this point, the product is being related to the completed order instead of a new one being generated.

samsheps commented 1 month ago

Initial thoughts from Nick: order # not being cleared from state?

soyuz43 commented 1 month ago

@samsheps @nicholas-davison thanks to you both for help in understanding this ticket

soyuz43 commented 1 month ago

sgdsdggsdsgd