-
Notifications
You must be signed in to change notification settings - Fork 0
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
[Finishes #187354261] buyer wish list for products #51
Conversation
9acff56
to
8f63e98
Compare
8f63e98
to
1f32280
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Patrick,
Great work on this! I have a few suggestions. Could we consider removing the name, images, and price columns in your wishList migration? Since we can retrieve data through the product ID, these columns might be redundant.
1f32280
to
4e07e2f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why haven't you tried association between user(buyer) and wishList??
Feature for enabling product to be created by seller
4e07e2f
to
6f1e030
Compare
Purpose
The purpose of this pull request is to implement the backend functionality to handle the addition of items to the buyer's wish list. This includes storing the wish list in the buyer's account and sending a confirmation message to the frontend.
Changes Made
-Implementing functionality to handle POST requests for adding an item to the wish list.
-Validating that the buyer is logged in before allowing the addition of items to the wish list with the help of middlewares.
-Adding the item to the buyer's wish list
-Retrieving the product details (name, price, image) from the database.
-Storing the updated wish list in the buyer's account
-Displaying a confirmation message to the buyer
Provide instructions on how to test the changes
-Send a POST request to the appropriate endpoint (/add-to-wishlist/productId)
-Verify that the item is added to the buyer's wishlist
-Check that the product details (name, price, image) are correctly retrieved from the database
-Ensure that the updated wishlist is stored in the buyer's account
-Verify that a confirmation message is displayed
Related Issues
Reference any related issues or pull requests
Checklist
Please review the following checklist and make sure all tasks are complete before submitting:
Code follows the project's co
Please review the following checklist and make sure all tasks are complete before submitting:
Code follows the project's coding standards
Changes are covered by tests
Documentation is updated (if applicable)
All tests pass