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

Feat: Buyer should be able to manage their wish list #71

Closed
6 tasks done
mukunzidd opened this issue May 8, 2024 · 2 comments
Closed
6 tasks done

Feat: Buyer should be able to manage their wish list #71

mukunzidd opened this issue May 8, 2024 · 2 comments
Assignees
Labels
backend Good for newcomers product Feature for buyer's interaction with the product

Comments

@mukunzidd
Copy link
Contributor

mukunzidd commented May 8, 2024

Description:

The backend needs to handle the addition of items to the buyer's wishlist, including storing the wishlist in the buyer's account and sending a confirmation message to the frontend.

Acceptance Criteria:

  • Implement a POST request endpoint to add an item to the buyer's wishlist.
  • When a POST request is made:
  • The item should be added to the buyer's wishlist.
  • The product details (name, price, image) should be retrieved from the database.
  • The updated wishlist should be stored with the buyer's entity and have a relationship with the buyer.
  • A confirmation message should be sent to the frontend to be displayed to the buyer.

Developer Notes:

  • Validate that the buyer is logged in before processing the request.
  • Implement logic to add the item to the buyer's wishlist.
  • Retrieve the product details from the database based on the item being added.
  • Store the updated wishlist in the buyer's account entity.

Related Issues:
Feat: Role-Based Access Control (RBAC) #45

Definition of Done:

  • A POST request endpoint is implemented and functional for adding items to the buyer's wishlist.
  • The item is successfully added to the buyer's wishlist.
  • Product details (name, price, image) are retrieved from the database and associated with the item.
  • The updated wishlist is stored in the buyer's account entity and has a proper relationship with the buyer.
  • A confirmation message is sent to the frontend and displayed to the buyer.
  • Buyer login validation is implemented to ensure only logged-in buyers can add items to their wishlist.
@mukunzidd mukunzidd added this to the Product Management milestone May 8, 2024
@mukunzidd mukunzidd added the backend Good for newcomers label May 8, 2024
@mukunzidd mukunzidd changed the title Feat: Buyer should be able to add a product to their wish list and view the list Feat: Buyer should be able to manage their wish list May 8, 2024
@mukunzidd mukunzidd added the product Feature for buyer's interaction with the product label May 8, 2024
@faid-terence
Copy link
Collaborator

@Calebgisa72
Can you use the Eraser for ERD to show relationship between product, user and wishlist !
Also it's better to make Acceptance criteria in checkboxes . otherwise all is good.Apply the feedbacks

@Calebgisa72
Copy link
Contributor

Implementation plan:

  1. Creating a branch related to this issue and name it feat-wish-List
  2. Creating a new entity that stores all the information of a product in a wish List
  3. Create a many to one relationship between a wish list and a buyer
  4. Implement a service for adding an item to a wish list
  5. Implement a service for getting all the items a buyer added to a wish list
  6. Implement a service for removing an item from buyer's wish list
  7. Implement a service for removing all items a buyer added to a wish list

@Calebgisa72 Calebgisa72 linked a pull request May 15, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Good for newcomers product Feature for buyer's interaction with the product
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants