Products-Development-Team / products

The products resource represents the store items that the customer can buy. They could be categorized but they don’t have to be for this assignment. They should have a unique id (perhaps a SKU - Stock Keeping Unit), a name, description, price, and others attributes like perhaps an image.
Apache License 2.0
0 stars 2 forks source link

Ability to list the products by name #50

Closed dd3053 closed 2 years ago

dd3053 commented 2 years ago

As a Customer I need to search for a product by name
So that I can search for a particular product easily.

Details and Assumptions

dd3053 commented 2 years ago

Hey team! Please add your planning poker estimate with ZenHub @dggjsc @hxwang-463 @mpourostad @yuluqinn

yuluqinn commented 2 years ago

Hi Devesh, I have a doubt about this name attribute: are we assuming the name attribute is not a unique one but could have multiple duplicates? Like a category attribute? In category we have men/women, for name: we are expecting to have T-shirt, sweater, etc instead of a unique name like RELAXED-FIT PRINTED T-SHIRT or PRINTED SARONG? I just refer to a clothing store website so I am asking: https://www.cos.com/en_usd/collaborations.html From my experience I feel like name and ID are both unique. If that is the case, we don't need to list by name. What do you guys think? @dd3053 @hxwang-463 @dggjsc @mpourostad

dd3053 commented 2 years ago

Nice point.

I made this user story with the assumption that product id's are unique however names can be same. Additionally in the file factories.py , name = FuzzyChoice(choices=["shirt", "sweater", "pants", "lounge_wear"]) made me think that names can be same. I also need the clarification regarding this name property.